About Case Converter
Two different jobs tend to bring people here, and the buttons are grouped to match. Writers need a headline in Title Case, or a paragraph typed with caps lock on turned back into normal sentences. Developers need user first name written as userFirstName or USER_FIRST_NAME, or an identifier moved from one naming style to another.
Pick a case and the result appears beside your text. Change the text or the case and it updates immediately, so you can compare a few before choosing. Copy the result with one click or the keyboard.
Some details are handled for you that a plain conversion misses. In mixed text, NASA and iPhone keep their spelling in Title Case, don't does not become Don'T, and an existing parseHTTPResponse splits correctly into parse_http_response.
How it works
Lowercase and uppercase use the browser's Unicode case rules, so accented and non-Latin letters convert too, and ß becomes SS in uppercase. Title Case leaves short words such as of, the and to in lowercase unless they open a line, follow a colon or end the line. Capitalize Each Word capitalizes all of them. Sentence case capitalizes the first letter of each sentence and each line, restores the pronoun I, and skips abbreviations such as e.g..
Before those two change anything, the tool checks whether more than 60 percent of the letters are capitals. If they are, the capitals carry no meaning and everything is lowered first. Otherwise, a word in all capitals is treated as an acronym and left alone, and so is a word with a capital inside it, such as McDonald.
The code cases work a line at a time. Each line is broken into words at spaces and punctuation, and also where the case changes, so helloWorld and HTTPServer split correctly. Apostrophes are dropped rather than treated as a break, which gives dont_stop and not don_t_stop. Accented letters stay as they are.
How to use Case Converter
- Type or paste into the Your text box, or press Try an example.
- Choose a case from the For writing or For code row. You can move between them with the arrow keys.
- Check the converted text beside the box. The label above it names the case in use.
- Press Copy, or Ctrl or Cmd + Enter, to copy it. Download saves it as a text file.
The same tool for a headline and for code
the NASA report on iPhone batteries: what it means
parseHTTPResponse
user first nameTitle Case: The NASA Report on iPhone Batteries: What It Means
snake_case: parse_http_response
user_first_name
camelCase: parseHttpResponse
userFirstNameNotice on staying lowercase while It is capitalized, because It is not on the short-word list. The camelCase output gives Http and not HTTP, which is the common convention, so check it against your own code style.
When it helps
- Rescuing a paragraph that was typed with caps lock on, using Sentence case.
- Formatting headlines and email subject lines consistently across a newsletter.
- Renaming a list of database columns from
snake_casetocamelCasefor an API, one per line. - Producing
CONSTANT_CASEnames for environment variables from a plain description. - Cleaning up a spreadsheet column of names or titles exported in capitals.
Tips for a better result
- Paste identifiers one per line to convert a whole list. Each line stays separate.
- Check names after Title Case or Sentence case if they came from text in all capitals.
MCDONALDbecomesMcdonald, because nothing in the text says otherwise. - Style guides disagree on small details, such as whether to capitalize
withorfrom. The rule here keeps only short function words lowercase, so adjust the rare headline by hand. - For a URL, use the Slug Generator, which also removes accents and punctuation that kebab-case keeps.
Good to know
- Sentence case capitalizes the start of every line, so hard-wrapped text gets a capital where a sentence continues on the next line. Join the lines first with the Text Joiner.
- It cannot recognize proper nouns.
parisstays lowercase in Sentence case, andPARISturned to sentence case becomesparis. - Title Case follows English rules for short words. Other languages have different conventions for titles.
- Scripts without capitals, such as Chinese or Arabic, pass through unchanged, and the code cases treat them as ordinary word characters.
Questions people ask
What is the difference between Title Case and Capitalize Each Word?
Capitalize Each Word puts a capital on every word. Title Case follows headline convention, leaving small words such as of and the in lowercase unless they come first or last.
Which case should I use in code?
It depends on the language and team. Common patterns are camelCase for JavaScript variables, PascalCase for classes, snake_case in Python and SQL, and CONSTANT_CASE for fixed values. kebab-case suits CSS class names and URLs, since most languages cannot use a hyphen in a name.
Why did the tool keep some words in capitals?
In text that is mostly lowercase, a word in all capitals is probably an acronym, so it stays as it is. When most of the text is in capitals, everything is lowered, as that usually means caps lock was on.
What to use next
- Slug Generator: to turn a headline into a clean URL.
- Find and Replace: to fix one word that the case rules got wrong across a whole document.
- Sort Lines: to order a list after you have made its case consistent.
- Morse Code Translator: to send the same words as dots and dashes, which ignore case
Last reviewed . Read our editorial policy.