Skip to content
M2TOOLKIT

Text · free tool

camelCase & snake_case Converter

Rename variables, keys and files between camelCase, snake_case, kebab-case and other programming styles.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Text
  • Free
  • No sign-up
  • Runs in your browser
  • Updated

Type a name in any style — spaces, camelCase, snake_case — and every format appears here.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the camelCase & snake_case Converter

  1. Type or paste names in any style, one per line.
  2. See every format at once.
  3. Copy the one you need.

What does this tool do?

Different languages and tools prefer different naming styles: camelCase in JavaScript, snake_case in Python and SQL, PascalCase for classes, kebab-case for URLs and CSS, and CONSTANT_CASE for constants.

The converter splits names into words intelligently — including acronyms, so “parseHTTPResponse” becomes parse_http_response.

Why use it?

  • Convert API keys between backend and frontend conventions.
  • Rename lots of identifiers at once.
  • Handles acronyms and numbers.

Example: “user profile id”

One input, every style:

StyleResult
camelCaseuserProfileId
PascalCaseUserProfileId
snake_caseuser_profile_id
CONSTANT_CASEUSER_PROFILE_ID
kebab-caseuser-profile-id

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Frequently asked questions

What's the difference between camelCase and PascalCase?

Only the first letter. camelCase starts lowercase (userName) and PascalCase starts uppercase (UserName). Many languages use PascalCase for class and type names and camelCase for variables and functions.

Which naming style should I use for JSON keys?

Match the API or codebase you're working with. JavaScript APIs mostly use camelCase, while many Python and Ruby APIs use snake_case. Consistency within one API matters more than the choice itself.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the camelcase & snake_case converter.