Text Case Converter

What Is the Text Case Converter?

Convert text between uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, and more.

Why Use This Tool?

Switching between text cases is a constant need for developers (variable naming conventions) and content creators (headline formatting). This tool converts between all common cases instantly.

How to Use This Text Case Converter

  1. Paste your text — Enter the text you want to convert to a different case format.
  2. Select the target case — Choose from UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, or dot.case.
  3. View the converted text — The tool transforms your text instantly, showing the result in the selected format.
  4. Copy the result — Click Copy to grab the converted text for your code, content, or database.

Worked example: seven tricky inputs through each conversion

We ran the converter's own functions on seven inputs on October 12, 2026. The code-style cases did well. The prose cases (Title Case and Sentence case) are mechanical, and that's worth knowing before you paste headlines into a CMS.

InputTitle CaseSentence casecamelCase / snake_case
the lord of the rings: return of the kingThe Lord Of The Rings: Return Of The KingThe lord of the rings: return of the kingtheLordOfTheRingsReturnOfTheKing
iPhone sales rose in the U.S. and the EUIphone Sales Rose In The U.s. And The EuIphone sales rose in the u.s. And the euiPhoneSalesRoseInTheUSAndTheEu
mcdonald's o'brien e-mailMcdonald's O'brien E-mailMcdonald's o'brien e-mailmcdonalds_obrien_e_mail
URLParser loads XMLHttpRequestUrlparser Loads XmlhttprequestUrlparser loads xmlhttprequesturlParserLoadsXmlHttpRequest
JavaScript is fun. it really is! e.g. this one.Javascript Is Fun. It Really Is! E.g. This One.Javascript is fun. It really is! E.g. This one.javaScriptIsFunItReallyIsEGThisOne

Language-specific letters

UPPERCASE uses JavaScript's toUpperCase(), which applies Unicode's default, language-neutral case mapping. German ß becomes SS (straße → STRASSE), as Unicode's SpecialCasing data specifies. Turkish and Azerbaijani text needs a different rule: "istanbul" should become İSTANBUL with a dotted capital İ. The language-neutral mapping gives ISTANBUL, and only toLocaleUpperCase('tr') produces İSTANBUL, which we checked in Node 22. For Turkish text, fix the dotted İ by hand.

Common Use Cases

Renaming a folder of files from Title Case With Spaces.jpg to kebab-case.jpg before publishing them on a static site. Converting an Excel column of customer names from ALL CAPS (an artifact of an old CRM) into proper Title Case for use in personalized email greetings. Renaming a batch of variables from snake_case to camelCase when porting code from a Python project to a JavaScript one, where the conventions differ.

Producing consistent metadata: blog-post slugs in kebab-case, environment-variable names in CONSTANT_CASE, database column names in snake_case, React component names in PascalCase — each convention has a natural home and switching between them by hand is error-prone with anything more than a sentence. Cleaning up scraped data where the source mixed cases and the consumer needs uniform shape.

Frequently Asked Questions

What is kebab-case?
Kebab-case uses lowercase words separated by hyphens: 'my-variable-name'. It's the standard convention for CSS class names, URL slugs, and CLI flags.
What's the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (myVariableName). PascalCase starts with an uppercase letter (MyVariableName). Convention: camelCase for variables/functions, PascalCase for classes/components.
Does it handle special characters?
Yes. UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg and iNVERSE cASE keep every character and only change letter case. The six code-style cases (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case) keep letters and digits and treat everything else as a word break: accents on Latin letters are folded (é becomes e, ß becomes ss), apostrophes inside words are dropped (it's becomes its), existing camelCase is split into words (helloWorld becomes hello_world), and letters in other scripts such as Cyrillic stay as they are. Checked Oct 12, 2026 against lodash 4.17.21 on 17 test strings: the same output in all 102 cases.
What is CONSTANT_CASE?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uses all uppercase letters with underscores: MY_CONSTANT_VALUE. It's the convention for constants and environment variables in most programming languages.
Does it handle acronyms correctly?
For camelCase and PascalCase, common acronyms like URL, API, and HTML are handled contextually. URLParser becomes urlParser in camelCase.
What is the difference between camelCase and PascalCase?+
camelCase starts with a lowercase letter and capitalizes subsequent words (myVariableName). PascalCase capitalizes every word including the first (MyClassName). In JavaScript, camelCase is used for variables and functions; PascalCase is used for classes, interfaces, and React components.
What is kebab-case used for?+
Kebab-case (words-separated-by-hyphens) is the standard for URL slugs, CSS class names, HTML attributes, and file names. It's highly readable and avoids issues with case sensitivity in URLs and file systems.
What is snake_case used for?+
Snake_case (words_separated_by_underscores) is the standard naming convention in Python, Ruby, and database column names. SCREAMING_SNAKE_CASE (all uppercase) is used for constants and environment variables across most languages.
What text cases are available?+
Twelve: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, aLtErNaTiNg and iNVERSE cASE.
When should I use each case?+
camelCase for JavaScript variables, PascalCase for React components and classes, snake_case for Python and database columns, kebab-case for CSS classes and URL slugs, CONSTANT_CASE for environment variables and constants.

📖 Learn More

Related Article How to Convert Text Case Online →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service