What each case style does
Changing capitalisation by hand is slow and easy to get wrong, especially with long text. This converter handles ten styles and runs instantly in your browser, so you can fix a headline typed in capitals or turn a heading into a variable name without retyping anything.
Everyday writing styles
- UPPERCASE makes every letter a capital. It is useful for short labels and warnings, but long passages in capitals are harder to read.
- lowercase removes all capitals, which is handy for normalising data before comparing or sorting it.
- Title Case capitalises the main words of a headline and keeps short articles, conjunctions and prepositions such as "of", "the" and "and" in lowercase, except at the start, at the end and after a colon. "the lord of the rings: a tale" becomes "The Lord of the Rings: A Tale".
- Sentence case capitalises the first letter of each sentence and the standalone word "I", and lowercases the rest. It is the usual choice for body text, and many publishers now prefer it for headings.
- aLtErNaTiNg switches the case of each letter in turn. It is mostly used for jokes and social media posts.
Programming and file-name styles
- camelCase joins words with no separator and capitalises every word after the first, as in
userAccountName. It is common in JavaScript and Java variables. - PascalCase is the same, but the first word is capitalised too, as in
UserAccountName, and is often used for class and component names. - snake_case uses lowercase words joined by underscores and is typical in Python, Ruby and database columns.
- kebab-case joins lowercase words with hyphens. It is common in URLs, CSS class names and file names.
- CONSTANT_CASE uses capitals and underscores, which is a convention for constants and environment variables.
How the converter splits words
For the programming styles, the tool breaks your text into words at spaces, hyphens, underscores, punctuation and at lowercase-to-uppercase boundaries. So "userAccountName", "user account name" and "user-account-name" all convert to the same results. Runs of capitals are treated sensibly: "XMLHttpRequest" is split into "XML", "Http" and "Request".
Things to watch for
Title Case and Sentence case first convert everything to lowercase, so brand names and acronyms such as "iPhone", "NASA" or "McDonald's" will lose their special capitalisation, and you may need to correct them afterwards. Style guides disagree on which short words stay lowercase, so treat the title result as a strong starting point and check it against the guide your publication uses. Sentence case recognises sentence ends from full stops, question marks and exclamation marks, so abbreviations such as "e.g." can occasionally cause an unwanted capital.
Your text never leaves your device, so you can use the converter on private drafts and code. After converting, press Copy result to put the text on your clipboard.