Case Converter
Paste text, click a style, copy the result. Fixes CAPS-LOCK accidents and formats headings, variables and slugs.
Which case for which job
| Style | Example | Used for |
|---|---|---|
| Title Case | The Quick Brown Fox | Headlines, book/report titles |
| Sentence case | The quick brown fox | Body text, most UI labels, modern headings |
| camelCase | theQuickBrownFox | Variables in JavaScript, Java |
| PascalCase | TheQuickBrownFox | Class names, React components |
| snake_case | the_quick_brown_fox | Python variables, database columns |
| kebab-case | the-quick-brown-fox | URLs, CSS classes, file names |
Title case, properly
Full style guides (AP, Chicago) lowercase short words — a, an, the, of, in, on, to, and, or — unless first or last in the title. This tool follows that rule rather than blindly capitalizing every word, so "the lord of the rings" becomes "The Lord of the Rings", not "The Lord Of The Rings".
For SEO and file naming
URL slugs should be kebab-case, lowercase, with no stop-word clutter: /mortgage-calculator beats /Mortgage_Calculator(FINAL2). Search engines treat hyphens as word separators; underscores historically weren't. Consistent lowercase also avoids duplicate-URL issues on case-sensitive servers.
Sentence case is winning
Title Case for headings used to be standard. Most modern style guides — and the design systems at Google, Apple, Microsoft and GitHub — have moved to sentence case for headings, buttons and labels. Two reasons: it reads faster because capital letters are visual speed bumps, and it's far easier to apply consistently across a team, since nobody has to remember whether "of" gets capitalised.
Book titles, article headlines and proper names still take Title Case. Interface text, headings on a page and email subject lines increasingly don't.
Naming conventions in code, and why they differ
| Style | Convention | Where |
|---|---|---|
| camelCase | Variables, functions | JavaScript, Java, Swift |
| PascalCase | Classes, components, types | React components, C#, most OOP |
| snake_case | Variables, database columns | Python, Ruby, SQL |
| SCREAMING_SNAKE | Constants | Nearly every language |
| kebab-case | URLs, CSS classes, filenames | The web |
The reason kebab-case wins on the web is practical: many web servers are case-sensitive, so /About-Us and /about-us are different pages — a genuine source of duplicate-content problems. Hyphens are also read as word separators by search engines, while underscores historically weren't.
Fixing a CAPS LOCK accident
Sentence case is the repair: it lowercases everything, then recapitalises the first letter after each full stop, question mark or exclamation mark. It can't know which remaining words are proper nouns, so names, places and brands need a quick manual pass afterwards. For a long document that's still seconds of work instead of retyping.