Skip to content
HelpySelf

Case Converter

Convert text between camelCase, snake_case and more.

Runs in your browser — your text never leaves your device.

Save this tool

Keep Case Converter handy

Bookmark it

About this tool

Different systems insist on different naming conventions, and moving between them by hand is tedious and error-prone. JavaScript prefers camelCase, Python and databases lean on snake_case, CSS classes and URLs use kebab-case, environment variables shout in CONSTANT_CASE, and headings want Title Case. This converter shows every form at once so you can grab whichever you need. It works from any input rather than only plain words, because the programming cases break the text into words first: camelCase boundaries, underscores, hyphens and spaces are all understood, so you can convert straight from one convention to another. Acronyms are handled sensibly, so a name like HTTPServerConfig splits into the words you would expect rather than one long run of capitals. Title Case follows normal editorial convention by leaving short joining words such as of, and and the in lowercase unless they begin or end the line. Sentence case, UPPERCASE and lowercase work on your text as written so that punctuation and spacing survive untouched.

How to use it

  1. Paste or type your text
  2. Every case appears at once as you type
  3. Copy the one you need

Frequently asked questions

Can I convert from camelCase to snake_case directly?

Yes. The input is split into words before anything is rebuilt, so it does not matter which convention you start from. camelCase, PascalCase, snake_case, kebab-case and plain spaced text all work as input.

How are acronyms handled?

A run of capitals followed by a capitalised word is split at the right place, so HTTPServerConfig becomes the words http, server and config rather than being treated as a single token. That gives you http_server_config rather than httpserverconfig.

Why does Title Case leave some words lowercase?

Because standard editorial style keeps short articles, conjunctions and prepositions such as a, of, and and the in lowercase unless they are the first or last word. If you want every word capitalised regardless, use the Title Case output and adjust, or start from a different case.

Does converting to uppercase or lowercase keep my punctuation?

Yes. UPPERCASE, lowercase and Sentence case operate on your original text rather than on extracted words, so spacing and punctuation are preserved exactly. The programming cases necessarily discard punctuation, since it is not valid in identifiers.

Why does v2 become v_2 in snake_case?

Because a boundary between letters and digits is treated as a word break, which is the same behaviour as widely used libraries such as lodash. It gives you utf_8_encoder rather than utf8_encoder. Title Case and Sentence case do not split digits, so headings keep v2 intact.

Related tools