Case Converter
Convert text between common programming and writing case styles.
Your result will appear here…
How to use Case Converter
- Enter words or an existing identifier.
- Select Convert.
- Copy the line in the style you need.
Example
Input / settings:
user_id
Output:
UPPERCASE: USER_ID lowercase: user_id Title Case: User Id camelCase: userId PascalCase: UserId snake_case: user_id kebab-case: user-id
The underscore is treated as a word boundary. Uppercase and lowercase keep it because they do not split words.
When to use
- Rename a database column or API field to match another naming convention.
- Turn a heading into a URL slug or a CSS class name.
- Compare how one name looks in each style before choosing a convention.
Overview
Case Converter shows seven versions of your text at once: UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case and kebab-case. UPPERCASE and lowercase change every letter and keep spaces and punctuation. The other five first split the text into words, then drop punctuation and join the words in the chosen style.
Supported input
text
Output details
case variations
Common mistakes
- Acronyms are not split. XMLHttpRequest becomes xmlhttp_request and HTMLParser becomes htmlparser, because a new word starts only where a lowercase letter or digit is followed by a capital.
- Dots and other punctuation separate words, and so does a capital letter that follows a lowercase letter or a digit: v2.0 becomes v2_0 and get2FACode becomes get2_facode. A digit by itself is not a boundary, so abc123def stays one word.
- Punctuation is dropped from the five identifier-style lines: hello, world! becomes hello_world. Only UPPERCASE and lowercase keep it.
- Letter case follows JavaScript's default Unicode mapping, not your locale. Straße becomes STRASSE in UPPERCASE, and İ lowercases to an i followed by a combining dot.
Practical tips
- Check acronyms and product names by hand; they are the most common source of surprising results.
- Title Case capitalizes every word, including short words such as of and the, so adjust headings manually.
Privacy and security
This tool runs entirely in your browser. Your input is never uploaded to our servers. Conversion is plain local string processing. Results are not checked against any language's rules, so an identifier can still start with a digit or match a reserved word.
References
Frequently asked questions
Which case styles does Case Converter produce?
UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case and kebab-case, all in one result.
Can it convert between camelCase and snake_case?
Yes. A capital letter that follows a lowercase letter or a digit starts a new word, so backgroundColor gives background-color and user_id gives userId.
What happens with empty input?
The tool still lists the seven style labels, each followed by an empty value.