Text Case Converter

Files & data

Upper, lower, title, sentence, camel, snake and kebab case.

Converted
The Quick Brown Fox Jumps over the Lazy Dog
Title Case
Characters43
Styles10
Every style
lower casethe quick brown fox jumps over the lazy dog
UPPER CASETHE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
Title CaseThe Quick Brown Fox Jumps over the Lazy Dog
Sentence caseThe quick brown fox jumps over the lazy dog
camelCasetheQuickBrownFoxJumpsOverTheLazyDog
PascalCaseTheQuickBrownFoxJumpsOverTheLazyDog
snake_casethe_quick_brown_fox_jumps_over_the_lazy_dog
kebab-casethe-quick-brown-fox-jumps-over-the-lazy-dog
CONSTANT_CASETHE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG
dot.casethe.quick.brown.fox.jumps.over.the.lazy.dog
Title case keeps these words lower unless they open or close the title: a, an, the, and, but, or, nor, for, yet, so, as, at, by, in, of, off, on, per, to, up, via, from, into, onto, over, with. Style guides genuinely disagree about this list, so it is printed rather than hidden.

How to use

What it's for

Change the capital letters in a piece of text — all capitals, all small letters, a proper title — or turn a phrase into a name a programmer can use, such as my_file_name.

Before you start

Have the text ready to copy: a heading, a list of names typed all in capitals, or a phrase you need as a file name. It is changed here in your browser and is not sent anywhere.

  1. Put in your text

    Type or paste it into the Text box. The box already holds a sample sentence, so select it all and replace it.

  2. Choose a style

    In Style, pick how the text should look. Sentence case puts a capital only at the start of each sentence, which suits ordinary writing. Title Case capitalises most words, for a heading. UPPER CASE and lower case change every letter.

  3. Pick a programmer's style, if you need one

    camelCase, snake_case, kebab-case and the styles near them join the words into one name with no spaces, for a file name or for code. They keep only letters and numbers, so punctuation is dropped.

  4. Convert and copy

    Press Convert to bring the answer into view — it also changes as you type. Press Copy at the top to take it, then paste it where you need it.

Reading the result

  • Converted: your text in the style you chose, with the style's name under it.
  • Characters: how many letters, spaces and marks the converted text has.
  • Every style: the same text in all ten styles at once, so you can compare them without switching. The style you chose stands out from the rest.

If it goes wrong

  • Names came out in small letters with Sentence case: the tool cannot tell a name from an ordinary word, so it only capitalises the start of each sentence. Fix names such as Manila by hand after you copy.
  • A brand or an acronym came out wrong in Title Case, such as iPhone turning into Iphone or NASA into Nasa: it capitalises the first letter of each word and makes the rest small. Fix those by hand after you copy.
  • Some short words stayed small in Title Case: words like a, the, and and of stay lower unless they open or close the title. The full list is printed under the answer.

What this is

Only one of these is hard: title case. And it is hard because there is no single right answer — the style guides genuinely disagree about which small words stay lower case.

So the list is published rather than hidden. A tool that quietly picks a house style and calls the result "title case" is making an editorial decision on your behalf without telling you.

One thing every guide agrees on: the first and last word are always capitalised, whatever the list says.

For the identifier styles, it splits an existing camelCase hump. Without that, theQuickBrownFox becomes thequickbrownfox — and the split is what makes converting between them work in both directions.

Questions

Which words stay lower case in title case?

Articles, short conjunctions and short prepositions: a, an, the, and, but, or, nor, for, yet, so, as, at, by, in, of, off, on, per, to, up, via, from, into, onto, over, with. The first and last word of a title are always capitalised whatever the list says, which every style guide agrees on. Guides genuinely disagree about the rest — some capitalise prepositions of five letters or more — so this page prints the list it uses rather than presenting one house style as the answer.

What is the difference between title case and sentence case?

Title case capitalises most words: The Quick Brown Fox. Sentence case capitalises only the first word of each sentence and anything that is a proper noun: The quick brown fox. Sentence case is what most style guides now prefer for headings, because it is easier to read and easier to get right.

Why did my camelCase text come out as one word?

It should not — this splits on an existing camelCase hump, so theQuickBrownFox becomes the_quick_brown_fox rather than thequickbrownfox. That split is what makes converting between identifier styles work in both directions.

What happens to ñ and accented letters?

They are kept. Converting Señor to lower case gives señor, and to kebab-case gives señor — not senor. Identifiers in most modern languages allow non-ASCII characters, and stripping them silently would change a name rather than its case. If you want them transliterated for a URL, use the Slug Generator, which does that deliberately and tells you it did.

Is sentence case applied after every line break?

No. A line break inside a paragraph is not a new sentence, and treating it as one mangles wrapped prose. Capitalisation happens after a full stop, question mark or exclamation mark, and at the very start of the text.

The maths

The ten styles
Title CaseThe Quick Brown Fox
Sentence caseThe quick brown fox
camelCasetheQuickBrownFox
snake_casethe_quick_brown_fox
kebab-casethe-quick-brown-fox

All ten are shown at once because the comparison is usually the question.

Ñ is not stripped

Señor becomes señor, not senor. Identifiers in most modern languages allow non-ASCII, and stripping it silently changes a name rather than its case. If the destination is a URL, use the Slug Generator — it does that deliberately, and says it did.

Keep going

Important

Runs entirely in your browser. Title case has no single correct answer — the list of words kept lower case is printed on this page so you can see which convention was applied. Nothing you type here is sent to our servers — the calculation runs entirely in your browser.