Skip to content

Variable Name Converter

Convert a name between camelCase, snake_case, kebab-case and the rest.

Quick Tool Overview

The Variable Name Converter parses acronyms and digits correctly, so parseHTTPResponse becomes parse_http_response rather than parse_h_t_t_p_response — which is what a naive split on capitals produces, and why most quick conversions need fixing.

What it does
Converts names between every naming convention
You give it
One name, or a list with one per line
You get back
Every case, plus the words it found
Best for
Moving a schema between two languages
Developer Tools Free, unlimited use No sign-up Runs in your browser

About the Variable Name Converter

Paste a name in any convention and get it in all the others. The parser handles the cases that trip up a naive split: consecutive capitals in an acronym, digits inside a word, and names that already mix conventions.

That parsing is the whole job. Splitting <code>parseHTTPResponse</code> on capitals gives you p-a-r-s-e-h-t-t-p, which is why so many quick conversions produce <code>parse_h_t_t_p_response</code>. Detecting that HTTP is one word and Response is the next gives <code>parse_http_response</code>, which is what you wanted. Paste a whole list and every line is converted, which is what you need when a JSON API hands you snake_case and your TypeScript interface wants camelCase.

Key features of the Variable Name Converter

Acronyms kept whole

A run of capitals is one word, with the last capital starting the next if a lower-case letter follows. HTTP stays HTTP.

Digits stay attached

oauth2Token gives oauth2_token, not oauth_2_token, so protocol and version numbers survive.

The split shown

The words the parser found are listed, so an odd result is explained rather than mysterious.

Nine conventions

camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Title Case and sentence case.

Whole lists at once

Paste a column of field names and every line is converted independently.

How to use the Variable Name Converter

  1. 1

    Enter a name

    In any convention, or paste a list with one per line.

  2. 2

    Read every form

    camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and more.

  3. 3

    Check the split

    The words the parser found are shown, so you can see how it read an acronym.

  4. 4

    Copy what you need

    Click any form to copy it, or take the whole converted list.

Frequently asked questions

Follow the language. JavaScript and Java use camelCase for variables and PascalCase for types; Python and Ruby use snake_case; CSS and URLs use kebab-case; constants are usually CONSTANT_CASE almost everywhere. Consistency inside a project matters more than the choice.

Reviews of the Variable Name Converter

What people who use the Variable Name Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Variable Name Converter. It takes half a minute and no account.

Write the first review

More developer tools