Case converter

Paste text and pick a case: UPPER, lower, Title Case and Sentence case for writing, or camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE for code.

  • 100% free
  • Runs in your browser
  • No uploads
Convert to
Style

Small words (a, an, the, and, but, or, for, of, in, on, at, to, by, with, from…) stay lower case unless they're first, last or after a colon. Words with capitals inside, like iPhone or NASA, are kept.

0 words · 0 characters

How to change text case

  1. Paste or type your text. It can be a heading, a whole document or a list of names, one per line.
  2. Choose a case. The result appears straight away next to your text. Your original stays as it was, so you can try several.
  3. Copy or download. Copy the result, download it as a .txt file, or press Use as input to keep converting from there.

Every case, with an example

CaseUsed for“the state of the art”
Sentence caseBody text, UI labels, many style guides' headingsThe state of the art
Title CaseBook, film and article titlesThe State of the Art
Capitalized Each WordNames, lists where every word matchesThe State Of The Art
UPPER CASEShort labels, acronyms, warningsTHE STATE OF THE ART
camelCaseJavaScript and Java variablestheStateOfTheArt
PascalCaseClass and component namesTheStateOfTheArt
snake_casePython, database columnsthe_state_of_the_art
kebab-caseURLs, CSS classes, file namesthe-state-of-the-art
CONSTANT_CASEConstants and environment variablesTHE_STATE_OF_THE_ART

Common mistakes

Fixing caps lock text with Title Case. When everything is in capitals there's no way to know which words were meant to be capitalised, so the converter starts from lower case. Proper nouns in the middle of a title, like Paris or Google, then need a capital put back.

Using Capitalized Each Word for headlines. Capitalising “of”, “the” and “and” looks wrong in a title. Title Case handles those small words for you. If you follow a style guide, choose AP or Chicago under Style; the title case converter explains where the two differ.

Expecting plain ASCII slugs. kebab-case drops punctuation but keeps accented letters, so “Café crème” becomes café-crème. Some systems only accept a to z in web addresses, so check before using the result as a URL.

Frequently asked questions

Which words stay lowercase in Title Case?

Articles (a, an, the), short conjunctions (and, but, or, nor, for, so, yet) and prepositions of up to four letters (as, at, by, in, of, off, on, per, to, up, via, into, onto, from, with, over, upon). They're capitalised when they're the first or last word, or come right after a colon. That is the Standard style. Choose AP or Chicago under Style to follow those rules instead: AP capitalises prepositions of four letters, like “With” and “From”.

What's the difference between Title Case and Capitalized Each Word?

Title Case follows headline rules and keeps small words lowercase: “The Lord of the Rings”. Capitalized Each Word puts a capital on every word: “The Lord Of The Rings”. Use the second for things like product option lists where every word should look the same.

Why did Sentence case turn NASA into nasa?

Sentence case lowers everything except the first letter of each sentence and the word I, because the converter can't tell an acronym or a name from a shouted word. Fix names and acronyms by hand afterwards. Title Case does keep words that have capitals inside them, like iPhone or NASA, as long as the text isn't all in capitals.

How does it convert to camelCase or snake_case?

The text is split into words at spaces, punctuation and changes of case, so “parseHTMLString”, “parse html string” and “parse_html_string” all become the same three words. Apostrophes are removed so “don't” becomes “dont”. Each line is converted separately, which lets you convert a whole list of column or variable names at once.

Does it work with accented letters and other alphabets?

Yes. It uses your browser's own Unicode rules, so É, ß, Greek and Cyrillic letters change case correctly; the German ß becomes SS in upper case. Scripts without capital letters, such as Chinese or Arabic, are left as they are.