Text Case Converter
Transform your text into any case format instantly
About This Tool
Switch text between UPPERCASE, lowercase, Title Case, Sentence case and programming styles like camelCase, snake_case and kebab-case, with live text statistics.
Fix capitalization in one click
Text often arrives in the wrong case: a heading typed with caps lock on, a spreadsheet column in all capitals, or a list of labels that needs to become variable names. Retyping is slow and error-prone. This converter rewrites your text in nine different styles, from everyday writing formats to the naming conventions programmers use. It also shows character, word, sentence and paragraph counts for the input. Everything is processed in your browser.
How to use it
- Type or paste your text into Input Text. The statistics row updates as you type.
- Click one of the buttons under Convert To. The converted text appears in the Output box.
- Try another button at any time; each one works from the original input, not from the previous output.
- Press Copy to copy the result, or Clear to empty both boxes.
The nine case styles
Writing styles
- UPPERCASE and lowercase change every letter.
- Title Case capitalizes the first letter of every word and lowercases the rest, so the lord of the rings becomes The Lord Of The Rings.
- Sentence case lowercases everything, then capitalizes the first letter of the text and the first letter after each period, question mark or exclamation mark.
Programming styles
Most programming languages do not allow spaces in identifiers, so developers join words using capital letters or separators. Different ecosystems prefer different conventions:
| Style | Example | Commonly used for |
|---|---|---|
| camelCase | userFirstName | JavaScript and Java variables and functions |
| PascalCase | UserFirstName | Class names, React components, C# methods |
| snake_case | user_first_name | Python variables, database columns |
| kebab-case | user-first-name | URLs, CSS classes, file names |
| CONSTANT_CASE | USER_FIRST_NAME | Constants and environment variables |
The snake, kebab and constant converters also split existing camelCase words, so userFirstName becomes user_first_name. camelCase and PascalCase remove spaces, hyphens, underscores and other non-alphanumeric characters and capitalize the letter that follows them.
Tips for clean results
- Lowercase first for code styles. camelCase keeps the existing capitals inside words, so HELLO WORLD becomes
hELLOWORLD. Convert to lowercase, copy the output back into the input, then apply camelCase. - Remove punctuation before using snake_case or kebab-case. Those converters only replace spaces and separators, so commas and apostrophes stay in the result.
- Title Case here is simple capitalization. Editorial styles such as AP or Chicago keep short words like of, and and the lowercase. Adjust those by hand for formal headlines.
- Proper nouns and acronyms lose their capitals in Sentence case and lowercase. Check names like NASA or iPhone afterwards.
- Building URL slugs? kebab-case gets you most of the way, and the URL encoder can handle any special characters left over.
FAQ
Does it work with accented and non-English letters?
UPPERCASE, lowercase, Title Case and Sentence case use your browser's Unicode-aware case rules, so accented letters convert correctly. The programming styles are designed for plain Latin letters and digits.
How are words counted in the statistics?
Words are sequences of characters separated by whitespace. For a more detailed breakdown, including reading time and keyword frequency, use the word counter.
Can I undo a conversion?
Your input is never changed, so you can always click a different style or edit the original text.