TheTools.World tool
Case converter online
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg CaSe, and the programming-style camelCase, snake_case, and kebab-case formats. Choose a mode and convert instantly in your browser.
Convert text case
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg CaSe, and the programming-style camelCase, snake_case, and kebab-case formats. Choose a mode and convert instantly in your browser.
How to convert text case
- Paste or type the text you want to convert.
- Choose the case format you need from the dropdown.
- Click Convert case.
- Copy the result or download it as a text file.
- Check programming-style formats (camelCase, snake_case, kebab-case) for any characters that were stripped, since these formats only keep letters, numbers, and separators.
Programming-style case formats (camelCase, snake_case, kebab-case) remove punctuation and treat spaces and symbols as word boundaries, which is different from the plain-text formats (UPPERCASE, Title Case, and so on).
What each case format does
UPPERCASE and lowercase change every letter's case directly. Title Case capitalizes the first letter of each word. Sentence case capitalizes only the first letter of each sentence. Alternating case flips the case of each letter in sequence, mostly used for a stylistic or sarcastic effect. camelCase, snake_case, and kebab-case are naming conventions from programming: they strip punctuation, split on word boundaries, and rejoin words with no separator and internal capitals (camelCase), underscores (snake_case), or hyphens (kebab-case).
Best practices
- Use Title Case carefully for headlines. True editorial title case has rules about which short words (like "a", "of", "the") stay lowercase; this tool capitalizes every word, which is simpler but not identical to formal style-guide title case.
- Use camelCase/snake_case/kebab-case for code identifiers like variable names, CSS classes, or URL slugs, not for regular prose.
- Check the result before using programming-style formats, since punctuation is removed and this can change meaning for text with abbreviations or numbers.
Common mistakes to avoid
- Using Title Case as a substitute for real editorial style rules. If you need AP or Chicago-style headline casing, verify against the actual style guide, since this tool capitalizes every word.
- Expecting programming-case formats to preserve punctuation. Question marks, apostrophes, and other symbols are removed, not converted.
- Converting already-cased code identifiers back and forth repeatedly, which can lose information (for example, converting snake_case with intentional double underscores to camelCase and back won't restore the original exactly).
Real-world use cases
- Headlines and titles that need consistent Title Case or Sentence case.
- Code identifiers — converting a feature name into a camelCase variable or snake_case database column.
- Cleaning up pasted text that came in as all-caps (from a form, PDF, or old document) back into normal sentence case.
- Social media stylistic text using alternating case for emphasis.
Limitations
Sentence case detection uses basic punctuation rules and can miscapitalize after abbreviations, similar to the sentence detection used in the word counter. Title Case capitalizes every word rather than following a specific editorial style guide's exceptions for short words. Programming-style formats intentionally discard punctuation, which is expected behavior for identifiers but means the conversion is not always reversible.
Privacy
Text you convert is processed locally in your browser. It is not sent to a server, logged, or stored. See the privacy policy for the site's full data handling approach.
Troubleshooting
- If Sentence case capitalizes mid-sentence after an abbreviation, that's a known limitation of punctuation-based sentence detection.
- If camelCase/snake_case/kebab-case output looks different from what you expected, check for punctuation in your input, since those formats strip it.
- If you need a URL-safe version of a title specifically, use the slug generator instead, which is purpose-built for that.
Conclusion
Use the case converter for quick text-case changes in writing or code. For a URL-specific slug, use the slug generator; to count the result, use the word counter or character counter.
Related tools
FAQ
Does Title Case follow AP or Chicago style rules?
No. This tool capitalizes every word. Formal editorial title case has exceptions for short words like "a" and "of" that this tool does not apply.
Why did punctuation disappear in camelCase or snake_case output?
Programming-style case formats strip punctuation and use word boundaries to rejoin text, which is standard behavior for code identifiers but means the result is not simply a re-cased copy of your original text.
Can I convert the result back to my original text?
Plain-text formats like UPPERCASE and lowercase can generally be reversed if you still have the original casing elsewhere, but programming-style formats discard information and are not reliably reversible.
Is my text uploaded anywhere?
No. Conversion happens locally in your browser and your text is not sent to a server.