Case converter

A case converter rewrites a name or phrase in naming styles such as camelCase, snake_case and kebab-case.

Features

  • Many stylescamel, Pascal, snake, kebab, constant and title case.
  • Smart splittingAcronyms and separators are handled.
  • Runs on your deviceYour data is processed in the browser and is never uploaded.

How to use the case converter

  1. Paste a phrase or identifier.
  2. Copy the style you need.

Where each style is common

camelCase for JavaScript variables, PascalCase for class names, snake_case for Python, kebab-case for URLs and CSS, and CONSTANT_CASE for constants.

kebab-case in JavaScript

const kebab = name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/[\s_]+/g, '-').toLowerCase();

Frequently asked questions

Are acronyms handled?

parseHTTPResponse is split into parse, http and response.

Can I convert many lines?

All words are joined into one name, so convert one identifier at a time.

Does it keep punctuation?

No. Punctuation separates words.

Related tools