Case converter

Paste your text and press the case you want. The converted text appears below, ready to copy. Nothing is uploaded.

Convert to

What each case does

CaseExampleTypical use
UPPER CASETHE QUICK BROWN FOXHeadings, labels, emphasis
lower casethe quick brown foxTidying text typed with caps lock on
Title CaseThe Quick Brown Fox Jumps over the Lazy DogHeadlines, book and article titles
Sentence caseThe quick brown fox. It jumps.Normal writing, many modern headlines
camelCasequickBrownFoxVariable names in JavaScript and Java
PascalCaseQuickBrownFoxClass and component names
snake_casequick_brown_foxPython, databases, file names
CONSTANT_CASEQUICK_BROWN_FOXConstants and environment variables
kebab-casequick-brown-foxWeb addresses (URLs), CSS class names
dot.casequick.brown.foxConfig keys, some file names

How Title Case is decided

Every word is capitalised except short "minor" words: articles (a, an, the), coordinating conjunctions (and, but, or, nor, for, so, yet) and short prepositions such as at, by, in, of, on, to, up, from, into, over and with. Minor words are still capitalised when they are the first or last word, or come straight after a colon or full stop. Words with capitals already inside them, such as iPhone or NASA, are left as typed. Each part of a hyphenated word is treated separately: "state-of-the-art design" becomes "State-of-the-Art Design".

Style guides differ on the details. AP style capitalises every word of four letters or more, so it would write "From" and "With". Chicago style lowercases prepositions of any length. If you follow a specific guide, check words like "from", "with", "over" and "into" after converting.

How code cases split words

For camelCase, snake_case and the other code styles, text is split into words at spaces, punctuation and existing case changes. So "userFirstName", "user first name" and "user-first-name" all become user_first_name in snake_case, and "parseHTTPResponse" becomes parse-http-response in kebab-case. Punctuation is dropped in these styles.

FAQ

Why are names lower case after Sentence case?

Sentence case lowers everything and then capitalises the first letter of each sentence and the word "I". It cannot tell which words are names, so recapitalise proper nouns such as "Dubai" or "Monday" yourself.

Does it work with accents and other alphabets?

Yes, for alphabets that have upper and lower case, such as Latin with accents, Greek and Cyrillic. Scripts without case, such as Arabic or Chinese, are left unchanged.

Is my text stored?

No. It stays in this browser tab only.