Snake Case Converter

Convert text to snake_case format with underscores between words.

Convert names to snake_case, with lowercase words joined by underscores: "User Account ID" and userAccountId both become user_account_id. Paste names in any style, one per line, and tick SCREAMING_SNAKE_CASE for constants and environment variables (USER_ACCOUNT_ID). snake_case is the convention for Python variables and functions, Ruby, and most SQL table and column names.

Common use cases

  • Name Python variables and functions
  • Make database table and column names
  • Write environment variable names in capitals

How to use

  1. Paste names, one per line.
  2. Tick SCREAMING_SNAKE_CASE if you need capitals.
  3. Copy the results.

FAQ

When are capitals used in snake case?

SCREAMING_SNAKE_CASE is the usual style for constants and environment variables, such as MAX_RETRIES or DATABASE_URL.

How are acronyms handled?

Runs of capitals are treated as one word, so HTTPResponseCode becomes http_response_code.