Convert text case

Change a block of text to uppercase, lowercase, title case, sentence case or one of the programming styles, without retyping it.

Convert text case

0 characters

Three steps — nothing to install

  1. Paste the text

    Put in a heading, a list of names or a variable name; line breaks and punctuation stay where they are.

  2. Pick a style

    Eleven styles, from UPPERCASE to camelCase, each applied to the whole block at once.

  3. Copy the result

    Copy it or download it as a text file. The original text stays in the box until you clear it.

What title case actually does

There is no single title case. The Chicago Manual of Style, the AP Stylebook and most word processors disagree about small words, hyphenated compounds and prepositions. This page uses the simplest rule people expect: lowercase everything, then capitalise the first letter of every word.

That rule has a cost you should know about. Acronyms lose their capitals — NASA becomes Nasa — and words with intentional internal capitals, such as iPhone, become Iphone. For a headline that contains either, convert first and fix those two or three words by hand. Sentence case is safer for body text: it lowercases the block and capitalises only the start of sentences.

The programming styles, and how words are split

camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case all need to know where one word ends and the next begins. Existing camelCase is split before its capitals, so getUserName becomes get_user_name rather than one long token. Hyphens, underscores, spaces and punctuation all count as separators.

Accented letters survive. The split is on ASCII word characters plus Latin, Greek and Cyrillic letters, so Café Menu becomes cafe-menu only if you remove the accent first; by default it keeps the é. For a URL slug specifically, the slug generator folds accents and limits the length as well.

Case and languages

Uppercasing is done with JavaScript's Unicode-aware toUpperCase, which is the same mapping the page's own text uses. It is not locale-sensitive: the Turkish dotted and dotless i are handled by Unicode's default rules, not Turkish ones, so i becomes I rather than İ. If you are preparing Turkish text for print, check those letters after converting.

German ß becomes SS in uppercase, as the language requires. Greek final sigma is handled by the browser's Unicode tables. Nothing is transliterated: Cyrillic stays Cyrillic in uppercase.

Frequently asked questions

Does it keep my line breaks?Yes. Only the letters change; spaces, punctuation, line breaks and indentation are left exactly as they were.
Why did NASA become Nasa in title case?Because title case here lowercases each word and then capitalises its first letter. Fix acronyms by hand, or use sentence case, which leaves internal capitals alone.
Can I convert to Turkish uppercase?Not with the locale rules. The conversion uses Unicode's default mapping, so i becomes I. Check dotted and dotless i by hand for Turkish.
Is camelCase split correctly from existing camelCase?Yes. A capital letter inside a word starts a new word, so getUserName becomes get_user_name in snake_case.
Is my text uploaded?No. The conversion is a string operation in this tab. Nothing is sent, stored or logged.
Does it work on very long text?It works on the whole text at once, limited by the memory of the tab. A book-length manuscript is fine; a hundred megabytes is not.