The styles, with examples
| Style | Example |
|---|---|
| Sentence case | The quick brown fox jumps over the lazy dog. |
| lower case | the quick brown fox jumps over the lazy dog. |
| UPPER CASE | THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG. |
| Title Case | The Quick Brown Fox Jumps over the Lazy Dog |
| Capitalize Each Word | The Quick Brown Fox Jumps Over The Lazy Dog |
| camelCase | quickBrownFox |
| PascalCase | QuickBrownFox |
| snake_case | quick_brown_fox |
| kebab-case | quick-brown-fox |
| CONSTANT_CASE | QUICK_BROWN_FOX |
Which style to use
Sentence case is the normal way to write text, and many style guides, such as those of the UK government and Google, use it for headings too. It is easier to read than a capital on every word. Title Case is common for the titles of books, films and articles in American English. Most other languages, including German, French and the Nordic languages, write titles in sentence case, with capitals only for the first word and for names.
Use UPPER CASE sparingly. A whole paragraph in capitals is slower to read and comes across as shouting in messages. It works for short labels, warnings and initials.
Title case rules
Style guides differ in the details, so the tool uses the rule most of them share. The first and last word always start with a capital, and so does the word after a colon. Articles, short conjunctions and short prepositions stay in lower case: a, an, the, and, but, or, nor, for, so, yet, as, at, by, in, of, off, on, per, to, up, via. Hyphenated words get a capital on each part, as in “Well-Known”. If your publisher has its own rules, for example capitals on longer prepositions such as “With” or “From”, change those few words by hand.
Names in code and files
The code styles split the text into words at spaces, punctuation and existing capitals, so “Customer ID number”, “customer-id-number” and “customerIdNumber” all give the same words. Each line is converted on its own, so you can paste a list of names and get a list back. Tick Remove accents if the names must use only plain a–z letters: “Jõe tänav” then becomes joe_tanav.
Good to know
- Sentence case can't recognise names, so “i met anna in paris” becomes “I met anna in paris”. Add the capitals for names by hand.
- A new sentence is detected after a full stop, question mark or exclamation mark followed by a space, so an abbreviation like “e.g.” can start one by mistake.
- Undo goes back one step. Press it before you choose another style if you want the original back.