Text Case
converter.
Fix caps lock text, put headlines in title case, or turn a phrase into a code name.
- Characters changed
- 8
- Capitals after
- 8
- Small letters after
- 27
Left lowercase inside the title: the.
Capitals before and after
Before: 0 capitals and 35 small letters. After: 8 capitals and 27 small letters.
Turn on each line on its own to give every line its own title, such as a list of headlines or references.
Every style
| Style | Result | Copy |
|---|---|---|
| Copy | The quick brown fox jumps over the lazy dog | |
| Copy | The Quick Brown Fox Jumps Over the Lazy Dog | |
| Copy | The Quick Brown Fox Jumps Over The Lazy Dog | |
| Copy | THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG | |
| Copy | the quick brown fox jumps over the lazy dog | |
| Copy | theQuickBrownFoxJumpsOverTheLazyDog | |
| Copy | TheQuickBrownFoxJumpsOverTheLazyDog | |
| Copy | the_quick_brown_fox_jumps_over_the_lazy_dog | |
| Copy | THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG | |
| Copy | the-quick-brown-fox-jumps-over-the-lazy-dog | |
| Copy | the.quick.brown.fox.jumps.over.the.lazy.dog | |
| Copy | tHe QuIcK bRoWn FoX jUmPs OvEr ThE lAzY dOg | |
| Copy | THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG |
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.
| Before | After |
|---|---|
| how to fix a slow laptop / ten tips for better sleep at night / what to pack for a trip to the coast | How 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.
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.
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.
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
Sources
- U.S. Government Publishing Office Style Manual 2016, chapter 3, Capitalization Rules
- GOV.UK, A to Z style guide (capitalisation)
- Microsoft Learn, Capitalization Conventions (.NET Framework Design Guidelines)
- PEP 8, Style Guide for Python Code
- Unicode Character Database, SpecialCasing.txt (18.0)
- Microsoft Support, Change the capitalization or case of text