Case Converter for Code

Convert names between camelCase, snake_case, PascalCase, kebab-case and CONSTANT_CASE — or paste real code and rename its variables without breaking anything.

5 free tries without an account
Names, one per line
Converted

Cleaning up AI-generated code? The Code Humanizer fixes naming, removes comments that just repeat the code, and rewrites it in a developer persona's style in one step.

Open the Humanizer →

How to convert camelCase to snake_case

  1. In Names mode, paste one name per line and pick the case you want. The result updates as you type.
  2. To rename the variables inside a code snippet, switch to Code mode, choose snake_case or camelCase and click Convert variables.
  3. Copy the result. In Code mode, the list under the panels shows every rename and anything that was skipped.

Naming conventions by language

Related guides

Frequently asked questions

How do I convert camelCase to snake_case?

Paste your names one per line in Names mode, choose snake_case and copy the result. To rename every variable inside a code snippet, switch to Code mode.

How are acronyms and numbers handled?

Acronyms are kept together, so parseHTTPResponse becomes parse_http_response. Digits stay with the word before them, so base64Encode becomes base64_encode.

Will Code mode break my code?

Code mode renames each variable everywhere it is used and never touches strings or attribute access like obj.someName. Names that are also keyword arguments or object keys, or that would clash with an existing name, are skipped and listed so you can decide.

Why aren't my function parameters renamed?

Callers outside your snippet may pass parameters by name, so renaming them could break code you didn't paste. Function names are only renamed if you tick the option, for the same reason.

Do I need an account?

No — you can use the free tools 5 times without one. After that, sign up or log in (it's free) for unlimited use of every tool.

Is my code stored?

No. Names mode runs entirely in your browser, and Code mode processes your code in memory without saving it. See our Privacy Policy.