Case Converter

Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and more, with one click.

camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE all split your text into words first (handling spaces, punctuation, and existing camelCase boundaries), then rejoin them in the target style, so converting between any of them works cleanly either direction.

How it works

Each button is a plain JavaScript string transform that re-runs on every keystroke. UPPERCASE and lowercase are one-liners, but the programmer cases (camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE) all share a word-splitting step first: a regex inserts a boundary wherever a lowercase letter or digit is followed by an uppercase letter, then the text is split on any run of non-alphanumeric characters. Once the input is a clean word list, rejoining in the target style is trivial, which is why you can go from kebab-case to PascalCase to snake_case in any order without garbage accumulating.

One quirk worth knowing: consecutive capitals are treated as a single word. The splitter only breaks between a lowercase character and an uppercase one, so APIKey becomes apikey in snake_case, not api_key. If your identifiers contain acronyms, check those spots after converting. Title Case is smarter than a plain capitalize-every-word: it keeps minor words like "a", "the", "of", and "in" lowercase unless they start the text, and Sentence case only capitalizes after ., !, or ?.

All of this happens inside the page's JavaScript, with no library and no server. Open DevTools' Network tab while you type: nothing is sent, because there's nothing to send it to.

Common questions

Can I convert from camelCase back to spaced words?

Not directly to plain spaced text, but converting camelCase input to snake_case or kebab-case will correctly split it into separate words first. For Title Case or Sentence case on programmatic input, the word-splitting logic handles camelCase boundaries too.

What counts as a "word" for camelCase/snake_case/etc.?

Any run of letters or numbers, split at spaces, punctuation, hyphens, underscores, and camelCase capital-letter boundaries. "user-id_2" and "userId2" both split into the same three words.

Is my text sent anywhere?

No, conversion happens entirely in your browser as you type. Nothing is uploaded.