Case converter
Change text to upper case, lower case, title case or sentence case, or to camelCase, snake_case and kebab-case for code.
Runs in your browser. Nothing you enter is uploaded.
What it does
Fix text typed with Caps Lock on, tidy a heading, or turn a phrase into a variable name. The tool converts between the common writing cases and the naming styles used in code.
How to use it
- Type or paste the text.
- Choose the case you want.
- Copy the result.
Worked example
“genesis forge builds small apps” becomes Genesis Forge Builds Small Apps in title case, genesisForgeBuildsSmallApps in camelCase and genesis_forge_builds_small_apps in snake_case.
How it works
Upper and lower case use the browser’s own Unicode rules. Title case capitalises the first letter of every word. Sentence case capitalises the first letter after a full stop, question mark or exclamation mark. The code styles split the text into words at spaces, punctuation and existing capital letters, then join them in the chosen style.
Questions
Does title case follow a style guide?
No. It capitalises every word. Style guides keep short words such as “of” and “the” in lower case, so adjust those by hand.
What happens to Telugu or Hindi text?
Those scripts have no upper and lower case, so they are left unchanged.
Which naming style should I use in code?
Follow the language’s convention: camelCase for variables in JavaScript, Kotlin and Java, snake_case in Python, kebab-case for CSS classes and URLs.