Skip to the content

Case Converter

Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case and more. Works on whole lists of names at once.

Writing

Code

For fun

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

The cases, with an example

Case"the quick brown fox" becomesTypical use
Sentence caseThe quick brown foxNormal prose, fixing text typed with caps lock on
Title CaseThe Quick Brown FoxHeadlines and book titles
Capitalize Every WordThe Quick Brown FoxNames, labels
UPPERCASETHE QUICK BROWN FOXShort warnings, acronyms
lowercasethe quick brown foxE-mail addresses, tidying up input
camelCasetheQuickBrownFoxVariables in JavaScript and Java
PascalCaseTheQuickBrownFoxClass and component names
snake_casethe_quick_brown_foxPython, database columns
kebab-casethe-quick-brown-foxURLs, CSS classes, file names
CONSTANT_CASETHE_QUICK_BROWN_FOXConstants, environment variables
Train-CaseThe-Quick-Brown-FoxHTTP headers
dot.casethe.quick.brown.foxConfiguration keys
path/casethe/quick/brown/foxFile paths

Title Case is not the same as capitalizing every word

In a proper title, short words such as "of", "the", "and" and "to" stay lowercase unless they are the first or the last word: The Lord of the Rings, not The Lord Of The Rings. That is what Title Case does here. If you really want a capital on every word, use Capitalize Every Word.

Words that already carry a capital in the middle, such as iPhone or McDonald, are left as you typed them.

Sentence case and acronyms

Sentence case lowercases everything and then puts a capital at the start of each sentence and on the word "I". In text that is mostly lowercase it keeps words that are fully in capitals, so NASA stays NASA. When most of the text is in capitals, as after typing with caps lock on, there is no way to tell an acronym from shouting, and all of it is lowered.

Converting names for code

The code styles work out where words begin, also inside existing identifiers: parseHTMLString is read as parse + HTML + String, so it becomes parse_html_string in snake_case. Each line is converted separately, which means you can paste a whole column of names and get the same list back in another style.

Punctuation is dropped in these styles, because it isn't allowed in a variable name anyway.

A page for each case

See all 9