Good to know
The styles side by side
Starting text: how to price handmade candles
| Style | Result |
|---|---|
| Title Case | How to Price Handmade Candles |
| Sentence case | How to price handmade candles |
| camelCase | howToPriceHandmadeCandles |
| PascalCase | HowToPriceHandmadeCandles |
| snake_case | how_to_price_handmade_candles |
| kebab-case | how-to-price-handmade-candles |
| CONSTANT_CASE | HOW_TO_PRICE_HANDMADE_CANDLES |
| dot.case | how.to.price.handmade.candles |
Title Case rules
Every word gets a capital except short articles, conjunctions and prepositions: a, an, and, as, at, but, by, en, for, if, in, nor, of, on, or, per, the, to, v, vs, via. The first and last words always get a capital, and so does the word after a colon, full stop or dash. Style guides disagree about longer words such as with or about, which this tool capitalises, so check the guide you follow.
Names and acronyms
Title Case and Sentence case leave words with a capital inside them alone, so NASA, iPhone and McDonald survive. If most of the text is in capitals, the tool assumes caps lock was on and converts everything. Sentence case also capitalises a lone i, and does not start a new sentence after abbreviations such as e.g., Dr. or U.S.
Code styles
The code styles split text into words at spaces, punctuation and changes of case, so XMLHttpRequest becomes xml_http_request in snake_case. Apostrophes are dropped (don't becomes dont), and each line is converted on its own, so you can convert a whole list of names at once. Accented letters are kept as they are; use the slug generator if you need plain letters for a web address.
The playful ones
iNVERSE swaps every capital for a small letter and the other way round, which fixes text typed with caps lock on and shift held. aLtErNaTiNg alternates letter by letter, ignoring spaces and punctuation.