Convert Text Case

Paste text and switch between UPPERCASE, lowercase, Title Case, Sentence case and programming styles.

0 words · 0 characters

Nine formats

Four writing styles and five naming styles used in programming.

Undo any change

Step back through your last 20 conversions to the text you started with.

Stays in your browser

Your text is converted on your device. Nothing is uploaded.

How to use the case converter

  1. Paste or type your text into the box.
  2. Click one of the nine formats. The text in the box is replaced with the converted version.
  3. Not what you wanted? Click Undo. Each click steps back one conversion, all the way to your original text.
  4. Click Copy text to put the result on your clipboard, then paste it where you need it.

The counter under the buttons shows the number of words and characters, so you can check the length of a headline or a field at the same time.

Screenshot of the Preslo Case Converter tool, free and running in a web browser
Case Converter on Preslo (Text & Generators) — free, private and no sign-up needed.

What each format does

FormatExample resultTypical use
UPPERCASETHE LORD OF THE RINGSShort labels, warnings, acronyms
lowercasethe lord of the ringsTags, email addresses, normalising data
Title CaseThe Lord of the RingsHeadlines, book and film titles, headings
Sentence caseThe lord of the ringsParagraphs, captions, buttons, many website headings
camelCasetheLordOfTheRingsVariables in JavaScript and Java
PascalCaseTheLordOfTheRingsClass and component names
snake_casethe_lord_of_the_ringsPython variables, database columns
kebab-casethe-lord-of-the-ringsURL slugs, CSS class names, file names
CONSTANT_CASETHE_LORD_OF_THE_RINGSConstants and environment variables

How Title Case and Sentence case are decided

Title Case capitalizes the first letter of each word, except short articles, conjunctions and prepositions such as a, an, the, and, but, or, for, of, in, on, to, at, by, with and from. Those small words stay lowercase in the middle of a title, but the first and last words are always capitalized, as is a word after a colon or dash ("Star Wars: A New Hope"). Hyphenated words get a capital on each part, and contractions such as "don't" stay intact. Style guides such as AP, Chicago and APA differ in a few details, for example whether to capitalize prepositions of four or more letters, so check the guide you follow for important headlines.

Sentence case lowercases the text and capitalizes the first word of each sentence and of each new line. The pronoun "I" and forms like "I'm" and "I'll" stay capitalized. A full stop after a common abbreviation, such as e.g., i.e., etc., Mr. or Dr., or after a single initial, does not start a new sentence, so "e.g. apples" does not become "e.g. Apples". Proper nouns cannot be detected automatically, so names like "london" or "monday" may need a manual fix afterwards.

In both formats, words that already contain a capital letter after their first letter, such as NASA, iPhone or McDonald, are kept as you typed them, because they are usually acronyms or brand names. If most of your text is in capitals, this rule is switched off so the text can be converted properly.

Languages and special characters

The converter works with letters from any alphabet, not only A to Z. Accented letters such as é, ß or ø, and scripts such as Greek and Cyrillic, are converted with your browser's language-aware rules, so "élan" becomes "Élan" and "ΚΑΛΗΜΕΡΑ" becomes "καλημερα" in lowercase. Scripts without capital letters, such as Chinese or Arabic, are left unchanged. For the programming styles, punctuation is removed and the remaining words are joined, but letters outside A to Z are kept, so check that the language or system you are naming for accepts them. Each line is converted separately, which means you can paste a list of names and get a list of identifiers back.

Tips

  • Text written in all capitals reads as shouting in emails and posts. Paste it here and choose Sentence case to fix it in one click.
  • To create a URL slug from an article title, use kebab-case.
  • Converting a camelCase name to snake_case works directly: "userAccountId" becomes "user_account_id".
  • The conversion replaces the text in the box. Your browser's own undo shortcut may not restore it, so use the Undo button on this page instead.

Privacy

The conversion happens on your device in JavaScript. Your text is never uploaded or logged, and you do not need an account, so it is safe for private drafts and notes.

Frequently asked questions

Which case formats can I convert to?

Nine: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.

Can I undo a conversion?

Yes. The Undo button steps back through your recent conversions, up to 20, until you reach the original text.

Which words stay lowercase in Title Case?

Short articles, conjunctions and prepositions such as a, an, the, and, but, or, for, of, in, on, to, at, by, with and from, unless they are the first or last word or follow a colon or dash.

When should I use sentence case instead of title case?

Use title case for headlines and titles of works, and sentence case for ordinary text such as paragraphs, captions and button labels. Many modern style guides also use sentence case for headings.

Does it work with accented letters and other alphabets?

Yes. It uses Unicode-aware rules, so accented Latin letters, Greek, Cyrillic and other scripts with capital letters are converted correctly. Scripts without capitals are left as they are.

Why did a name stay lowercase in Sentence case?

The tool cannot tell which words are proper nouns, so names of people, places and days are lowercased unless they start a sentence or contain an inner capital. Fix those few words by hand.

Is my text uploaded or stored?

No. Everything runs in your browser, so your text never leaves your device.

Related tools