What Is a Text Case Converter?
A text case converter takes any text and rewrites it in a different capitalization style without changing the words. It sounds trivial — until you have pasted 200 rows of SHOUTING spreadsheet names into a system that expects snake_case, or had to hand-retype a headline because a CMS exported everything in caps. This tool converts between 9 formats instantly, entirely in your browser, and lets you chain conversions with the Swap button so you can go camelCase → kebab-case in two clicks instead of retyping.
The 9 Case Formats at a Glance
- UPPERCASE — every letter capitalized. Used for warnings, acronyms (NASA), and SQL keywords (SELECT, WHERE).
- lowercase — no capitals at all. Email addresses, domains, and most of the internet’s URLs.
- Title Case — First Letter Of Every Word Capitalized. Headlines, book titles, menu items.
- Sentence case — Only the first letter after a . ! or ? is capitalized. Body copy, subtitles, most modern UI text.
- camelCase — firstWordLowercaseThenCapitalized. JavaScript variables and functions.
- PascalCase — EveryWordCapitalizedIncludingTheFirst. Class names, React components, C#/Java types.
- snake_case — lowercase_words_joined_by_underscores. Python, Ruby, Rust, and database columns.
- kebab-case — lowercase-words-joined-by-hyphens. URLs, CSS classes, file names, Git branches.
- CONSTANT_CASE — UPPERCASE_WORDS_JOINED_BY_UNDERSCORES. Environment variables, config keys, enum values.
camelCase vs PascalCase: Which Goes Where
Both formats squash words together and capitalize each new word — the only difference is the very first letter. camelCase starts lowercase (getUserById), PascalCase starts uppercase (UserController). The convention in most ecosystems: camelCase for variables and functions, PascalCase for types, classes, and anything you can instantiate. In React it is not even style — it is syntax: components must start with an uppercase letter or the JSX compiler treats the tag as HTML.
A useful side effect: converting user_account_id → camelCase and back is lossless with this tool, because the word splitter detects both underscores and internal capital letters. Paste existing code identifiers in and they re-format cleanly instead of merging into one word.
snake_case vs kebab-case vs CONSTANT_CASE
All three keep words visibly separated — they differ in separator and capitalization, and each owns a territory:
- snake_case is the default in Python, Ruby, Rust, and SQL column names (
created_at). Underscores survive case-insensitive systems and read as spaces. - kebab-case is the right choice for URLs — hyphens are the word separator search engines understand (underscores join words:
blue_running_shoesreads as one token). Also CSS custom properties (--main-color) and file names, because hyphens never need escaping in shells or URLs. - CONSTANT_CASE signals that a value should never change:
MAX_FILE_SIZE,API_BASE_URL,DEFAULT_TIMEOUT_MS. The visual weight is the point — a SCREAMING value in code draws the eye and says “config, not logic.”
Title Case vs Sentence Case for Headlines
Title Case (The Quick Brown Fox Jumps) dominates news headlines, book covers, and US marketing copy. Sentence case (The quick brown fox jumps) dominates modern UI design, European publications, and documentation — it is calmer and easier to scan. Neither is wrong; consistency is what matters. This converter’s Title Case capitalizes the first letter of every word and lowercases the rest, so THE QUICK BROWN FOX becomes The Quick Brown Fox in one click. Sentence case lowercases everything, then re-capitalizes the first letter of the text and after every . ! or ? — so stray capitals from an ALL-CAPS paste get cleaned up too.
One caveat: the Title Case algorithm capitalizes every word, including small words like “of” and “the”. Strict editorial style guides (Chicago, AP) skip those mid-title — if you write to one, glance over the result before publishing.
How the Converter Splits Words (Camels, Acronyms, Digits)
Converting fooBar to snake_case only works if the tool can see where one word ends and the next begins. The splitter here handles the three cases that actually occur in real data:
- Lowercase → uppercase boundary:
fooBarsplits intofoo+Bar. - Acronym runs:
HTTPRequestsplits intoHTTP+Request— the all-caps run stays intact instead of shattering into single letters. - Digit runs:
UserID123splits intoUser+ID+123, so numbers become their own word.
Any run of non-alphanumeric characters (spaces, dashes, dots, punctuation) also acts as a separator and disappears from the joined output — that is why Best-Seller List! becomes bestSellerList with no residue.
Step-by-Step: Using the Text Case Converter
- Paste or type your text into the input box. Word and character counts update live.
- Click a case button. The output area updates immediately (debounced 200 ms while typing so it stays snappy).
- Compare formats. Clicking another button re-converts the same input — try camelCase, then snake_case, without retyping anything.
- Chain with Swap. Swap feeds the output back in as the new input, so you can go UPPERCASE → Title Case → kebab-case in three clicks.
- Check the counters. Meta titles (≤60 chars), tweet limits, and slug lengths are all easier to hit when the count is visible.
- Copy the result. One click copies the output; the confirmation clears itself after a moment.
Ready to Convert Your Text?
You now know all 9 formats, where each one belongs — camelCase for JS variables, PascalCase for components, snake_case for Python, kebab-case for URLs, CONSTANT_CASE for env vars — and how the word splitter handles acronyms and digits. Scroll back up, paste your text, and convert it in one click.
