snake_case converter
Turn phrases, camelCase or kebab-case names into snake_case: lower case words joined by underscores, one per line.
Runs in your browserNothing uploadedWorks offline
Set up for this job. It runs on Case converter, where every option is there to change.
Loading snake_case converterRuns on this device. Nothing is uploaded.
Questions
Can it turn camelCase into snake_case?
Yes. Capital humps mark word breaks, so userAccountId becomes user_account_id, and a capital after a digit starts a new word too, so base64Encode becomes base64_encode.
What happens to punctuation and accents?
Anything that is not a letter or digit splits words and is dropped. Accented letters such as é are kept as they are.
What if I need capitals, like USER_ID?
That style is CONSTANT_CASE. Pick it on the same tool, or open the CONSTANT_CASE converter.
Related tools
All text and documents toolsText and documentstxt md plainCase converterChange text to UPPER, lower, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE as you type.Text and documentstxt md plaincamelCase converterTurn phrases, column names or snake_case into camelCase identifiers, one per line, as you type.Text and documentstxt md markdownCharacter counterCount characters as you type, spaces included, with the count without spaces, words and sentences next to it.Text and documentstxt md plainClean AI textFix text pasted from ChatGPT, Claude and terminals: show and remove hidden characters, rejoin broken lines, fix quotes, spaces and Markdown.Text and documentstxt md csvCompare text (diff)Compare two texts or files side by side or inline, by line, word or character, with changes highlighted and a downloadable patch.Text and documentstxt md plainCONSTANT_CASE converterTurn phrases or camelCase names into CONSTANT_CASE, also called SCREAMING_SNAKE_CASE, for constants and environment variables.