Case Converter

Fix text typed with Caps Lock on, turn a sentence into a headline, or convert a phrase into a variable name. Paste your text and click a case.

Runs entirely in your browser. Nothing you enter is uploaded or stored.

How to use the case converter

  1. Paste your text into the box.
  2. Click the case you want. The text in the box is converted in place, so you can apply several conversions in a row.
  3. Click Copy to put the result on your clipboard, or Undo to go back one step.

Line breaks are preserved. The programming cases (camelCase, snake_case and so on) convert each line separately, so you can convert a list of names in one go.

What each case does

CaseExampleUsed for
Sentence caseThe quick brown fox. It jumps.Normal prose; fixing ALL CAPS text
Title CaseThe Lord of the RingsHeadlines, book and article titles
UPPER CASETHE QUICK BROWN FOXHeadings, labels, acronyms
lower casethe quick brown foxTags, email addresses, normalizing data
camelCasequickBrownFoxJavaScript and Java variables
PascalCaseQuickBrownFoxClass and component names
snake_casequick_brown_foxPython, database columns
kebab-casequick-brown-foxURLs, CSS classes, file names
CONSTANT_CASEQUICK_BROWN_FOXConstants and environment variables

Title case rules used here

Title Case capitalizes the first letter of every word except short articles, conjunctions and prepositions (a, an, the, and, but, or, for, of, on, in, to, at, by…), which stay lowercase unless they are the first or last word or follow a colon. This matches the common core of AP, Chicago and APA styles; the guides disagree on some details (APA, for example, capitalizes words of four letters or more such as “With”), so check your style guide for formal publications.

Words that already contain capitals inside them, such as “iPhone”, “McDonald” or “NASA”, are left as they are — unless your whole text is in capitals, in which case everything is normalized first.

Sentence case lowercases everything and then capitalizes the first letter of each sentence and the word “I”. Proper nouns such as names and places will be lowercased, so re-capitalize them afterwards.

Frequently asked questions

How do I fix text I typed with Caps Lock on?

Paste it in and click Sentence case. Everything is lowercased and the first letter of each sentence is capitalized. Then re-capitalize any names.

Can I convert a list of names into variable names?

Yes. Put one name per line and click camelCase, snake_case or another programming case. Each line is converted separately and punctuation is removed.

Is my text sent to a server?

No. The conversion is plain JavaScript running in your browser; your text is never uploaded or stored.

Does it work with accented letters and other alphabets?

Yes. Upper and lower case use your browser’s Unicode rules, so letters like é, ß, Ç and Cyrillic or Greek letters convert correctly. Scripts without case, such as Chinese, are left unchanged.