Case Converter
Turn text into UPPER CASE, lower case, Title Case, camelCase, snake_case, a URL slug and more, all at once.
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
- Type or paste your text into the box.
- Every style appears below as you type.
- Press Copy next to the result you want.
- Leave One result per line ticked to convert a column of names line by line.
Every style at a glance
| Style | Example | Typical use |
|---|---|---|
| UPPER CASE | USER ACCOUNT ID | Headings, acronyms, emphasis |
| lower case | user account id | Normalising text before comparing it |
| Title Case | User Account Id | Titles, headings, product names |
| Sentence case | User account id | Interface labels, headlines in many style guides |
| camelCase | userAccountId | JavaScript, Java and JSON property names |
| PascalCase | UserAccountId | Class and component names |
| snake_case | user_account_id | Python, Ruby, database columns |
| kebab-case | user-account-id | CSS classes, file names, URLs |
| CONSTANT_CASE | USER_ACCOUNT_ID | Constants and environment variables |
| dot.case | user.account.id | Configuration keys and translation keys |
| URL slug | user-account-id | Web 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.