Case Converter: Title Case, Sentence Case, camelCase and More
By FindMySum · Last reviewed
This case converter changes the capitalisation of any text in one step: paste it above and pick UPPER CASE, lower case, Sentence case or Title Case for writing, or camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case or dot.case for code. The result updates as you type, in your browser.
Choosing a title case style
Title case is where conventions differ most. The tool offers the two most widely used guides side by side so you can match your publication.
- AP style lowers a, an and the, plus short conjunctions and prepositions (and, but, or, for, of, in, on, to, at, by). Longer prepositions such as with, from and through are capitalised.
- Chicago style lowers the same articles and conjunctions, but also every preposition, however long: about, between, through and without all stay lower case.
- Every word capitalises everything, which some slide templates and older websites use.
Words such as up, out, off and down are capitalised in both styles here, because in titles they are usually part of a phrasal verb (Set Up Your Account, Log Out) rather than a preposition. Check these by eye when one is used as a preposition.
A worked example
Take a river runs through it: the story of a family in montana. In AP style it becomes A River Runs Through It: The Story of a Family in Montana. In Chicago style it becomes A River Runs through It: The Story of a Family in Montana. Both styles capitalise It because it is the last word before the colon, and The because it starts the subtitle. The only difference is through, a seven-letter preposition.
Code cases
Programmers name things by joining words without spaces. The converter splits words at spaces and punctuation, at each lower-to-upper change (fooBar), and before the last capital of an acronym (XMLHttpRequest is XML, Http, Request). Numbers count as separate words by default, as the popular lodash library treats them, so utf8String becomes utf_8_string; switch them to attach to the word before for utf8_string. Apostrophes inside words are dropped, so don't becomes dont.
Common mistakes
Pasting shouted text into title case. Text written entirely in capitals is lowered first, so acronyms lose their capitals. Fix them afterwards.
Expecting perfect grammar. No converter can tell every preposition from the same word used as an adverb or a name. Read the result once before publishing.
Converting code you will compile. Changing the case of identifiers in source code can break references elsewhere. Rename them with your editor's refactoring tools instead.
To count the words or characters in your text, use the word counter.