What are text case styles?
A case style is a rule for how letters are capitalized and how words are joined. Ordinary prose uses sentence case and title case, where the choice of capitals signals the start of a sentence or the importance of a word in a heading. Programmers use another family of styles to write names that cannot contain spaces: camelCase, PascalCase, snake_case, and kebab-case.
Switching between them by hand is tedious and easy to get wrong, especially for long strings. A converter applies the same rule to the whole text at once, so you can fix a pasted block of shouting capitals or turn a plain phrase into a variable name in one click.
When changing case actually saves you time
Writers use case conversion to repair text that arrived in the wrong format: an all-caps email subject, a heading typed in lowercase, or a spreadsheet column with inconsistent capitalization. Title case and sentence case are the usual targets for cleaning up headlines and captions.
Developers use it to move names between conventions. A database column in snake_case may need to become a camelCase property in JavaScript, a class name in PascalCase, or a kebab-case file name or URL slug. Typing a phrase in normal words and converting it is quicker than retyping with the right separators.
How to convert text case with this tool
- Type or paste your text into the "Your text" box. It starts with a sample sentence you can replace.
- Click one of the eight style buttons: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, or kebab-case. The selected button is highlighted, and UPPERCASE is selected by default.
- Read the converted text in the Result box. It updates as you keep typing or switch styles.
- Click Copy to put the result on your clipboard.
Only one style is shown at a time, and your original text is never changed, so you can try each style and compare.
Things to check after converting
The tool applies simple rules, so review the output before using it. Title Case capitalizes the first letter of every word and lowercases the rest, which means small words like "of" or "and" are capitalized too, and acronyms such as "NASA" become "Nasa". Sentence case lowercases everything first, so proper nouns and acronyms in the middle of a sentence also need to be restored by hand.
For camelCase and PascalCase, the text is lowercased first and then rebuilt from the word boundaries, so an input that is already camelCase will lose its inner capitals. snake_case and kebab-case do detect a lowercase letter followed by a capital, so "myVariableName" becomes "my_variable_name". Characters outside the basic English letters and digits, such as accented letters, are treated as separators in the programming styles, so check those results. To change specific words rather than the whole text, Find and Replace can be more precise.