Change text case instantly

Change text case instantly. Nothing leaves your browser.

How it works

  1. Paste your text
  2. Pick a case
  3. Copy the result

What each case does

UPPERCASE and lowercase change every letter to capitals or small letters. Sentence case lowercases the text, then capitalises the first letter of each line and the first letter after a full stop, question mark or exclamation mark. Title Case capitalises each word except a short list of small words in the middle of a line. camelCase joins words with no spaces, lowercases the first word and capitalises the rest, as in variable names. PascalCase does the same but capitalises the first word too. snake_case joins lowercase words with underscores, and kebab-case joins them with hyphens. CONSTANT_CASE is snake_case in capitals, the usual form for named constants. aLtErNaTiNg alternates lower and upper case letter by letter, as in a meme. Each mode works on one line at a time, so the line breaks you typed stay where they are.

Title case rules used here

The small words that stay lowercase in the middle of a line are a, an, the, and, but, or, for, nor, on, at, to, by, of and in. The first and last word of a line are always capitalised, so a line that starts with the word the gives The. A hyphenated word gets one capital at its start: well-known becomes Well-known. Whitespace is kept exactly as you typed it. Acronyms are not kept in capitals: NASA becomes Nasa, so check any name or acronym that must stay in capitals and retype it. This tool uses its own list of small words. It does not follow a publisher's style guide, so its titles can differ from a book or a newspaper's.

Cases for programmers

The programmer cases split your text into words first. A space, a punctuation mark, an underscore, a hyphen or a symbol ends a word. A capital letter that follows a lowercase letter or a digit starts a new word, so getHTTPResponseCode splits into get, HTTP and Response, and version2Beta splits into version2 and Beta. An apostrophe is removed rather than split, so don't becomes dont. Digits stay with the letters before them, so a1b2 is one word. Letters from other alphabets are kept, so éclair été becomes éclairÉté in camelCase. Each line becomes its own identifier, and a line with no letters or digits gives an empty line. The split follows these rules rather than the grammar of your language, so check the result before you use it in code.

Your text stays on your device

The conversion runs in your browser, in this tab. There is no upload step and no server that receives your text, and the text is never put in the page address. The page counts visits, results and copy presses with Google Analytics. It never counts or sends your text. Your choice of case is remembered in this browser, but the text is not, so it is gone when you close the tab. Pressing Clear empties the box. Texts up to 1,000,000 characters are converted. Longer text shows a message asking you to split it into parts, and nothing is converted until you do.

Frequently asked questions

Which words stay lowercase in Title Case?

The words a, an, the, and, but, or, for, nor, on, at, to, by, of and in stay lowercase when they fall in the middle of a line. The first and last word are always capitalised, so The Lord of the Rings keeps of and the in lowercase, while the, when it starts a line, becomes The.

What is the difference between camelCase and PascalCase?

They join the same words in the same way. camelCase lowercases the first word, so getUserName starts with a small g. PascalCase capitalises the first word too, so GetUserName starts with a capital.

Does it keep my line breaks?

Yes, in every mode. Each line is converted on its own and the lines are joined again with a single line break. Windows line endings, which are a carriage return and a line feed, come out as a single line break, so a three-line list is still three lines after you change its case.

Are acronyms preserved?

No. In Title Case, NASA becomes Nasa and HTML becomes Html. In camelCase, XMLHttpRequest becomes xmlHttpRequest, and it is split at the boundary between the acronym and the next word. Retype any acronym that must stay in capitals after you convert the text.

Is my text uploaded?

No. The conversion runs in your browser, in this tab, and no server receives your text. Your choice of case is saved in this browser, but the text is not saved, so closing the tab clears it. Google Analytics counts visits, results and copy presses, never the text.