DevTools

Case Converter

Convert text between camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case, and more — all at once, in your browser.

Prefer the terminal? See the CLI equivalent →
Loading tool…

About the Case Converter

  • camelCase, snake_case, kebab & more
  • One-click copy
  • Instant results
  • 100% private — runs in your browser
  • Free, no sign-up

Paste any text — an identifier, a variable name, or a whole phrase — and this tool converts it into every common case style at once: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case, and more. Copy the one you need with a single click.

It works from any starting shape. It understands separators (spaces, underscores, hyphens, dots, slashes), camelCase and PascalCase boundaries, and acronym runs — so “XMLHttpRequest” splits correctly into the words “XML”, “Http”, and “Request” before being rejoined in the style you pick.

Everything happens in your browser; nothing is uploaded. It is the quick fix for renaming a variable to match a codebase convention, turning a title into a URL slug, or building a CONSTANT for a config key.

How to use it

  1. Type or paste your text into the box.
  2. Read the converted result for each case style in the list below.
  3. Optionally use the toggle buttons under the box to filter the list to just the styles you care about — with none selected, every style is shown.
  4. Click Copy next to the style you want.

Case styles

camelCase
First word lowercase, the rest capitalized, joined — common for variables in JS/Java.
PascalCase
Every word capitalized and joined — common for classes and types.
snake_case
Lowercase words joined by underscores — common in Python, Rust, SQL.
CONSTANT_CASE
Uppercase words joined by underscores — for constants and env vars.
kebab-case
Lowercase words joined by hyphens — for URLs, CSS classes, filenames.
Title Case
Every word capitalized, space-separated — for headings and labels.

Frequently asked questions

How does it split my text into words?+

It breaks on separators (spaces, _, -, ., /), on camelCase/PascalCase boundaries, and on acronym-to-word boundaries. For example “getHTTPResponse” becomes get, HTTP, Response, and “user_id-value” becomes user, id, value.

Does it handle acronyms like XML or HTTP?+

Yes. A run of capitals followed by a normal word is split at the right place, so “XMLHttpRequest” yields the words XML, Http, Request rather than one blob. Note that most styles then normalize capitalization (e.g. snake_case gives xml_http_request).

Can I convert a whole sentence, not just one word?+

Yes. Multi-word input works the same way — try it for slugs (kebab-case), headings (Title Case), or constants (CONSTANT_CASE).

Is my text sent anywhere?+

No. All conversion runs locally in your browser with client-side JavaScript; your text never leaves your device.

Related tools