Case converter
Convert any text between common letter-casing styles — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case, and more.
What this tool does
Type or paste a chunk of text, then click one of the buttons to transform every letter to a different casing style. The tool handles eleven styles, including the four casings most-used in code (camelCase, PascalCase, snake_case, kebab-case) and the two used in publishing (Title Case and Sentence case).
The styles, defined
- UPPERCASE — every letter capitalized. Used for emphasis, but considered shouting in most prose.
- lowercase — every letter lowered. Common in modern wordmarks and command-line tools.
- Title Case — every word capitalized. Common in headlines, book titles, and movie posters. Note that strict title case lowercases short words like "and", "the", "of"; this tool uses the simpler capitalize-everything rule, which is closer to how most CMS systems behave.
- Sentence case — only the first word of each sentence is capitalized. Recommended for paragraphs of prose and for most modern UI copy.
- camelCase — first word lowercase, subsequent words capitalized, no spaces. Used for variables and methods in JavaScript, Java, Swift, and others.
- PascalCase — every word capitalized, no spaces. Used for class names in most languages.
- snake_case — words joined by underscores, all lowercase. Used in Python, Ruby, and database column names.
- kebab-case — words joined by hyphens, all lowercase. Used in URL slugs, CSS class names, and HTML attributes.
- CONSTANT_CASE — words joined by underscores, all uppercase. Used for constants in many languages.
- aLtErNaTiNg — every other character upper-cased. A joke at this point, but occasionally requested.
- InVeRt CaSe — flips the case of every letter.
How to choose
For a JavaScript variable, use camelCase. For a Python variable, snake_case. For a URL slug, kebab-case. For a constant in any language that has constants, CONSTANT_CASE. For headlines in marketing copy, Title Case is conventional in the US; UK and tech-style guides increasingly prefer Sentence case for everything.
For body prose, always Sentence case. Title case in body paragraphs makes the text feel like a 1990s marketing brochure.
Edge cases
The case converter treats a punctuation character as a word boundary when converting to identifier styles. "Hello, World!" becomes helloWorld, hello_world, and hello-world respectively — punctuation is dropped. Numbers are preserved. Acronyms in input (like "HTTP") are normalized; if you need to preserve "HTTPRequest" as a single word, edit the output afterward.
Privacy
The transformation happens in your browser. Nothing is uploaded.