Every dayText & Encoding

Text Case
converter.

Fix caps lock text, put headlines in title case, or turn a phrase into a code name.

How it's worked out

Sentence case lowers every letter, then capitalizes the first word of each sentence and the pronoun I. Title case capitalizes the main words. Capitalize Each Word capitalizes all of them, small words too.

In title case, the first word, the last word and the word after a colon always get a capital. In between, these words stay lowercase: a, an, the, and, but, for, nor, or, so, yet, as, at, by, in, of, off, on, out, per, to, up, via. So "the hobbit: or there and back again" becomes "The Hobbit: Or There and Back Again".

House styles differ on the short words. The GPO Style Manual (rule 3.53) lowercases the articles a, an and the, the prepositions at, by, for, in, of, on, per, to and up, and the joining words and, as, but, if, or and nor. It capitalizes so, yet, off, out and via, which this tool leaves lowercase. Check those few by hand if you follow GPO.

Acronyms. A word of two or more capitals, such as NASA, is kept when the rest of the text is mostly lowercase. If most letters are capitals, the tool reads it as caps lock and lowers everything.

Code styles split the text into words at spaces, punctuation and changes of case, then join them. "XMLHttpRequest user id" becomes xml_http_request_user_id in snake_case, so the run of capitals in XML counts as one word.

Worked examples

Mei formats a list of headlines

Mei has three draft headlines, one per line, all in lowercase. With each line on its own, every headline starts with a capital.

Title case, line by line (a slash marks a new line)
BeforeAfter
how to fix a slow laptop / ten tips for better sleep at night / what to pack for a trip to the coastHow to Fix a Slow Laptop / Ten Tips for Better Sleep at Night / What to Pack for a Trip to the Coast

Converted as one block, the whole text is treated as a single title, so the second and third lines start with "Ten" and "What". Line by line fixes that.

Open this example in the tool

Sam fixes an email typed with caps lock on

Sam's note came out in capitals. Sentence case gives "Hi dana, the meeting moved to friday. Can you bring the nasa slides?" Because most letters were capitals, the tool read it as caps lock, so NASA was lowered with the rest.

Sam adds Dana, Friday, NASA to the list of words to keep. The result is "Hi Dana, the meeting moved to Friday. Can you bring the NASA slides?" The list puts back the exact spelling wherever the word appears on its own.

Open this example in the tool

Ravi names a variable

Ravi wants a name for a request ID. From "XMLHttpRequest user id" the tool gives xml_http_request_user_id in snake_case, xmlHttpRequestUserId in camelCase and XmlHttpRequestUserId in PascalCase.

Style guides disagree on acronyms. PEP 8 keeps them in capitals, as in HTTPServerError, and the .NET guidelines write HtmlTag but IOStream. If his codebase writes XML in capitals, he edits the result by hand.

Open this example in the tool

Reading your result

The notes say what the tool decided. For "a guide to life with NASA" in title case it kept NASA and left "to" lowercase, giving "A Guide to Life With NASA".

Letters changed counts the places where the output differs from your text. A high count on an already tidy text can mean the wrong style is picked.

The bars compare capitals and small letters before and after. A caps lock fix turns a bar of capitals into mostly small letters. Inverse case flips them, so "Hello World" becomes "hELLO wORLD".

Your text stays on your device. The tool works in the browser and sends nothing anywhere. It saves the text in this browser so a reload keeps it, and Reset clears it.

Common mistakes

  • Expecting names to survive sentence case. The tool cannot tell that a lowercase word is a name. Add names to the keep list.
  • Converting a list as one block. Title case treats the whole box as one title. Turn on each line on its own.
  • Upper case changes length. The German ß becomes SS in capitals, by the Unicode case rules. So "straße" becomes "STRASSE", and lowercase gives "strasse", not the word you started with.
  • Turkish and Azeri i. Those languages pair a dotted i with İ and a dotless ı with I. A general converter uses the English pairs, so check text in those languages.
  • A slug with stray words. kebab-case keeps every word, so "Ten Tips for Better Sleep" gives ten-tips-for-better-sleep. Cut the small words first if you want a shorter link.

Questions people ask

Select the text and press Shift+F3, which Microsoft says cycles through lowercase, UPPERCASE and Capitalize Each Word. Sentence case is under Home, then Change Case. Word for the web cannot change case, so paste the text here instead.

Sources