Text 🔒 Runs in your browser — no data sent to servers

Case Converter

Turn text into UPPER CASE, lower case, Title Case, camelCase, snake_case, a URL slug and more, all at once.

Input
Every case appears here as you type — nothing leaves your browser.

Case Converter - UPPER CASE, lower case, Title Case, camelCase and More

Type or paste text and see it in every common case at once: UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and a URL slug. Copy the one you need with a single click. It is the quick fix for a heading typed with Caps Lock on, a list of names that has to become variable names, or a title that has to become a web address.

The conversion runs in your browser as you type, and the character and word count of your text is shown above the results.

How to use it

  1. Type or paste your text into the box.
  2. Every style appears below as you type.
  3. Press Copy next to the result you want.
  4. Leave One result per line ticked to convert a column of names line by line.

Every style at a glance

StyleExampleTypical use
UPPER CASEUSER ACCOUNT IDHeadings, acronyms, emphasis
lower caseuser account idNormalising text before comparing it
Title CaseUser Account IdTitles, headings, product names
Sentence caseUser account idInterface labels, headlines in many style guides
camelCaseuserAccountIdJavaScript, Java and JSON property names
PascalCaseUserAccountIdClass and component names
snake_caseuser_account_idPython, Ruby, database columns
kebab-caseuser-account-idCSS classes, file names, URLs
CONSTANT_CASEUSER_ACCOUNT_IDConstants and environment variables
dot.caseuser.account.idConfiguration keys and translation keys
URL sluguser-account-idWeb addresses built from a title

Title Case done properly

Capitalising every word gives "The Lord Of The Rings", which most style guides reject. With Keep short words lowercase in titles ticked, articles, short conjunctions and short prepositions such as a, an, the, and, of, in and to stay lowercase unless they are the first or last word, or start a subtitle after a colon: "The Lord of the Rings: The Fellowship of the Ring". Words someone deliberately capitalised, such as NASA, iPhone or XMLHttpRequest, are left exactly as they are. These rules follow English style guides; for other languages, untick the option to capitalise every word.

Converting identifiers

The identifier styles first split your text into words, and they recognise words inside existing identifiers too. helloWorld, hello_world, hello-world and Hello World all become the same two words, and XMLHttpRequest becomes XML, Http and Request. So any style converts into any other: paste a column of database names in snake_case and copy them out in camelCase for your JavaScript.

URL slugs in any language

A slug is the part of a web address that names a page, such as /blog/how-to-make-bread. The slug style lowercases the text, turns accented Latin letters into plain ones (é becomes e, ß becomes ss) and replaces spaces and punctuation with single hyphens. With Keep non-Latin letters in slugs ticked, Persian, Arabic, Cyrillic or Japanese letters are kept, which browsers and search engines handle fine; untick it for a strictly ASCII slug.

Things to know

  • Case changes follow Unicode, so accented and non-Latin letters that have upper and lower forms convert correctly.
  • Scripts without letter case, such as Persian, Arabic, Chinese and Japanese, are not changed by UPPER or lower case.
  • Sentence case lowercases everything first, so acronyms need to be fixed by hand afterwards.
  • Nothing is uploaded: the text never leaves your browser.

Related tools

To count words and characters in more detail, or to remove duplicate lines, use the word counter. To tidy code rather than text, use the code formatter. The task pages open this tool with one style first: slug generator, Title Case converter, uppercase converter and camelCase converter.