Case Converter

Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and kebab-case.

Result

          
Pick a case

Line breaks are always kept exactly as they are.

How to use it

  1. Paste your text into the left box.
  2. Click the case you want from the row of buttons — the result appears immediately.
  3. Press Copy result, or Use as input to chain another conversion.

The naming styles, and where each one belongs

Four of the options on this page are not writing styles at all. They are programming conventions, and each language has settled on a different one. Using the wrong one is not an error the computer will catch, but it marks the code out immediately.

  • camelCaseuserFirstName. JavaScript and Java variables.
  • PascalCaseUserFirstName. Class names in most languages, and React components.
  • snake_caseuser_first_name. Python, Ruby, and almost every SQL database column.
  • kebab-caseuser-first-name. Web addresses, CSS class names and file names. Never a variable name, because most languages read the hyphen as a minus sign.

Title Case is not just capital letters

Proper Title Case leaves the small words alone. The Lord of the Rings is correct; The Lord Of The Rings is not. Articles, short prepositions and conjunctions stay lowercase unless they are the first or last word of the title.

That is why Title Case here does not simply capitalise every word. If you do want every word capitalised, including of and the, that is a different convention and it is what most other converters give you by default.

Sentence case is different again: one capital at the start of each sentence, and everything else left as it was. It is the right choice for headlines in most modern style guides, and for anything that was accidentally typed with caps lock on.

Frequently asked questions

What is the difference between Title Case and Sentence case?

Title Case capitalises every important word: The Quick Brown Fox. Sentence case capitalises only the first word of each sentence: The quick brown fox.

Why does Title Case leave some words lowercase?

Standard English style keeps short words like a, and, of, the, to lowercase inside a title, unless they are the first or last word.

Does it keep my line breaks and paragraphs?

Yes for every mode except camelCase, snake_case and kebab-case — those three produce a single joined identifier by definition.

Can I convert snake_case straight to camelCase?

Yes. The tool splits any input into plain words first, so user_first_name becomes userFirstName in one click.

Related tools