gratislab100% FREE

Case Converter for Titles and Code

Twelve conversions on one page: UPPERCASE, lowercase, Sentence case, Capitalised Each Word, Title Case in five different style guides, and camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, alternating and inverted. Choose one, press the button, copy the result back out.

A heading, a paragraph or a whole list · every line is converted on its own0 words · 0 characters

Convert to

camelCase through CONSTANT_CASE strip the spaces and the punctuation, so run those five on a short phrase rather than on a paragraph.

Title style

AP and Chicago disagree about at least nine common words. APA lowercases function words of three letters or fewer; MLA lowercases every article, conjunction and preposition however long. Web capitalises everything but the short joining words.

Acronyms, quotes and your own spellings

One per line. Matching ignores case, so IPHONE still comes back iPhone. Title Case and Capitalised Each Word consult this list; the other ten conversions do not.

Line endings in the saved file
Write the result with

Keeping what came in is right almost always: a file that arrived from Windows goes back to Windows and nothing downstream notices a change it did not ask for. Force one when the system at the far end insists.

Nothing uploadedNo sign-upNo watermarkHow that works

How to case converter for titles and code

  1. Paste the heading, sentence or list you want retyped.
  2. Choose the conversion. Title Case also asks which style guide, because they disagree.
  3. Press Convert the case, and read the result before you copy it.
  4. Add any brand name or acronym it got wrong to the custom terms box, then run it again.

Title Case is five different rules

There is no single Title Case. AP and Chicago disagree about at least nine common words. APA lowercases function words of three letters or fewer. MLA lowercases every article, conjunction and preposition however long it is. Pick whichever one your editor or your university asked for, or leave it on the plain web style, which capitalises everything except the short joining words.

Where a rule turns on grammar rather than on a list of words, the page tells you so instead of pretending. AP lowercases as when it is a conjunction and capitalises it as an adverb, and no word list can decide which one you meant, so the tool takes the commoner reading and prints a line admitting it guessed.

What happens to an acronym

Lowercasing everything and then capitalising each first letter is the quickest way to build one of these, and it is why so many of them turn COVID-19 into Covid-19 and GST into Gst. A short run of capitals — GST, ISRO, COVID — is left standing here. It is a setting, so you can switch it off when the text was typed in caps by accident rather than on purpose.

One line is the exception, and it is worth knowing about. A line where every word is capitals is read as shouting and converted, because HELLO WORLD FROM GRATISLAB has to come back as a real title. The cost is that NASA AND ISRO comes back Nasa and Isro. Put NASA and ISRO in the custom terms box and they survive in the form you wrote them.

Your line breaks and line endings survive

Every conversion runs one line at a time, so ten headings pasted in come back as ten titles rather than one long one, and camelCase does not weld a paragraph into a single unreadable identifier. If the text arrived with Windows line endings it leaves with Windows line endings — a converter that quietly rewrites those is a converter that breaks whatever you paste the result into.

Questions

Why did sentence case leave a name in lowercase?
Sentence case capitalises the first letter after a full stop and nothing else, because nothing here knows that Bengaluru is a place and bengaluru is not. Capitalised Each Word is the other extreme. For anything between the two, fix the handful of words by hand afterwards.
Which one do I want for a file name or a variable?
kebab-case for a URL or a file name, snake_case for a database column, camelCase for a variable, PascalCase for a class, CONSTANT_CASE for a setting. All five strip the spaces and the punctuation, so run them on a short phrase rather than on a paragraph.
Can I keep a brand spelled the way I write it?
Yes. Put it in the custom terms box, one term per entry, and it comes back exactly as you typed it there whatever the surrounding rule says. Matching ignores case, so iPhone written as IPHONE still comes back iPhone.
Does the text I paste get sent away?
No. The conversion is string handling running inside this page, which is why it still works on a plane, and why a clause out of a contract you should not be emailing around is safe to paste in.

Text & utilities