About the Case Converter
Case Converter rewrites the capitalization of any text in twelve styles at once, from plain UPPERCASE and lowercase to programmer formats like camelCase, PascalCase, snake_case, CONSTANT_CASE and kebab-case. Paste your text once and copy whichever style you need.
How it works
UPPERCASE and lowercase change every letter. Title Case capitalizes the first character of each word and lowercases the rest, so "iPhone" becomes "Iphone". Sentence case lowercases everything and then capitalizes the first letter of the text and the first letter after each period, question mark, or exclamation point. aLtErNaTiNg flips between lower and upper on every character position, spaces included, starting with lowercase.
camelCase lowercases the text, removes each run of spaces or punctuation that is followed by another character, and capitalizes that next character. snake_case and kebab-case lowercase the text and replace runs of whitespace with an underscore or a hyphen; other punctuation is left in place, so remove it first if you need a clean identifier.
How to use
- 1
Type or paste your text into the box.
- 2
Every style appears below the box at once: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case, aLtErNaTiNg and iNVERSE.
- 3
Click Use on a result to make it the new input, if you want to convert it further.
- 4
Click the copy icon next to a style to put it on your clipboard.
Worked examples
Variable name from a phrase
Turning a label into code identifiers.
Fixing a shouted sentence
Text typed with Caps Lock on.
The first letter and the first letter after the period are capitalized; everything else is lowercased.
Headline
A title for a slide.
Frequently asked questions
What is the difference between Title Case and Sentence case?+
Title Case capitalizes the first letter of every word. Sentence case capitalizes only the first letter of each sentence and lowercases the rest.
Can I use this for variable names in code?+
Yes. The code styles split words at spaces, punctuation and existing capitals, so "user ID", "userId" and "user-id" all become user_id in snake_case. Each line is converted separately.
Is PascalCase supported?+
Yes. PascalCase, CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) and dot.case are all shown alongside the other styles.
Why did Title Case change "NASA" to "Nasa"?+
Title Case lowercases every letter after the first in each word, so acronyms need to be fixed manually afterward.
What is aLtErNaTiNg case for?+
It is mostly used for humor online, to imitate a mocking tone. Only letters count toward the pattern, so spaces and punctuation don't break the rhythm.