Case Converter

Paste your text, click a style, copy the result.

How to convert text

  1. Type or paste your text into the large box. Line breaks are kept, so you can convert a whole paragraph or a list of names in one go.
  2. Click one of the ten style buttons. The text in the box is replaced right away; the buttons act on whatever is currently in the box, not on your original.
  3. Not happy with the result? Click another style, or fix the text by hand and convert again. Use Copy text to put the result on the clipboard, or Clear to start over.

Because each click overwrites the box, the order matters. Title Case treats only spaces as word breaks, so after converting to snake_case, "hello_world" becomes "Hello_world" with Title Case, not "Hello World". If you want to keep a copy of the original, copy it somewhere first.

In short

Title Case keeps short words such as a, of and the in lowercase, and programming cases split words at spaces, punctuation and capital letters. UPPERCASE and back is safe for English and most accented letters, but ß, PDF ligatures and Greek may not return unchanged, so keep a copy first.

Frequently asked questions

Is my text uploaded?

No. All conversion happens in your browser.

Does Title Case follow style guides?

It capitalizes every word except small words like “a”, “of” and “the” in the middle of a title. Check your style guide for edge cases.

Why did my text lose its punctuation?

You probably used one of the programming styles (camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE). These produce identifiers, which cannot contain spaces or punctuation, so every non-alphanumeric character is treated as a break and removed. Use UPPERCASE, lowercase, Title Case or Sentence case to keep punctuation.

Can I undo a conversion?

There is no undo button. Information such as the original capitalization is lost once the text is lowercased, so keep a copy of anything you cannot easily retype. Your browser's own undo (Ctrl+Z or Cmd+Z inside the box) may also work, depending on the browser.

Our test: does UPPERCASE and then lowercase give back the original text?

Every character that Unicode classes as a lowercase letter, 2,283 in all, went into the converter one per line, in headless Chromium 153.0.8010.12. We pressed UPPERCASE, then lowercase, and compared each line with the original. We also checked whether UPPERCASE made a line longer. The table shows the main alphabets.

English a-z0Western European2Central European3Cyrillic0Greek10Ligatures12
Lowercase letters that did not come back unchanged — chart drawn from the table below.
LettersTestedWith an uppercase formDid not come backGot longer in UPPERCASE
English a-z262600
Western European (à to ÿ, ß, µ)333321
Central European (Latin Extended-A)656431
Cyrillic12412400
Greek6766102
Ligatures (fi, fl, ff and others)12121212

Overall, 97 of the 2,283 letters did not return unchanged and 75 became longer when capitalised. Typical cases: German ß becomes SS and then ss, so "Straße" comes back as "strasse" and grows from 6 to 7 characters; Turkish dotless ı becomes I and then an ordinary i; the long s (ſ) and the Greek final sigma (ς) come back as their ordinary forms; and the ligature fi becomes the two letters FI. Many polytonic Greek letters with a subscript iota also split into two.

What it means: for English, Cyrillic and nearly all accented Latin letters the round trip is safe. If your text contains ß, ligatures from a PDF, or Greek, keep a copy before using UPPERCASE, and recheck any character limit afterwards, because the uppercase version can be longer.

More details

When to use each case

  • Title Case for headlines and book titles.
  • Sentence case to fix text typed in all caps.
  • camelCase and PascalCase for variable and class names in many programming languages.
  • snake_case for Python and database columns, kebab-case for URLs and CSS classes.

What each style actually does

  • UPPERCASE and lowercase simply apply the browser's built-in case mapping to every letter, including accented ones.
  • Title Case lowercases everything first, then capitalizes the first letter of each space-separated word. The words a, an, and, as, at, but, by, for, in, nor, of, on, or, so, the, to, up, via and yet stay lowercase, except when they are the very first word. The last word of a title is not given special treatment, so "what are you waiting for" becomes "What Are You Waiting for".
  • Sentence case lowercases everything, then capitalizes the first letter of the text and the first letter after a full stop, exclamation mark or question mark followed by a space, or at the start of a new line.
  • camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE first split the text into words, then join them with the right separator and capitalization.
  • aLtErNaTiNg flips the case of each letter in turn, starting with lowercase. Spaces and punctuation are skipped when counting, so "hello world" becomes "hElLo WoRlD".

How words are detected for programming cases

Any run of characters that is not a letter or digit counts as a separator, so spaces, hyphens, underscores, dots and slashes all work as word breaks. The one exception is an apostrophe inside a word, which is removed so the word stays in one piece. In addition, the converter looks for places where a lowercase letter or digit is followed by a capital, and for an acronym followed by a capitalized word. This means you can convert existing identifiers as well as plain sentences.

Examples of what comes out:

  • "user account id" becomes userAccountId in camelCase and UserAccountId in PascalCase.
  • getHTTPResponse is split into get, HTTP and Response, so snake_case gives get_http_response.
  • XMLHttpRequest becomes xml-http-request in kebab-case.
  • "max retry count" becomes MAX_RETRY_COUNT in CONSTANT_CASE.

Punctuation is dropped in these five styles, so "it's a test!" turns into its_a_test in snake_case: an apostrophe inside a word is removed, and other punctuation acts as a separator. Digits are kept.

Titles, code identifiers and cleaning pasted text

  • Rescuing text typed with Caps Lock on. Paste it, click Sentence case, then fix the proper nouns by hand.
  • Renaming variables between languages. A JavaScript field in camelCase can become a snake_case database column in one click, and back again.
  • Making URL slugs and CSS class names. Kebab-case turns a headline into a lowercase, hyphen-separated string; remove any leftover words you do not want in the slug.
  • Cleaning spreadsheet lists. Paste a column of names written in mixed capitals and normalize them with Title Case.

Acronyms, accents and what Title Case misses

  • Proper nouns and acronyms are not remembered. Title Case and Sentence case lowercase the whole text before capitalizing, so "NASA" becomes "Nasa" and the pronoun "I" becomes "i" mid-sentence. Re-check these after converting.
  • Hyphenated words are treated as one word in Title Case, so "well-known" becomes "Well-known", not "Well-Known".
  • Sentence detection looks for punctuation followed by a space, so abbreviations such as "e.g. this" will capitalize the next word.
  • Capitalization rules apply to Latin letters. Scripts without upper and lower case, such as Korean, Chinese or Japanese, pass through unchanged in the case styles, though they are still treated as word characters by the programming styles.
  • Style guides disagree about which small words to lowercase. The built-in list is a common short one; adjust the result by hand if a publisher requires something different.

More questions

Does it handle accented letters?

Yes for upper and lower case, which use the browser's standard mapping. Sentence case also capitalises an accented first letter such as é or ü, and letters from other alphabets such as Greek or Cyrillic.

More in Text & developer