Text Tools · · 4 min read
How to Convert Text Case Online (UPPERCASE, camelCase, More)
Convert text into UPPERCASE, Title Case, camelCase, snake_case, kebab-case, CONSTANT_CASE and more at once, with real, verified examples of each.
To convert text case online, paste your text into a case converter such as the Case Converter and it instantly shows the same text in ten different cases — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case — with a copy button on each.
This guide covers exactly how each of the ten conversions works, where each naming style is actually used, and a few quirks worth knowing before you rely on the output.
What the Case Converter does
Type or paste text once, and it's converted every way at the same time — no need to pick a case first and redo it if it's not the one you needed. That makes it useful for two very different jobs:
- Fixing prose casing — a headline typed in all caps, a sentence typed with Caps Lock stuck on, or text that needs a proper title case for a heading.
- Renaming identifiers — turning a variable, file, or database column name into whatever naming convention a language, framework or style guide expects.
How to convert text case with Toolbench
- Open the Case Converter.
- Type or paste your text into the Input box.
- All ten results update immediately in the results table.
- Click any row to copy that version — the label on the left tells you which case it is.
There's no button to press for conversion; every row is live as you type.
Example: converting a phrase
Typing user profile settings into the input produces:
| Case | Result |
|---|---|
| UPPERCASE | USER PROFILE SETTINGS |
| lowercase | user profile settings |
| Title Case | User Profile Settings |
| Sentence case | User profile settings |
| camelCase | userProfileSettings |
| PascalCase | UserProfileSettings |
| snake_case | user_profile_settings |
| kebab-case | user-profile-settings |
| CONSTANT_CASE | USER_PROFILE_SETTINGS |
| dot.case | user.profile.settings |
Example: renaming a variable across languages
Programmers use this tool a lot for exactly one reason: different languages and style guides expect different naming conventions for the same identifier. Paste in myVariableName and you get every convention at once:
| Case | Result | Typical use |
|---|---|---|
| camelCase | myVariableName |
JavaScript/Java variables and functions |
| PascalCase | MyVariableName |
Classes, React/Vue components, C# methods |
| snake_case | my_variable_name |
Python variables, SQL columns, Rust |
| kebab-case | my-variable-name |
CSS classes, URL slugs, HTML attributes |
| CONSTANT_CASE | MY_VARIABLE_NAME |
Constants, environment variables |
| dot.case | my.variable.name |
Config keys, i18n/translation keys |
The Case Converter recognizes the camelCase boundary in the input (the switch from a lowercase letter to an uppercase one) and splits on it, along with spaces, hyphens, underscores and other punctuation, before rebuilding each identifier style. That's why myVariableName, my variable name and my-variable-name all produce the same six identifier-style outputs.
Two different behaviors, in one tool
The ten cases actually work in two different ways, and it's worth knowing which is which:
- UPPERCASE, lowercase, Title Case and Sentence case only change letter casing. Your original spacing and punctuation stay exactly where they were —
it's a test.becomesIT'S A TEST.orIt's A Test., apostrophe intact. - camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case extract the individual words from your text first, then rejoin them with the convention's own separator (or none, for camel/Pascal). Any punctuation in the original — apostrophes, parentheses, slashes — is dropped rather than preserved, because it isn't a "word."
That's also why accented letters (café, naïve) can disappear from the six identifier-style outputs: only plain A–Z, a–z and 0–9 count as word characters there. Title Case and Sentence case don't have this problem, since they only change case and leave every character in place.
Tips and common mistakes
- Sentence case treats every
.,!or?as a new sentence. An abbreviation like "Mr. Smith" will get capitalized on both sides, since the tool has no way to know "Mr." isn't the end of a sentence. - Title Case only capitalizes after a space, hyphen, underscore, slash or opening parenthesis — not after an apostrophe, so
don't stopcorrectly becomesDon't Stoprather thanDon'T Stop. - CONSTANT_CASE and snake_case are easy to mix up. The only difference is letter case:
MY_CONSTvsmy_const. - Use kebab-case for URLs. If you specifically need a URL-safe slug (accented letters transliterated, stop words optionally removed), the Slug Generator is built for that; the Case Converter's kebab-case is a straightforward word-and-hyphen conversion.
Related tools
- Word Counter — count words and characters, then send the text straight to the Case Converter.
- Text Cleaner — strip smart quotes, extra spaces and line breaks before converting case.
- Regex Tester — for case changes a simple find/replace can't express, like conditional capitalization.
- Slug Generator — turn titles into clean, transliterated URL slugs.
Frequently asked questions
Is my text sent to a server when I convert its case?
No. The conversion runs in your browser as you type. If you're signed in, your input syncs privately to your account so it's there next time; if you're signed out, nothing is saved anywhere.
What's the difference between camelCase and PascalCase?
Both join words with no separator and no lowercase letters removed, but camelCase starts with a lowercase letter (myVariableName) while PascalCase capitalizes every word including the first (MyVariableName).
Why did the apostrophe disappear from my snake_case result?
The identifier-style conversions (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case) split your text into words and drop anything that isn't a letter or digit, including punctuation. UPPERCASE, lowercase, Title Case and Sentence case keep punctuation exactly as typed, since they only change letter casing.
Can I convert a whole file of variable names at once?
The Case Converter works on one block of text at a time, so it's best for converting a handful of names, headlines or phrases as you work rather than batch-processing a file.
Does the tool detect the case my text is already in?
No detection step is needed — all ten conversions run on your input at once regardless of its current casing, so you can paste text in any case and copy whichever result you need.
More guides
- How to Count Words and Characters Online (and Hit Every Length Limit)How word, character, sentence and reading-time counts work, the length limits that matter, and a free counter that updates as you type.
- How to Compress Images Without Losing Visible QualityShrink image files for faster sites and smaller emails: the right format, quality and size to use, plus a free compressor that never uploads your photos.
- How to Create a Strong Password (and How Strong Is "Strong"?)What actually makes a password strong, how entropy is measured, how long your passwords should be, and how to generate secure random ones for free.