Skip to main content
FixLines

camelCase, snake_case and kebab-case converter

Convert text to camelCase, snake_case, kebab-case and more.

Editor

Ln 1, Col 10 lines0 words0 characters

camelCase, snake_case and kebab-case converter: what it does

Turn plain words or an existing name into the naming style your code needs: camelCase for variables, PascalCase for classes, snake_case for Python and databases, kebab-case for URLs and CSS, CONSTANT_CASE for constants. Each line is converted on its own.

camelCase, snake_case and kebab-case converter: how to use it

  1. Paste one name or phrase per line.
  2. Choose the naming style.
  3. Select Apply and copy the converted names.

camelCase, snake_case and kebab-case converter: when to use it

  • Rename variables, functions or JSON keys to the convention of a new code base.
  • Build file or folder names in kebab-case from a list of page titles.
  • Convert column names from a spreadsheet into snake_case for a database or a Python script.

camelCase, snake_case and kebab-case converter: examples

Make camelCase names

Input

user first name
order total price

Result

userFirstName
orderTotalPrice
Convert existing names between styles

Input

userFirstName
order-total-price
MAX_RETRY_COUNT

Result

user_first_name
order_total_price
max_retry_count

camelCase, snake_case and kebab-case converter: questions and answers

Can it convert between styles, like snake_case to camelCase?

Yes. Words are detected from spaces, hyphens, underscores and capital letters, so any style can become any other.

What happens to symbols and accents?

Symbols are treated as word breaks and dropped. Letters keep their accents.

Does it handle acronyms like HTTP or ID?

A run of capitals is treated as one word, so “HTTPServer” becomes “http_server” in snake_case and “httpServer” in camelCase.

Can I convert many names at once?

Yes. Put one name per line; every line is converted on its own and the order is kept.

Is my text sent to a server?

No. Everything runs in your browser on your own device, so your text never leaves it.

Tools people often use together with this one.

More in Change caseBrowse all text tools