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
getUserProfile→get_user_profileHTTPRequestHandler→http_request_handlerMy Variable Name→my_variable_namekebab-case-example→kebab_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.