Case Converter
Convert text to uppercase, lowercase, title case, sentence case, camelCase, or snake_case.
Written by Anil Gautam · Updated
Which words does title case capitalize?
Title case here capitalizes every word. The converter lowercases the whole text, then capitalizes the first letter after each word boundary, so short words such as of and the get capitals too: "the lord of the rings: return of the king" becomes "The Lord Of The Rings: Return Of The King". Style guides such as AP and Chicago keep those small words lowercase, so fix them by hand if you follow one.
Because the text is lowercased first, acronyms and brand names lose their capitals: NASA becomes Nasa and iPhone becomes Iphone. An apostrophe counts as a word boundary, so O'Neill comes out right while don't becomes Don'T. Hyphens split words the same way, giving State-Of-The-Art, and an accented first letter is skipped, so élan becomes éLan.
What does sentence case change?
Sentence case lowercases everything, then capitalizes the first letter of the text and any letter that follows a full stop, question mark or exclamation mark plus a space. Names, acronyms and the pronoun I are lowercased along the way, and abbreviations look like sentence ends. The input "yes, I agree. we leave at 9 a.m. tomorrow" becomes "Yes, i agree. We leave at 9 a.m. Tomorrow" in sentence case.
A line break without punctuation does not start a new sentence, so the second item of a list stays lowercase, and text that opens with a quotation mark keeps a lowercase first letter. Read the output and restore capitals for names before using it.
How are camelCase and snake_case built?
Both modes lowercase the text first. In camelCase, every run of characters outside a to z and 0 to 9 is removed and the character after it is capitalized, so version 2 api becomes version2Api. For snake_case, those runs become a single underscore and underscores at the ends are trimmed, giving version_2_api. Punctuation at the very end survives in camelCase, so "Total Amount (INR)" becomes "totalAmountInr)" with the bracket left on.
Accented letters count as separators, so café au lait becomes cafAuLait and caf_au_lait. Text that is already in camelCase loses its word boundaries, so userId becomes userid in snake_case. For web addresses, Slug Generator removes accents before joining words with hyphens and turns café au lait into cafe-au-lait. Conversion happens in your browser as you type.
Does the case converter work with other languages?
UPPERCASE and lowercase follow Unicode case rules, so accented Latin and Cyrillic letters convert correctly, and the German ß becomes SS in uppercase, which makes the text one character longer. Scripts without capital letters, such as Hindi, pass through the first four modes unchanged. The camelCase and snake_case modes keep only a to z and 0 to 9, so Order नमस्ते 5 becomes order5 and order_5.