Text utility

Text Case Converter

Convert text to uppercase, lowercase, title case, sentence case, camelCase and snake_case.

Text Case Converter

Change text case, convert to code styles and clean up lists in one place.

Nothing leaves your device
78 characters · 14 words · 1 line
Letter case
Developer cases
Clean up

Each button works on the current text, so conversions chain. Hover a button to see what it is used for. Scripts without capital letters, such as Urdu, Arabic or Chinese, are not changed by the case buttons.

About the Text Case Converter

Retyping text because it was written in the wrong case wastes time. This free tool changes the case of your text in one click: UPPERCASE, lowercase, Title Case, Sentence case and more. It also converts names into the styles programmers use, such as camelCase, snake_case and kebab-case, and includes simple clean-up tools for lists, such as sorting lines and removing duplicates.

Everything runs in your browser. Your text is never uploaded, and you can undo up to 50 steps, so you can try a style and step back. The word splitting understands camelCase, numbers, accented letters and non-Latin scripts, so converting identifiers between code styles works in both directions.

How to Use

  1. 1Type or paste your text into the editor.
  2. 2Click a style under Letter case, Developer cases or Clean up. The text is converted straight away.
  3. 3Chain as many conversions as you like. Each one works on the current text.
  4. 4Use Undo and Redo to step through changes, then copy the result or download it as a .txt file.

Key Features

  • Seven letter-case styles, including headline-aware Title Case
  • Six developer styles with smart word splitting (camelCase, snake_case, kebab-case and more)
  • Clean-up tools: trim, collapse spaces, remove empty lines, sort and de-duplicate
  • Chainable conversions with 50-step undo and redo
  • Live character, word and line counts
  • Copy to clipboard or download as .txt
  • Private, free, no sign-up and no limits we enforce

Case Styles at a Glance

The examples below are produced by the same functions as the buttons, using the input the quick brown fox jumps over the lazy dog for the letter styles and user profile image for the developer styles.

StyleExample outputTypically used for
UPPERCASETHE QUICK BROWN FOX JUMPS OVER THE LAZY DOGHeadings, warnings, acronyms, legal clauses
lowercasethe quick brown fox jumps over the lazy dogNormalising text, emails, tags, search terms
Title CaseThe Quick Brown Fox Jumps Over the Lazy DogHeadlines, article and book titles
Sentence caseThe quick brown fox jumps over the lazy dogNormal prose, UI text, captions, subtitles
Capitalize Each WordThe Quick Brown Fox Jumps Over The Lazy DogNames, addresses, labels, product names
camelCaseuserProfileImageJavaScript, Java and Swift variables and functions
PascalCaseUserProfileImageClass names, React components, C# and TypeScript types
snake_caseuser_profile_imagePython and Ruby variables, database columns
kebab-caseuser-profile-imageURLs, CSS classes, HTML attributes, file names
CONSTANT_CASEUSER_PROFILE_IMAGEConstants and environment variables
dot.caseuser.profile.imageConfig keys, package and namespace names

Title Case here is a style choice: first and last words and major words are capitalised, while short words such as a, the, and, of and to stay lowercase. Style guides differ, so adjust by hand if yours is stricter.

Choosing the Right Case

Case carries meaning. In writing, sentence case reads most naturally and is increasingly used for interface text and headings, while Title Case signals a formal headline or title. Uppercase draws attention but is tiring to read in long passages.

In code, case is a convention that tells readers what something is. Languages and communities have settled on different habits: JavaScript and Java favour camelCase for variables and PascalCase for classes, Python and Ruby use snake_case, CSS and URLs use kebab-case, and constants are usually written in CONSTANT_CASE. Following the convention of your language keeps code consistent and easy to search.

Common Mistakes with Letter Case

Using ALL CAPS for long text

Whole paragraphs in capitals are harder to read and come across as shouting. Reserve uppercase for short labels and warnings.

Mixing naming styles in code

A project that uses user_name in one file and userName in another is harder to search and maintain. Pick the convention of your language and stick to it.

Spaces or capitals in URLs

Servers and search engines can treat /My-Page and /my-page as different addresses. Use lowercase kebab-case for URLs and file names.

Trusting automatic Title Case blindly

No tool knows every proper noun, brand or style rule. Always read the result, especially names, product spellings and words after a colon.

Forgetting that conversions chain

Each button works on the current text. Converting to snake_case and then to Title Case works on the already-converted result. Use Undo to step back.

Converting before proofreading

Fix typos first. Case rules can hide mistakes in names and acronyms and make them harder to spot later.

Handy Workflows

  • Pasted text from a PDF with a line break at the end of every line? Use Remove line breaks, then Sentence case.
  • Cleaning a list of emails or keywords? Run lowercase, Trim spaces, Remove empty lines, Sort lines A to Z and Remove duplicate lines in turn.
  • Typed a paragraph with Caps Lock on? Click iNVERSE, then Sentence case if needed.
  • Renaming variables or database columns? Paste one name per line and convert them all at once with the programmer cases.
  • Writing headlines? Apply Title Case, then check names, acronyms and the words after colons.

Frequently Asked Questions

Is my text sent to a server?+

No. Every conversion runs in your browser with plain JavaScript. Your text is never uploaded, stored or logged, and the tool keeps working if you go offline after the page has loaded.

What is the difference between Title Case and Capitalize Each Word?+

Capitalize Each Word simply makes the first letter of every word uppercase. Title Case follows the usual headline convention: the first and last word and all major words are capitalised, while short articles, conjunctions and prepositions such as a, the, and, of and to stay lowercase. Style guides such as AP, Chicago and APA differ in the details, so treat our Title Case as a sensible default and adjust by hand if your guide requires something specific.

Why did Sentence case lower my acronyms?+

Sentence case first lowercases the whole text and then capitalises the start of each sentence, so words like NASA become Nasa. Proper nouns are not detected either. Run the conversion first, then restore names and acronyms by hand. Title Case is gentler: it keeps existing acronyms and mixed-case words such as iPhone when the rest of the text has lowercase letters.

How do the programmer cases split words?+

The tool splits on spaces, punctuation, underscores and hyphens, and also on camelCase boundaries and between letters and numbers, so userProfileImage, user_profile_image and User Profile Image all convert to the same words. Acronyms are kept together before a capitalised word (XMLHttpRequest becomes xml_http_request). Apostrophes are removed, so don't becomes dont.

Does it work with Urdu, Arabic, Chinese and other languages?+

The word splitting works with letters from any script, but scripts without upper and lower case, such as Urdu, Arabic, Hindi, Chinese and Japanese, are left unchanged by the case buttons because they have no capitals. The clean-up tools (trim, sort, remove duplicates and so on) work on any language. Right-to-left text is displayed correctly in the editor.

Can I undo a conversion?+

Yes. Use the Undo and Redo buttons above the editor. The tool remembers up to 50 steps, and conversions chain, so you can run Sentence case and then Remove empty lines on the result. Reloading or closing the page clears the history, because nothing is saved.

Does it handle special letters such as the Turkish dotted I or German ß?+

It uses your browser's standard Unicode case rules, which are not language specific. German ß becomes SS in uppercase, as in the standard rules, but Turkish and Azeri dotted and dotless i are not treated specially, so check those texts after converting.

Is there a limit on the amount of text?+

We set no limit, and conversions are instant for ordinary documents. Very large pastes of several megabytes can make the page slower because everything is processed in your browser's memory. In that case convert the text in parts.

More Free Tools