RevealTheme logo

Case Converter

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.

How to use this tool

  1. 1

    Type or paste your text — words separated by spaces work best.

  2. 2

    Every common case is generated at once: UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE.

  3. 3

    Click Copy next to whichever variant you need.

Why are there so many text cases, and when do you use each?

Capitalization isn't just style — in code it carries meaning, and different ecosystems standardized on different conventions decades ago. camelCase (first word lowercase, each later word capitalized) names variables and functions in JavaScript, Java, and Swift. PascalCase (every word capitalized) names classes, types, and UI components across most languages. snake_case (lowercase words joined by underscores) is Python's house style and the norm for database columns. kebab-case (lowercase words joined by hyphens) names files, URLs, and CSS classes, because hyphens are URL- and filename-safe where underscores and capitals are awkward. CONSTANT_CASE (uppercase with underscores) signals a constant or environment variable in almost every language. Title Case and Sentence case belong to prose — headings and sentences respectively. Converting between these by hand is slow and easy to get wrong, especially across a long label or a list of values. This tool takes your input — split into words on spaces — and produces every convention at once, so you copy the exact form your language or style guide wants instead of retyping. Because it splits on spaces, the cleanest input is a plain phrase like 'user profile id'; paste the words separated by spaces and you'll get correct camelCase, snake_case, kebab-case, and the rest in a single step.

Common use cases

  • Generate a URL slug or CSS class (kebab-case) from a human-readable title.

  • Turn a label like 'maximum retry count' into a CONSTANT_CASE environment-variable name.

  • Produce a database column name (snake_case) from a form-field label.

  • Create a camelCase variable name or a PascalCase component name from a plain description.

  • Fix an all-caps paste back to Sentence case, or set a heading in Title Case.

  • Standardize a list of labels to one convention before pasting them into code.

Frequently asked questions

How does it decide where the words are?
It splits your input on spaces. So the best input is a plain space-separated phrase like 'user profile id'. It does not re-split an existing identifier — paste 'userProfileId' or 'user_profile_id' and it will treat the whole thing as one word, so separate your words with spaces for correct results.
What's the difference between camelCase and PascalCase?
Only the first letter. camelCase lowercases the first word (myVariableName) and names variables and functions; PascalCase capitalizes it (MyClassName) and names classes, types, and React/Vue components.
What's the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of each word — 'The Quick Brown Fox' — and is used for headings. Sentence case capitalizes only the first word — 'The quick brown fox' — and is used for body text. Many modern style guides now prefer Sentence case even for headings.
How does it handle acronyms like ID, URL, or API?
Plainly — it lowercases or uppercases each space-separated word, so 'user ID' becomes 'userId' in camelCase and 'user_id' in snake_case. Capitalization rules for acronyms genuinely differ between style guides, so review acronym-heavy output and adjust to your convention.
Why not just use my editor's built-in case commands?
Editors usually offer UPPER/lower/Title but rarely the programmer cases (camel, snake, kebab, constant) in one place. This tool shows every variant simultaneously so you don't chain several commands or retype.
Is my text private?
Yes — conversion runs entirely in your browser; nothing is uploaded.

Related tools