🐍 snake_case Converter
Rename variables, database columns and JSON keys to snake_case in bulk.
🔒 Runs in your browser · files never uploaded
How to use the snake_case Converter tool
- Paste names or phrases, one per line.
- snake_case is preselected and converts live.
- Copy the converted names.
Frequently asked questions
Can it convert camelCase to snake_case?
Yes. Case boundaries are detected, so "userAccountID" becomes "user_account_id" and "HTTPServer" becomes "http_server".
What happens to punctuation and spaces?
Any run of spaces, hyphens, dots or symbols becomes a single underscore, and leading/trailing separators are dropped.
Where is snake_case used?
Python variables and functions (PEP 8), Ruby, PostgreSQL column names and many REST/JSON APIs. Use CONSTANT_CASE for environment variables and constants.