Case Converter — Title Case, camelCase, snake_case and More

Paste your text and pick a style to convert it to one of 12 cases, from UPPERCASE and Title Case for writing to camelCase, snake_case and kebab-case for code.

Live demo · real result from this tool

Converted text

The Quick Brown Fox Jumps Over the Lazy Dog

Processed on your device — nothing is uploaded.

How to use the case converter

  1. Paste or type your text into Your text.
  2. Choose a style from Convert to: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case, aLtErNaTiNg or iNVERSE.
  3. Copy the Converted text.
  4. Check any names, brands and acronyms, which no converter can know about.

What it does and when to use it

The 12 styles fall into two groups.

Styles for writing keep your spaces and punctuation:

  • UPPERCASE and lowercase change every letter.
  • Title Case suits headlines, book titles and headings.
  • Sentence case suits body text, interface labels and fixing text typed in capitals.
  • aLtErNaTiNg and iNVERSE are for fun or for undoing a Caps Lock accident.

Styles for code remove spaces and punctuation and join the words:

  • camelCase: JavaScript and Java variables and functions.
  • PascalCase: classes, TypeScript types and React components.
  • snake_case: Python names, database columns and many JSON keys.
  • CONSTANT_CASE: constants and environment variables.
  • kebab-case: URLs, CSS classes, HTML attributes and npm package names.
  • dot.case: configuration keys and some logging systems.

For URLs, the URL Slug Generator goes further than kebab-case by removing accents and turning “&” into “and”.

How it works

For the code styles, the tool first splits your text into words. It breaks on spaces, underscores, hyphens and other punctuation, and also where a lowercase letter meets a capital. So “userAccountId”, “user_account_id” and “user account id” all become the same three words. It then joins them in the style you picked.

Title Case lowercases the text, then capitalises every word except a short list of small words (a, an, and, as, at, but, by, for, if, in, nor, of, off, on, or, per, so, the, to, up, via, vs, yet). The first and last words are always capitalised. Sentence case lowercases everything, then capitalises the first letter of the text and the first letter after each full stop, question mark or exclamation mark. Everything runs in your browser.

Worked examples

  • Title Case: “the lord of the rings” becomes The Lord of the Rings. “of” and the second “the” stay lowercase.
  • camelCase to snake_case: “userAccountId” becomes user_account_id, because the tool splits at each capital.
  • A file name for the web: “Monthly Sales Report 2026” in kebab-case becomes monthly-sales-report-2026.
  • Calming down capitals: “THIS IS LOUD. please calm down.” in Sentence case becomes This is loud. Please calm down.

Limits and tips

  • Converting to lowercase loses information you cannot get back. Convert from the original text where you can.
  • Code styles treat an apostrophe as a word break, so “don’t stop” becomes donTStop in camelCase. Remove apostrophes first (“dont stop”) to get dontStop.
  • Sentence case also capitalises after abbreviations that end in a full stop, such as “approx.”, so read the result through.
  • To check the length of your result, use the Character Counter. To compare the text before and after, paste both into Text Comparison.

Frequently asked questions

What is the difference between Title Case and Sentence case?
Title Case capitalises the main words of a heading. Sentence case capitalises only the first word of each sentence, like normal writing. Many companies now use sentence case for buttons, menus and headings because it is quicker to read.
Which words stay lowercase in Title Case?
Short articles, conjunctions and prepositions such as a, an, the, and, but, of, in, on, to and for stay lowercase, unless they are the first or last word. Style guides such as AP and Chicago differ on the details, so check headlines by hand if you write to a specific guide.
What is the difference between camelCase and PascalCase?
Only the first letter. camelCase starts lowercase (userName) and PascalCase starts uppercase (UserName). By convention camelCase names variables and functions, and PascalCase names classes, types and React components.
Can it fix text I typed with Caps Lock on?
Yes. Choose iNVERSE to swap every letter's case, or Sentence case to rebuild normal capitals from scratch.
Will it keep acronyms like NASA?
Not in lowercase, Title Case or Sentence case, which lower every letter first. NASA becomes Nasa or nasa, and iPhone becomes Iphone. Fix brand names and acronyms by hand after converting, and keep a copy of the original.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close