· 4 min read
How to Convert Text Case Without Retyping Everything
Heshan Fernando
Co-founder & COO
Someone pastes a heading into your document in ALL CAPS because that’s how it was in the source spreadsheet, and now it looks like it’s shouting next to your normal paragraph text. Or you’re naming a variable in code and need snake_case for Python but camelCase for JavaScript, and you’re not about to retype the same eight words twice with different capitalization rules. Case conversion is one of those tasks that’s trivial to describe and tedious to do by hand, especially across a whole paragraph.
Most text editors have a basic “change case” option buried in a menu, but it usually only covers upper, lower, and maybe title case — not the programming-style cases developers actually need, and rarely with a live preview so you can see the result before committing to it.
What text case actually means
Case style is just a convention for how word boundaries are represented when you strip spacing rules. The same three words — “online tool store” — can become:
- UPPERCASE:
ONLINE TOOL STORE - lowercase:
online tool store - Title Case:
Online Tool Store - Sentence case:
Online tool store - camelCase:
onlineToolStore - PascalCase:
OnlineToolStore - snake_case:
online_tool_store - kebab-case:
online-tool-store - CONSTANT_CASE:
ONLINE_TOOL_STORE
Each one exists because a different context expects it: headings expect Title Case, JavaScript variables expect camelCase, Python variables and file names expect snake_case, URLs and CSS classes expect kebab-case, and environment variables expect CONSTANT_CASE.
Why this comes up more than people expect
- Copy-pasted content carries its source formatting. Text pulled from a spreadsheet, a PDF, or someone else’s all-caps email inherits whatever case it started in.
- Different platforms enforce different naming conventions. The same product name might need to be
case-converterin a URL andCaseConverterin a class name, in the same afternoon. - Title case has real rules, not just “capitalize every word.” Short conjunctions and prepositions (“and,” “of,” “the”) are traditionally left lowercase mid-title —
The Lord of the Rings, notThe Lord Of The Rings— and manually applying that rule across a long heading is easy to get wrong. - Sentence case isn’t the same as lowercase. It capitalizes only the first letter of each sentence, which requires knowing where sentences start and end, not just where the first character of the whole string is.
What a good case converter looks like
Covers both writing and coding cases
You want UPPERCASE, lowercase, Title Case, and Sentence case for prose, plus camelCase, PascalCase, snake_case, and kebab-case for code and URLs — in one place, not split across two different tools.
Converts live, so you can compare
Typing or pasting once and seeing every case variant update immediately beats running the same text through a converter eight separate times.
Handles punctuation and word boundaries correctly
A converter that turns it's into IT'S (correct) but also mangles it into Its while stripping the apostrophe (wrong) is going to cause more cleanup than it saves.
Common mistakes to avoid
- Manually retyping a long heading to fix its case — a five-second task turned into a five-minute one.
- Applying Title Case with a simple “capitalize every word” rule and getting
A Guide To The Best Toolsinstead of the conventionally correctA Guide to the Best Tools. - Confusing snake_case and kebab-case when naming something that has strict rules — a Python module can’t have hyphens in its name, but a URL slug usually shouldn’t have underscores.
- Losing apostrophes or accented characters when converting to uppercase in some naive tools.
How to do it with Case Converter
Online Tool Store’s Case Converter runs live in your browser as you type or paste.
- Paste or type your text into the input box.
- See every case variant — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE — update instantly.
- Copy the specific version you need.
Because it runs entirely client-side, there’s no upload step and no delay — useful when you’re converting the same short string over and over while naming things across a codebase.
Frequently asked questions
What’s the difference between Title Case and Sentence case?
Title Case capitalizes most words (skipping small connector words like “and” or “the” mid-title); Sentence case only capitalizes the first letter of each sentence, the way normal prose is written.
When should I use snake_case vs. kebab-case?
Snake_case (my_variable) is standard in Python and many database column names; kebab-case (my-variable) is standard in URLs, CSS class names, and HTML attributes. Check the convention of whatever system you’re naming something for.
Does case conversion handle numbers and special characters?
Numbers pass through unchanged since they have no case. Special characters are generally preserved, though word-boundary-based cases like camelCase typically strip spaces and punctuation as part of joining words together.
Final thought
Pick the case that matches where the text is going, not the case it happens to arrive in — and let a converter handle the mechanical part so you can focus on getting the wording itself right.