How to use the Case Converter tool
- Add your textType or paste anything into the box, from one heading to several pages.
- Pick a casePress a button such as “Title Case” or “snake_case” and the text changes straight away.
- Copy or saveHit “Copy result” to paste it elsewhere, or download it as a plain .txt file.
Supported text case styles
- Sentence caseCapitalises the first letter of every sentence and lowercases the rest, perfect for repairing text typed with Caps Lock on.
- Title CaseCapitalises the important words and leaves short ones like “and”, “of” and “the” in lowercase, as most headline style guides recommend.
- Uppercase and lowercaseTurns every letter into capitals or small letters, accented characters such as É and ß included.
- Capitalize Each WordPuts a capital at the start of every word, handy for names, labels and product titles.
- camelCase and PascalCaseJoins words without spaces for variable, function and class names in JavaScript, Java, C# and other languages.
- snake_case, kebab-case and CONSTANT_CASEStyles for Python variables, URL slugs, CSS classes and environment variables.
Choosing the right text case
Each kind of writing has its own capitalisation conventions. Following them makes your text look polished and, in code, makes it run at all. Retyping by hand is tedious and easy to get wrong, which is why a case converter that does the job in one click is so useful.
Sentence case
Sentence case is how most prose is written: the first word of each sentence and any proper nouns get a capital, and everything else stays lowercase. Many modern apps and websites use it for headings and buttons too, because it reads more easily than Title Case.
Title Case
Title Case is the classic choice for book titles, news headlines and email subject lines. Significant words are capitalised, while articles, short conjunctions and short prepositions stay lowercase unless they open or close the title. So “a tale of two cities” becomes “A Tale of Two Cities”. This converter follows that common rule, which agrees with the AP and Chicago style guides in most everyday cases.
Uppercase and lowercase
Uppercase suits acronyms, warnings and brief labels. Long stretches of capitals are tiring to read and can feel like shouting, so use them sparingly. Lowercase is useful for normalising data before comparing it, for example email addresses or tags.
Naming styles for developers
Every programming language and toolchain has naming conventions. The converter breaks your input into words, even if it’s already written in another style such as orderTotalAmount, and rebuilds it in the format you pick:
- camelCase, as in
orderTotalAmount: variables and functions in JavaScript and Java. - PascalCase, as in
OrderTotalAmount: class names in C#, Java and TypeScript. - snake_case, as in
order_total_amount: Python variables and database columns. - kebab-case, as in
order-total-amount: URL slugs, CSS classes and file names. - CONSTANT_CASE, as in
ORDER_TOTAL_AMOUNT: constants and environment variables.
Lines are converted one by one, so you can paste a whole list of identifiers and change them all together. For SEO-friendly URLs, our Slug Generator goes a step further.
Repairing text typed with Caps Lock on
Typed a whole paragraph with Caps Lock left on by mistake? Paste it here and press “Sentence case”. Each sentence regains its opening capital and the rest turns lowercase. You may still need to recapitalise names of people and places, since no tool can reliably spot every proper noun.