Case converter

Change text to Title Case, Sentence case, UPPER or lower case, or to camelCase and snake_case for code. Acronyms and names like iPhone keep their capitals.

Your text
Title Case
Type or paste some text

The styles

StyleTurns “the lord of the flies: a guide for UK students” into
Sentence caseThe lord of the flies: a guide for UK students
lower casethe lord of the flies: a guide for uk students
UPPER CASETHE LORD OF THE FLIES: A GUIDE FOR UK STUDENTS
Title CaseThe Lord of the Flies: A Guide for UK Students
Capitalised CaseThe Lord Of The Flies: A Guide For UK Students

How Title Case works

Most UK publishers capitalise the important words in a title and leave short joining words in lower case. The converter follows those rules:

  • Lower case: a, an, the, and, but, or, nor, for, so, yet, and short prepositions such as of, in, on, at, to, by and per.
  • Always capitalised: the first and last word, and the first word after a colon or dash, so a subtitle starts with a capital.
  • Hyphenated words: each part gets a capital, as in Well-Known or Self-Employed.
  • Left alone: acronyms such as UK and HMRC, and names with capitals inside them, like iPhone or YouTube.

Style guides disagree on the edge cases, such as whether to capitalise longer prepositions like about or between. If you’re writing for a publisher, check their house style.

Sentence case

Sentence case puts a capital at the start of each sentence and on “I”, and lowers everything else except acronyms and mixed-case names. It’s the style GOV.UK and the BBC use for headings. Names of people, places and brands that are written in ordinary lower case can’t be recognised, so check those afterwards.

Styles for code

The code styles join words together without spaces. Each line of your text becomes one name, so you can paste a list of field names and convert them all at once. Punctuation is removed, and existing camelCase or snake_case names are split into words first, so you can convert from one style to another.

Style“user first name” becomesOften used for
camelCaseuserFirstNameJavaScript variables, JSON keys
PascalCaseUserFirstNameClass and component names
snake_caseuser_first_namePython, Ruby and database columns
kebab-caseuser-first-nameURLs, CSS classes and file names
CONSTANT_CASEUSER_FIRST_NAMEConstants and environment variables

Your text stays private

Everything happens in your browser. Your text isn’t uploaded, logged or stored on a server. It’s kept in this browser tab only, so a refresh doesn’t lose it, and it’s gone when you close the tab.

Questions people ask

What’s the difference between Title Case and Capitalised Case?
Title Case leaves short words like “of”, “the”, “and” and “to” in lower case, as most UK publishers and newspapers do for headlines. Capitalised Case gives every word a capital, which some websites and style guides prefer for buttons and menus.
Will it break acronyms like BBC or NHS?
No. In Title Case, Sentence case and Capitalised Case, words written entirely in capitals keep them, as do names with a capital in the middle like iPhone or McDonald. The exception is a line of four or more words typed entirely in capitals, which is treated as Caps Lock left on and converted properly.
Can I fix text typed with Caps Lock on?
Yes. Choose Sentence case. Lines typed in capitals are lowered first, then capitals are put back at the start of each sentence and on “I”. Check names afterwards, as the converter can’t tell “Paris” from “paris”.
Should headings on a website be in Title Case or Sentence case?
GOV.UK, the BBC and most UK websites use Sentence case for headings, because it’s easier to read. Title Case is still common for book titles, film titles and newspaper headlines.
How do I convert a list of names for code?
Put each name on its own line and choose camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE. Every line becomes a separate name, so a whole list converts in one go.
Is my text sent anywhere?
No. It’s converted in your browser and kept in this tab only, so a refresh doesn’t lose it. Share links include the style you picked, never your text.
↑↓ move↵ openesc close