Case Converter
Transform text between common case styles instantly.
Converting text case
Changing the capitalization of text by hand is tedious and error-prone, particularly for anything longer than a line. This converter applies seven common case styles instantly, including the naming conventions used in programming.
Key takeaways
- Sentence case capitalizes only the first letter; Title Case capitalizes most words.
- camelCase and PascalCase differ only in whether the first letter is capitalized.
- snake_case uses underscores, kebab-case uses hyphens.
- URL slugs conventionally use kebab-case in lowercase.
- Converting to uppercase and back does not restore the original capitalization.
The case styles
| Style | Example | Where it is used |
|---|---|---|
| UPPERCASE | THE QUICK BROWN FOX | Headings, acronyms, emphasis, constants |
| lowercase | the quick brown fox | Casual writing, tags, email addresses |
| Sentence case | The quick brown fox | Body text, UI labels, most modern headlines |
| Title Case | The Quick Brown Fox | Headlines, book and article titles |
| camelCase | theQuickBrownFox | Variables in JavaScript, Java, C# |
| PascalCase | TheQuickBrownFox | Class names, React components, types |
| snake_case | the_quick_brown_fox | Python variables, database columns |
| kebab-case | the-quick-brown-fox | URL slugs, CSS classes, HTML attributes |
| SCREAMING_SNAKE | THE_QUICK_BROWN_FOX | Constants and environment variables |
Sentence case versus Title Case
These two are confused constantly, and the distinction matters for anything published.
- Sentence case capitalizes only the first word and any proper nouns: "How to write a better headline in 2026".
- Title Case capitalizes most words but not short articles, conjunctions and prepositions: "How to Write a Better Headline in 2026".
Sentence case has become the dominant convention in digital publishing and user interfaces, because it reads faster and feels less shouty. Title Case remains standard for book titles, academic references and many news publications. If you need proper style-guide handling, the title case converter implements APA, MLA, Chicago and AP rules.
Programming naming conventions
| Language / context | Variables | Functions | Classes | Constants |
|---|---|---|---|---|
| JavaScript | camelCase | camelCase | PascalCase | SCREAMING_SNAKE |
| Python | snake_case | snake_case | PascalCase | SCREAMING_SNAKE |
| Java / C# | camelCase | camelCase / PascalCase | PascalCase | SCREAMING_SNAKE |
| Go | camelCase / PascalCase | PascalCase exports | PascalCase | PascalCase |
| Ruby | snake_case | snake_case | PascalCase | SCREAMING_SNAKE |
| CSS | kebab-case | - | - | --kebab-case |
| SQL | snake_case | - | - | - |
Conventions are enforced by community style guides and linters rather than by the languages themselves, but following them is expected in almost every codebase.
Things to watch out for
- Case conversion is lossy. Once you uppercase "iPhone" to "IPHONE", nothing can tell it should return to "iPhone" rather than "Iphone".
- Acronyms suffer in Title Case. "NASA" can become "Nasa" depending on the implementation.
- Some languages have no case at all - Chinese, Japanese, Arabic and Hebrew are unaffected by these operations.
- Turkish dotted and dotless i is a classic source of bugs, because uppercasing "i" gives "İ" in Turkish locales rather than "I".
- The German ß traditionally uppercases to "SS", changing the string length.
Frequently Asked Questions
What is the difference between Title Case and Sentence case?
Sentence case capitalizes only the first word and proper nouns, like an ordinary sentence. Title Case capitalizes most words but usually leaves short articles, conjunctions and prepositions lowercase. Sentence case dominates digital publishing; Title Case remains standard for book titles and academic references.
What is camelCase?
A naming convention where words are joined with no spaces and each word after the first starts with a capital, as in theQuickBrownFox. It is the standard for variables in JavaScript, Java and C#. PascalCase is identical except the first letter is also capitalized.
What is the difference between snake_case and kebab-case?
Only the separator. snake_case joins words with underscores and is standard in Python and database column names. kebab-case uses hyphens and is standard for URL slugs, CSS class names and HTML attributes.
Can I convert text back to its original case?
No. Case conversion is lossy - once "iPhone" becomes "IPHONE", there is no way to know it should return to "iPhone" rather than "Iphone". Always keep the original text rather than converting your only copy.
Which case should I use for URLs?
Lowercase kebab-case, such as my-blog-post-title. Hyphens are treated as word separators by search engines while underscores are not, and lowercase avoids problems on case-sensitive servers.
How are acronyms handled in Title Case?
Imperfectly. A simple algorithm cannot tell that "NASA" should stay fully capitalized while "nasa" as an ordinary word should not, so acronyms sometimes come out as "Nasa". Check any text containing acronyms or brand names after converting.
Does case conversion work for non-English text?
For most Latin, Greek and Cyrillic scripts, yes. Scripts without letter case - Chinese, Japanese, Arabic, Hebrew, Devanagari - are unaffected. A few locale-specific rules, such as the Turkish dotless i and the German ß, need special handling.
Is my text uploaded anywhere?
No. Conversion happens entirely in your browser using JavaScript, so nothing is transmitted or stored. Closing the tab discards everything.