Case converter
Change the capitalisation of your text, or turn phrases into camelCase, snake_case and kebab-case.
Runs entirely in your browser
Text up to about 5 MB. Each button changes the text in the box; Undo steps back.
How to change text case
- Type or paste your text into the box, or open a .txt file.
- Press the case you want. The text in the box changes in place.
- Press Undo if you want the previous version back, then copy the result or download it as a .txt file.
Changing text case without retyping
Pick a style and the text in the box is rewritten in place, so you can chain conversions: lower-case a shouted paragraph, then turn it into Sentence case. Undo keeps the last twenty versions in memory while the page is open.
The programming styles (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE) treat each line as its own name, so a list of phrases becomes a list of identifiers. Capital letters inside words are treated as word boundaries, which lets you move a name from one style to another.
Tips
- Count what you have with the Word counter.
- Replace many words at once with Find and replace.
- See what the conversion changed with Compare text.
- Making a web address from a title? The URL slug generator also converts accents and removes punctuation.
Questions
What does Title Case do with small words?
Every word starts with a capital letter except these small words when they are not the first or last word on their line: a, an, the, and, but, or, for, nor, on, at, to, by, of, in. Style guides differ, so check the result against the one you need.
How does Sentence case decide where sentences start?
Everything is lower-cased first, then the first letter of the text and the first letter after a full stop, exclamation mark, question mark or line break is capitalised. A lone "i" becomes "I". Names and acronyms in the middle of a sentence are not detected, so fix those by hand.
How are camelCase, snake_case and the others built?
The text is split into words at spaces, punctuation and existing capital letters (fooBar becomes foo, bar), one line at a time, and then joined back in the chosen style. Punctuation is dropped in these styles.
Does it work with accented and non-Latin letters?
Upper and lower casing follow the Unicode rules built into your browser, so accented Latin, Greek and Cyrillic letters work. Scripts without capital letters, such as Chinese or Thai, are left unchanged.
Is my text uploaded?
No. The conversion runs in your browser and the text is not stored or sent anywhere.