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.
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
- Paste in your text or type in directly into the input field.
- Click the button for the case format you want to convert to.
- The converted text appears instantly in the output field.
- Copy out the result with the copy button.
- 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 |
|---|---|---|
| UPPERCASE | HELLO WORLD | Headings, acronyms, emphasis |
| lowercase | hello world | Email addresses, normalised input |
| Title Case | Hello World | Titles, proper nouns, headings |
| Sentence case | Hello world | Regular prose, UI labels |
| camelCase | helloWorld | JavaScript variables and functions |
| PascalCase | HelloWorld | Classes, constructors, components |
| snake_case | hello_world | Python variables, database columns |
| kebab-case | hello-world | CSS classes, URL slugs, HTML attributes |
| SCREAMING_SNAKE_CASE | HELLO_WORLD | Constants 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.
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.
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
What is the difference between snake_case and kebab-case?
Why is Title Case applied differently in different style guides?
Can I convert text with numbers and special characters?
What happens to all-uppercase input when converting to Title Case?
Is this useful for developers working with variable naming?
∑ 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 is the founder and editor-in-chief of YourToolsBase, overseeing all content, tool accuracy, and editorial standards.
View full profileAuthoritative Sources
Formulas and data in this tool are based on guidelines from the above sources.