Case Converter
Text Tools
Convert text between eleven case styles — including UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, aLtErNaTiNg, and InVeRsE.
Runs entirely in your browserAbout Case Converter
Programmers and writers constantly need to convert between case styles. A new variable should be `camelCase` in JavaScript but `snake_case` in Python or SQL. A REST endpoint wants `kebab-case`. A constant wants `CONSTANT_CASE`. A blog post wants Title Case. Doing these conversions by hand is fiddly because each style has its own rules about word boundaries and capitalization.
This tool covers every commonly used case style with one click. The clever part is the word-boundary detector: it correctly splits `userIDPath` into `user`, `ID`, `Path` (handling acronyms), splits `MyXMLParser` correctly, and produces the right output for snake_case, kebab-case, CONSTANT_CASE, and so on. Picks like aLtErNaTiNg (every other letter flipped) and InVeRsE (swap each letter's case) are there for emphasis or fun. All conversions run as pure JavaScript functions in your browser — no network calls.
How to use
- 1
Paste your text
Drop the text into the input area.
- 2
Pick a transform
Click any of the eleven case-style chips. The output panel updates instantly. The active chip is highlighted.
- 3
Copy or clear
Use Copy to take the result; Clear to reset the input for the next conversion.
Examples
Converting a phrase to camelCase
Word boundaries are detected, spaces removed, subsequent words capitalized.
Input
user account idOutput
userAccountIdsnake_case from PascalCase
Capital boundaries are split correctly.
Input
GetUserAccountIdOutput
get_user_account_idAcronyms in identifiers
Mixed acronyms split correctly between words.
Input
parseXMLAttributeOutput
parse_xml_attributeFrequently asked questions
How does it handle acronyms in identifiers?+
The word-splitter recognizes that consecutive capitals like `XML` are an acronym. So `parseXMLAttribute` splits as `parse`, `XML`, `Attribute` and produces `parse_xml_attribute` (snake) or `parse-xml-attribute` (kebab).
What's the difference between Title Case and Sentence case?+
Title Case capitalizes every word (`The Quick Brown Fox`). Sentence case capitalizes only the first word and proper nouns, leaving the rest lowercase (`The quick brown fox`).
When would I use CONSTANT_CASE?+
It's the convention for environment variables, named constants in many languages (C, Java, Python), and feature flags. `MAX_RETRY_COUNT`, `API_BASE_URL`, etc.
What does InVeRsE case do?+
It flips every letter's case — uppercase becomes lowercase and vice versa, leaving non-letters alone. Mostly useful for emphasis or text effects.
Is my input sent anywhere?+
No. The conversions are pure functions running in your browser.
Related tools
Remove Duplicate Lines
Strip duplicate lines from text. Supports case sensitivity and whitespace trimming.
Word Counter
Count characters, words, sentences, and paragraphs with live reading-time estimates.
Text Diff Checker
Compare two pieces of text and highlight differences inline or side by side.
Lorem Ipsum Generator
Generate placeholder text in classic, hipster, or corporate dialects.