- Home
- Tools
- Text Tools
- Case Converter
Case Converter
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case and more. Works on whole lists of names at once.
Writing
Code
For fun
The cases, with an example
| Case | "the quick brown fox" becomes | Typical use |
|---|---|---|
| Sentence case | The quick brown fox | Normal prose, fixing text typed with caps lock on |
| Title Case | The Quick Brown Fox | Headlines and book titles |
| Capitalize Every Word | The Quick Brown Fox | Names, labels |
| UPPERCASE | THE QUICK BROWN FOX | Short warnings, acronyms |
| lowercase | the quick brown fox | E-mail addresses, tidying up input |
| camelCase | theQuickBrownFox | Variables in JavaScript and Java |
| PascalCase | TheQuickBrownFox | Class and component names |
| snake_case | the_quick_brown_fox | Python, database columns |
| kebab-case | the-quick-brown-fox | URLs, CSS classes, file names |
| CONSTANT_CASE | THE_QUICK_BROWN_FOX | Constants, environment variables |
| Train-Case | The-Quick-Brown-Fox | HTTP headers |
| dot.case | the.quick.brown.fox | Configuration keys |
| path/case | the/quick/brown/fox | File paths |
Title Case is not the same as capitalizing every word
In a proper title, short words such as "of", "the", "and" and "to" stay lowercase unless they are the first or the last word: The Lord of the Rings, not The Lord Of The Rings. That is what Title Case does here. If you really want a capital on every word, use Capitalize Every Word.
Words that already carry a capital in the middle, such as iPhone or McDonald, are left as you typed them.
Sentence case and acronyms
Sentence case lowercases everything and then puts a capital at the start of each sentence and on the word "I". In text that is mostly lowercase it keeps words that are fully in capitals, so NASA stays NASA. When most of the text is in capitals, as after typing with caps lock on, there is no way to tell an acronym from shouting, and all of it is lowered.
Converting names for code
The code styles work out where words begin, also inside existing identifiers: parseHTMLString is read as parse + HTML + String, so it becomes parse_html_string in snake_case. Each line is converted separately, which means you can paste a whole column of names and get the same list back in another style.
Punctuation is dropped in these styles, because it isn't allowed in a variable name anyway.
A page for each case
- Uppercase Converter
- Lowercase Converter
- Title Case Converter
- Sentence Case Converter
- Capitalize Every Word
- camelCase Converter
- PascalCase Converter
- snake_case Converter
- kebab-case Converter
- CONSTANT_CASE Converter
- Train-Case Converter
- dot.case Converter
- path/case Converter
- Toggle Case Converter
- Alternating Case Converter