Home / Free tools / Text & Data / Case Converter
Case Converter
Choose a style and your text is converted at once, keeping brand names such as iPhone and eBay intact. Quick buttons also remove extra spaces and line breaks, drop duplicate lines and sort lists.
Runs in your browser. Nothing you paste or choose is uploaded or stored.
What this case converter does
This case converter changes the capital letters in your text with one click. It handles the styles writers need, such as UPPERCASE, lowercase, Title Case and Sentence case, and the styles programmers need, such as camelCase, snake_case and kebab-case. It also includes four quick clean-up buttons for the mess that usually comes with pasted text: extra spaces, stray line breaks, duplicate lines and unsorted lists. The result appears in a second box, so your original text is never overwritten unless you ask for it.
Everything runs in your browser. The text is not uploaded or stored, so it is fine to convert product data, draft emails or code names that you would rather not paste into an unknown website.
The styles, and when to use each
- UPPERCASE and lowercase change every letter. Lowercase is the safe first step for matching or comparing text, such as sorting a keyword list. Uppercase also handles special letters, so "straße" becomes "STRASSE".
- Title Case capitalises the main words and leaves a short list of small words in lowercase: a, an, the, and, but, or, nor, for, so, yet, as, at, by, in, of, off, on, per, to, up, via and vs. They are capitalised when they come first or last, or after a colon. Longer prepositions such as with, from and over are capitalised. Use it for headings, article titles and product names. Style guides differ on the small words, so check the one you follow.
- Sentence case capitalises the first word of each sentence and each line, and the word "I". It is the usual style for body text and for modern headings. It is the fix for text that was typed with caps lock on.
- Capitalize Each Word capitalises every word, including small ones. It is simpler than title case and fits names and labels.
- camelCase and PascalCase join words with no separator and capitalise each new word; camelCase starts lowercase, PascalCase does not. They are used for variable and class names.
- snake_case, kebab-case, CONSTANT_CASE and dot.case join words with an underscore, hyphen or dot. Kebab-case suits web addresses and file names; snake_case suits database columns; CONSTANT_CASE suits settings. Each line of your text is converted separately, so a list of names becomes a list of identifiers.
- aLtErNaTiNg and iNVERSE cASE are for jokes and for testing how a system handles mixed case.
Brand names and acronyms
Plain title-casing wrecks words with their own capitals: "iPhone" becomes "Iphone" and "USB" becomes "Usb". The checkbox under the style buttons prevents that. When it is ticked, a word is left alone if it already has a capital inside it, such as iPhone, eBay or McDonald, or if it is a short word of two to five capitals, such as USB or LED, unless the text is written entirely in capitals, or the word sits in a run of three or more capitalised words, as in "THIS IS SHOUTING". Those cases are treated as caps lock and everything is converted. For code styles such as snake_case, a single lowercase letter in front of a capital, as in iPhone or eBay, is kept together, so you get iphone_case and not i_phone_case. Untick the box if you want every word converted whatever its shape.
Worked example
Take the line "a guide to the end of it". Title Case gives "A Guide to the End of It": "a" is capitalised because it is first, "to" and "the" stay lowercase, and "of" stays lowercase, but "End" and "It" are capitalised. The same line in kebab-case becomes "a-guide-to-the-end-of-it", and in camelCase "aGuideToTheEndOfIt". For the product title "USB-C cable for iPhone and eBay" with the brand box ticked, title case keeps the brand capitals and gives "USB-C Cable for iPhone and eBay".
The clean-up buttons
- Remove extra spaces collapses runs of spaces and tabs to one space, trims the start and end of every line and removes spaces before line breaks.
- Remove line breaks joins all the lines into one paragraph with single spaces, which fixes text copied from a PDF or an email with hard line breaks.
- Remove duplicate lines keeps the first copy of each line and ignores case and surrounding spaces when comparing. Use it on keyword and SKU lists.
- Sort lines A to Z orders lines alphabetically, with numbers sorted by value, so 9 comes before 10.
Using it for product data
Sellers often need consistent titles across a feed. Convert a column of titles to title case, then run them through the Merchant Center title checker to look for shouting capitals and promotional words. Check the length with the word counter, whose length bars cover the 150-character Merchant Center title limit and the 80-character eBay limit. For a list of SKUs or GTINs, remove duplicates and sort first, then verify each number with the GTIN checker.
What it cannot do
It does not correct spelling, and title case follows one general rule, not any particular style guide. Proper nouns that are written in lowercase are not recognised, so "paris" becomes "Paris" only because every word is capitalised. Check names and technical terms by eye before you publish.
Questions
How do I convert text to title case?
Paste your text, choose Title Case and copy the result. Main words are capitalised, short joining words such as a, the, and and of stay lowercase unless they come first or last, and brand-style words such as iPhone and eBay are left as they are while the brand box is ticked.
What is the difference between title case and sentence case?
Title case capitalises the main words of a heading, as in 'A Guide to the End'. Sentence case capitalises only the first word of a sentence and the word I, as in 'A guide to the end'. Sentence case is the usual choice for body text.
How do I fix text that was typed in capital letters?
Choose Sentence case, or lowercase if you want everything small. When the text, or a run of three or more words, is in capitals, the tool treats it as typed with caps lock on and converts every word, including short ones such as USB.
Why did Title Case leave a word in capitals?
The brand box is ticked and the word looks like an acronym or brand, such as USB, LED or iPhone. Untick the box to convert every word whatever its shape.
What are camelCase and snake_case used for?
They are naming styles for code and data. camelCase and PascalCase suit variables and classes; snake_case suits database columns and file names; kebab-case suits web addresses and CSS class names; CONSTANT_CASE suits fixed settings.
Can I convert many lines at once?
Yes. The programming styles convert each line on its own, so a list of names becomes a list of identifiers. The text styles convert all of the text, and the clean-up buttons work on whole lists.
Is my text uploaded?
No. The conversion runs in your browser and the text is not stored or sent anywhere.
Google, Merchant Center, YouTube, LinkedIn, Indeed, Glassdoor and Shopify are trademarks of their owners. Van Born Labs is independent and not affiliated with them. Google's own help pages are the final word on its rules.