stoolme
Home/ Writing/ Case converter

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.

Frequently asked questions

What's the difference between Title Case and Sentence case?
Title Case capitalizes every word; Sentence case capitalizes only the first word of each sentence (plus proper nouns). Title Case is conventional for headlines and book titles; Sentence case is conventional for prose and modern UI copy.
Why does my camelCase output drop punctuation?
camelCase is an identifier style — it has to be valid as a variable name in code, where punctuation isn't allowed. Spaces, hyphens, underscores, and other punctuation are treated as word boundaries and removed.
Can I use this for non-Latin scripts?
For scripts that have a case (Cyrillic, Greek, Armenian), yes — JavaScript's built-in case methods are Unicode-aware. For scripts without case (Arabic, Hebrew, Chinese, Japanese), the transformations are no-ops.
Does the tool preserve my line breaks?
Yes for the prose-style transformations (UPPER, lower, Title, Sentence, invert, alt). The identifier styles (camel, snake, kebab, etc.) collapse all whitespace, including line breaks.
How is "Title Case" different from what a copy editor would call title case?
A copy editor follows a style guide (Chicago, AP, MLA) that lowercases short words. This tool capitalizes every word — the simpler rule used by most CMS systems and word processors. If you need strict editorial title case, review the output by hand.