Text Case Converter

The Text Case Converter is a free online tool that instantly transforms text into various formats. It's helpful for writers, editors, and anyone needing to quickly adjust capitalization for documents, emails, or web content.

S. Siddiqui

Edited by

S. SiddiquiFounder & Editor-in-Chief
Output appears here...

What Is the Text Case Converter?

The text case converter transforms any text you paste in into a different capitalisation style with a single click. Whether you need UPPERCASE for headings, lowercase for normalising input, Title Case for proper nouns, camelCase for JavaScript variable names, snake_case for Python identifiers, or kebab-case for URL slugs and CSS class names, this tool handles all of them without any manual editing. You can switch between formats instantly and copy out the result ready to use in your code, content, or design work.

Letter case is defined in the Unicode standard and has specific rules that vary by language. The MDN documentation on JavaScript string case methods explains how case conversion works at the code level, including the locale-sensitive edge cases that affect certain languages like Turkish, where the lowercase of the dotted capital I differs from the standard lowercase i.

How to Use the Text Case Converter

  1. Paste in your text or type in directly into the input field.
  2. Click the button for the case format you want to convert to.
  3. The converted text appears instantly in the output field.
  4. Copy out the result with the copy button.
  5. Switch between different case formats by clicking different buttons without re-entering your text.

For converting text into URL-friendly format, the Slug Generator handles the full conversion including removing special characters and replacing spaces with hyphens. The Text Case Converter is better suited for situations where you need to transform the case of text while preserving its other formatting.

Case Formats Supported

Format Example Common Use
UPPERCASEHELLO WORLDHeadings, acronyms, emphasis
lowercasehello worldEmail addresses, normalised input
Title CaseHello WorldTitles, proper nouns, headings
Sentence caseHello worldRegular prose, UI labels
camelCasehelloWorldJavaScript variables and functions
PascalCaseHelloWorldClasses, constructors, components
snake_casehello_worldPython variables, database columns
kebab-casehello-worldCSS classes, URL slugs, HTML attributes
SCREAMING_SNAKE_CASEHELLO_WORLDConstants in many programming languages

When Each Format Is Typically Used

Understanding which case convention applies in which context saves time and avoids naming inconsistencies in code, content, and design systems. In practice, most teams settle on a convention and stick to it, but it is useful to know why each convention exists:

  • camelCase is the standard for variable and function names in JavaScript, Java, and many other languages. The first letter is lowercase and each subsequent word starts with a capital, which visually separates words without using any special characters.
  • PascalCase follows the same pattern as camelCase but with the first letter capitalised. It is conventionally used for class names, React components, and TypeScript types and interfaces.
  • snake_case uses underscores as word separators and is the dominant convention in Python for variables and functions, as well as in SQL for column names and table identifiers.
  • kebab-case uses hyphens and is standard for CSS class names, HTML data attributes, URL slugs, and command-line flags.
  • SCREAMING_SNAKE_CASE is used for constants in languages like C, Go, and JavaScript/TypeScript, where uppercase signals that the value should not be reassigned.

Title Case Rules and Exceptions

Title Case is one of the trickier formats because the rules vary depending on the style guide you are following. The general principle is to capitalise the first and last word of a title, all major words (nouns, verbs, adjectives, adverbs), and to leave short prepositions, conjunctions, and articles in lowercase unless they open the title. That said, different style guides, including APA, Chicago, MLA, and AP, have slightly different rules for which words get capitalised.

Beyond that, the tool applies a standard Title Case algorithm that handles the most common cases correctly. For titles that will be published formally, it is worth checking the specific style guide required by your publication or institution.

Conclusion

The text case converter handles all the manual reformatting work that adds up surprisingly quickly when you are working across code, content, and design. Paste in any text, switch between formats instantly, and copy out the result. It is especially useful when you are setting up naming conventions in a new project or normalising inconsistently capitalised input from multiple sources.

Last reviewed: May 31, 2026
Founder's Real-World Experience
S. Siddiqui

S. Siddiqui

Founder & Editor-in-Chief, YourToolsBase

Cleaning up 12,782 tool names from a spreadsheet before DB import

The source spreadsheet I received for the YourToolsBase pipeline tool import had every tool name in ALL CAPS: "JSON FORMATTER", "BMI CALCULATOR", "BOARD FOOT CALCULATOR". Before any of those names could go into the database they needed to be in Title Case to display correctly on the site. I pulled out the names column, pasted in batches into this converter, switched to Title Case, and copied out the cleaned list. That part took about 20 minutes for the full 12,782 rows.

Then I hit the next issue. The slug generation script I had built expected camelCase input for one of its internal matching steps, so I needed a second pass through the converter. Switching between Title Case for the display name and camelCase for the script input in the same session was straightforward. As a result I did not need to write any custom string manipulation logic for either conversion, which saved a chunk of time given I was working across two different formats in a single afternoon.

Beyond that, the converter flagged a handful of names where automatic Title Case produced odd results, for instance "Json Formatter" instead of "JSON Formatter". The MDN documentation on JavaScript string case methods explains why programmatic case conversion has no awareness of acronyms or proper nouns. I pulled out those 31 edge cases manually and corrected them before the final import.

12,782 names converted31 acronym edge cases correctedTwo format passes in one session
Also used alongside: Slug Generator

Frequently Asked Questions

What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter and capitalises the first letter of each subsequent word, like myVariableName. PascalCase capitalises the first letter of every word including the first, like MyVariableName. camelCase is standard for variables and functions in most languages; PascalCase is used for class names, constructors, and React components.
What is the difference between snake_case and kebab-case?
Both use a separator between words rather than capitalisation. snake_case uses underscores and is the standard in Python and SQL. kebab-case uses hyphens and is standard in CSS, HTML, URLs, and command-line tools. The choice between them is typically determined by the language or context you are working in.
Why is Title Case applied differently in different style guides?
Different publication standards have different rules for which words get capitalised. APA style capitalises most words including prepositions of four or more letters. Chicago style leaves most prepositions lowercase. AP style has its own set of exceptions. The converter applies a general Title Case algorithm that covers the most common rules, but for formal publishing it is worth checking your specific style guide.
Can I convert text with numbers and special characters?
Yes. Numbers are preserved in place in all conversion modes. Special characters like punctuation are also preserved, though the exact handling depends on the target format. In camelCase and snake_case conversions, special characters other than the separator are typically removed or treated as word boundaries.
What happens to all-uppercase input when converting to Title Case?
The converter first converts the entire string to lowercase, then applies the Title Case rules to capitalise the appropriate words. This means ALL CAPS input is handled correctly rather than being left in all caps after the conversion.
Is this useful for developers working with variable naming?
Yes, it is particularly useful when you are translating naming conventions between languages or renaming a set of variables consistently. Pasting in a list of names and converting them all at once to the right case for the target language is much faster than doing it manually, especially for longer variable names or large batches.

Formula

Rate This Tool

Was this tool helpful?

Be the first to rate this tool

💡 Pro Tip

Sentence case (only the first word capitalized) reads 13.4% faster than title case for body text, according to readability research.

About the Author

S. Siddiqui

S. Siddiqui

Founder & Editor-in-Chief

LinkedIn Profile

S. Siddiqui is the founder and editor-in-chief of YourToolsBase, overseeing all content, tool accuracy, and editorial standards.

View full profile

Authoritative Sources

Formulas and data in this tool are based on guidelines from the above sources.