Case styles explained
Here is what each style does to the text the quick brown fox.
| Style | Example | Typical use |
|---|---|---|
| Sentence case | The quick brown fox | Normal writing, captions, emails and fixing text typed in capitals. |
| lower case | the quick brown fox | Usernames, tags, search terms and email addresses. |
| UPPER CASE | THE QUICK BROWN FOX | Warnings, acronyms and short labels. |
| Title Case | The Quick Brown Fox | Headlines, book and article titles. |
| camelCase | theQuickBrownFox | Variable and function names in JavaScript, Java and Swift. |
| PascalCase | TheQuickBrownFox | Class and component names. |
| snake_case | the_quick_brown_fox | Python and Ruby names, and database columns. |
| kebab-case | the-quick-brown-fox | URLs, file names and CSS classes. |
| CONSTANT_CASE | THE_QUICK_BROWN_FOX | Constants and environment variables. |
How Title Case works
Style guides such as AP, APA and Chicago agree on the main idea: capitalize the important words and leave short joining words in lower case. This tool follows that idea. It capitalizes the first and last word, every word after a colon or a new line, and every other word except short ones such as a, an, the, and, but, or, for, of, in, on, at, to, by and with. Hyphenated words are capitalized on both sides, so well-known becomes Well-Known.
If your style guide capitalizes every word, untick the option to keep small words in lower case, or choose Capitalize Each Word. Proper names and brand names that need special capitals, such as iPhone, should be checked by hand after converting.
Converting names for code
The code styles split your text into words wherever there is a space, a dash, an underscore, a dot or a change from small to capital letters, then join them in the new style. That means userFirstName, user_first_name and User first name all produce the same result, and acronyms stay together, so HTTPServer becomes http_server.
Each line is converted on its own. Paste a list of column names or variables, one per line, and you get the whole list back in the new style, which is handy when you move code between languages or rename database fields.
Your text stays private
The conversion happens in your browser. Your text is not sent to our server, stored or logged, and files you open are read on your device only. It is safe to use for drafts and confidential text.
Tips
- Fix text typed in capitals. Choose Sentence case to bring it back to normal writing.
- Chain conversions. Use the Use as input button to move the result back to the input box and convert it again.
- Check names and acronyms. Converting to lower case cannot know which words are names, so fix those by hand.
- Make URL slugs. Choose kebab-case to turn a title into a clean web address part.