Convert text directly to snake_case.
This tool converts text between common casing conventions used in writing and in code: UPPERCASE, lowercase, Title Case (each word capitalized, for headings), Sentence case (only the first word capitalized, like a normal sentence), camelCase and snake_case (common variable-naming conventions in programming), and kebab-case (common in URLs and CSS class names).
It is useful both for everyday writing — fixing text that was accidentally typed in caps lock, or title-casing a heading — and for developers converting a variable or field name between naming conventions used by different languages or frameworks (JavaScript typically uses camelCase, Python typically uses snake_case, CSS and URLs typically use kebab-case).
Conversion happens instantly in the browser as you click each option, so you can try a few and compare before copying the one you need.
Worked example: the two words "first name" convert to firstName (camelCase), first_name (snake_case), first-name (kebab-case), and First Name (Title Case) — the same underlying words, with the space either removed and the second word capitalized, replaced by an underscore, or replaced by a hyphen, depending purely on which naming convention the target language or context expects. Picking the wrong one for a given language is a real, common source of bugs — a JavaScript object with a snake_case key instead of camelCase will still work, but breaks the convention every other property in that codebase follows.
Both replace spaces with a separator and lowercase every word — snake_case uses an underscore, kebab-case uses a hyphen. Kebab-case is standard in URLs and CSS; snake_case is common in Python and database column names.
Yes, this simplified version capitalizes every word. Formal title-case style guides often keep short words like "and," "of," and "the" lowercase — adjust manually if you need that distinction.
Title Case capitalizes every word (for headings). Sentence case only capitalizes the first word, like ordinary prose — useful for fixing text pasted in from somewhere that title-cased it unnecessarily.
This version converts from plain text into the listed formats, not from camelCase back to spaced words.