snake_case Converter

Convert any text, camelCase, PascalCase, or kebab-case to snake_case. All letters lowercased, words joined with underscores. Standard for Python, Ruby, SQL column names, and file names.

Runs locallyInstantPrivate
Input
Output
snake_case output appears here.

When to use snake_case

Python's PEP 8 style guide mandates snake_case for variable names, function names, and module names. Most database conventions use snake_case for table and column names — user_id, created_at, order_total. When you receive camelCase data from a JavaScript frontend and need to convert it for a Python backend or SQL schema, this is the conversion you need.

Conversion examples

  • getUserProfileget_user_profile
  • HTTPRequestHandlerhttp_request_handler
  • My Variable Namemy_variable_name
  • kebab-case-examplekebab_case_example

Frequently asked questions

Where is snake_case used?

Python (PEP 8 mandate), Ruby, Rust, SQL columns, PostgreSQL identifiers, Django field names, Rails database columns, Linux file names, and most database naming conventions.

What is SCREAMING_SNAKE_CASE?

CONSTANT_CASE / SCREAMING_SNAKE_CASE is all uppercase with underscores — for constants and environment variables (DATABASE_URL, MAX_RETRIES). This tool produces lowercase snake_case.

Can I batch-convert many identifiers?

Yes — one per line. All lines are processed simultaneously.

Related tools