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

StyleExampleUsed for
Title CaseThe Quick Brown FoxHeadlines, book/report titles
Sentence caseThe quick brown foxBody text, most UI labels, modern headings
camelCasetheQuickBrownFoxVariables in JavaScript, Java
PascalCaseTheQuickBrownFoxClass names, React components
snake_casethe_quick_brown_foxPython variables, database columns
kebab-casethe-quick-brown-foxURLs, 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

StyleConventionWhere
camelCaseVariables, functionsJavaScript, Java, Swift
PascalCaseClasses, components, typesReact components, C#, most OOP
snake_caseVariables, database columnsPython, Ruby, SQL
SCREAMING_SNAKEConstantsNearly every language
kebab-caseURLs, CSS classes, filenamesThe 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.

Frequently asked questions

Can it fix a paragraph typed with CAPS LOCK on?
Yes — click "Sentence case". It lowercases everything and recapitalizes the first letter of each sentence. Proper nouns need a manual touch-up afterwards, since the tool can't know which words are names.
What does the converter do with numbers and punctuation?
They pass through unchanged in the standard modes. In the programming cases (camel, snake, kebab), punctuation becomes separators and words are joined accordingly.
Is my text sent anywhere?
No — conversion is pure in-browser JavaScript. Confidential text is safe here.
Which words stay lowercase in Title Case?
Articles (a, an, the), short conjunctions (and, but, or, nor) and short prepositions (in, on, at, to, of, by) — unless they're the first or last word of the title. This tool follows that rule, so "the lord of the rings" becomes "The Lord of the Rings" rather than capitalising every word. Style guides disagree on prepositions of four or more letters; AP capitalises them, Chicago doesn't.
Why does ALL CAPS read as shouting?
Partly convention from early text-only communication, but there's a legibility factor too: lowercase letters have distinctive ascenders and descenders that give words recognisable shapes, while capitals form uniform rectangles. That's why long passages in caps are measurably slower to read — and why accessibility guidance recommends against them for body text.
Can I convert text with accents and non-English characters?
Yes. The tool uses JavaScript's Unicode-aware case conversion, so accented characters (é → É), Cyrillic, Greek and other scripts convert correctly. Scripts without letter case, such as Arabic, Hebrew and Chinese, pass through unchanged, which is the correct behaviour.