Guide
Fixing capitalization for headlines, documents and code
Capitalization problems come in two flavors. Writers deal with text typed in caps lock, headlines that need consistent title case, or a pasted paragraph in all capitals. Developers need the same name in different conventions: userName in JavaScript, user_name in Python, USER_NAME for a constant, user-name in a URL. Both are one click here, plus a quick check of the words no converter can know about.
For writing: four everyday cases
| Case | Example | Use it for |
|---|---|---|
| Sentence case | The quarterly report is ready. | Body text, headings in many modern style guides, fixing caps lock |
| Title Case | The Lord of the Rings | Book and article titles, headlines in traditional style guides |
| UPPER CASE | IMPORTANT NOTICE | Short labels, signs, legal headings |
| lower case | email addresses, tags | Normalizing lists, tags and usernames |
Paste or type your text and click a case. The text changes in place, and Undo brings back the previous version (up to 30 steps), so you can try several.
How title case decides
Title Case capitalizes every word except short articles, conjunctions and prepositions: a, an, the, and, but, or, nor, for, so, yet, of, on, in, at, to, by, up, off, per, via, vs, with, from, into, over, plus as, if, is, en. Those stay lowercase unless they’re the first word, or come right after a colon, period, question mark or exclamation mark. So “a guide to the stars: an introduction” becomes “A Guide to the Stars: An Introduction”.
Style guides disagree on details. Some capitalize is, some capitalize longer prepositions, and APA and Chicago differ. If you follow a specific guide, check the small words against it.
The one thing to check by hand
Title case and sentence case start by making everything lowercase. That makes conversions predictable, but it means names, acronyms and brands lose their capitals:
- NASA becomes Nasa, iPhone becomes Iphone.
- In sentence case, place names and people’s names mid-sentence become lowercase, and so does a lone i.
After converting, scan for proper nouns and acronyms and fix them. It usually takes seconds, far less than retyping the paragraph.
For code: naming conventions
| Convention | Example | Typical use |
|---|---|---|
| camelCase | invoiceTotal |
JavaScript and Java variables, JSON keys |
| PascalCase | InvoiceTotal |
Class and component names, C# methods |
| snake_case | invoice_total |
Python, Ruby, database columns |
| CONSTANT_CASE | INVOICE_TOTAL |
Constants and environment variables |
| kebab-case | invoice-total |
URLs, CSS classes, file names |
| dot.case | invoice.total |
Config keys, translation keys |
The converter splits words at spaces, punctuation and existing camelCase boundaries, so invoice total, invoiceTotal, invoice_total and Invoice-Total all convert correctly. Put one name per line to convert a whole list. Letters with accents are kept as they are; for URL slugs that need plain ASCII, use the Slug Generator, which transliterates them.
Just for fun
aLtErNaTiNg and iNVERSE cASE exist mostly for memes and jokes. For eye-catching styled text in social bios, see the Fancy Text Generator.
Your text is converted in the browser and remembered there between visits; it’s never uploaded. To count words or characters afterwards, use the Word Counter.
Who converts text case
- Office workers fix text that was typed with Caps Lock on, or pasted in all capitals from old systems.
- Bloggers and editors turn headlines into title case consistently.
- Developers convert names between camelCase, snake_case, kebab-case and CONSTANT_CASE.
- Students format references and headings to a required style.
- Data workers normalize names and categories before removing duplicates or importing data.
A complete example: cleaning a product list for import
A supplier’s list arrives as ORGANIC GREEN TEA 50 BAGS, organic black tea, and so on:
- Paste the list and choose Title Case: Organic Green Tea 50 Bags.
- Check acronyms and brand names that need special capitals, such as “UK” or “iPhone”, and fix them by hand.
- Copy the result into your spreadsheet, or remove repeats first with Remove Duplicate Lines, which can ignore case.
A complete example: naming in code
A field called Customer Billing Address becomes:
| Convention | Result | Typical use |
|---|---|---|
| camelCase | customerBillingAddress | JavaScript variables |
| PascalCase | CustomerBillingAddress | Classes, React components |
| snake_case | customer_billing_address | Python, database columns |
| kebab-case | customer-billing-address | URLs, CSS classes |
| CONSTANT_CASE | CUSTOMER_BILLING_ADDRESS | Constants, environment variables |
Tips
- Sentence case and title case lowercase everything first, so check acronyms and proper names afterwards.
- Undo goes back up to 30 versions if you try several cases in a row.
Checked against the current version of the Case Converter on .

