Skip to content

Case Converter

See your text in nine cases at once and copy the one you need.

Runs entirely in your browser

The text stays in this page and is never uploaded.

Renaming a variable, fixing a heading somebody typed in caps lock, turning a column of labels into database columns: the transformation is trivial and doing it by hand thirty times is not.

More about Case Converter

Nine cases are shown at once rather than one at a time, because the names are not memorable. Most people know the shape they want and have to think for a second about whether it is called camel or Pascal, so the tool shows every result and lets the eye pick.

The interesting part is not the cases, it is the word splitting underneath them. Turning `XMLHttpRequest` into kebab-case requires knowing it is three words, not one and not eight. A naive split on every lowercase-to-uppercase boundary produces `x-m-l-http-request`, which is the single most common bug in tools like this. The rule that works is to break before a capital that is followed by a small letter, as well as after a small letter followed by a capital.

Vietnamese text is handled as text, not as bytes. Marks are preserved rather than stripped — folding them is what the slug generator is for — and case changes apply per letter, so `tiếng việt` becomes `Tiếng Việt` with the tone marks intact.

  • Nine cases shown at once, each one copyable on its own
  • Acronym runs kept together, so XMLHttpRequest is three words not eight
  • Digits treated as a boundary, so userID2 splits sensibly
  • Prose cases keep punctuation and spacing; identifier cases rebuild from words
  • Vietnamese tone marks preserved through every case change
  • Round-trips between identifier cases without losing structure

How to use it

  1. 1Paste or type the text you want to convert.
  2. 2Read down the list and find the shape you need.
  3. 3Copy that line with the button beside it.
  4. 4Paste the result back in to convert it again if you need a different case.

Questions

What is the difference between camelCase and PascalCase?

Only the first letter: camelCase starts small, PascalCase starts capital. Both join the words with no separator.

Why does XMLHttpRequest not become x-m-l-http-request?

Because an unbroken run of capitals is one word, not several. The tool breaks before a capital followed by a small letter, which keeps acronyms whole.

Are Vietnamese accents removed?

No, they are preserved. Removing accents is what a URL slug needs, so that job belongs to the slug generator instead.

What is CONSTANT_CASE for?

It is the convention for constants and environment variables in most languages. It is snake_case with every letter capitalised.

Can I convert back the other way?

Yes. Paste a camelCase or snake_case identifier and every other case is produced from it, because the words are recovered first.

More Text Tools
Esc

16 results