🔁 Code Case Converter

Convert variable names between any naming convention instantly. Smart auto-detection, batch mode, and full code snippet conversion. Free, private, no signup.

One variable per line
Convert to
Enter variable names above to see conversions

About This Code Case Converter

This code case converter transforms variable names and identifiers between any of the eight major programming naming conventions instantly. Paste a list of names in any format — camelCase, snake_case, kebab-case, PascalCase, or mixed — and the tool auto-detects the word boundaries and converts to whichever convention you select. No configuration needed; the smart split engine reads the structure of each identifier automatically.

Beyond single-name conversion, this code case converter offers a Code Snippet mode where you paste a full function or class, and every identifier is converted in one click while strings, comments, and operators are left untouched. This makes it practical for cross-language refactoring — for example, adapting a Python module (snake_case) to JavaScript (camelCase) or a JavaScript API response (camelCase) to a Ruby codebase (snake_case).

Smart Split Detection — How It Works

Most code case converter tools require you to specify the input format. This one does not. The split engine checks for multiple boundary types simultaneously: uppercase transitions for camelCase and PascalCase, underscores for snake_case, hyphens for kebab-case, dots for dot.case, and spaces for plain words. Consecutive capitals like HTTPSRequest are handled correctly — split into HTTPS and Request.

Supported Naming Conventions

  • camelCase — used in JavaScript, Java, Swift (variables and functions)
  • PascalCase — used in C#, TypeScript, React (classes and components)
  • snake_case — used in Python, Ruby, PostgreSQL (variables and tables)
  • SCREAMING_SNAKE — used for constants in most languages
  • kebab-case — used in HTML attributes, CSS, URLs
  • Train-Case — used in HTTP headers (Content-Type, X-Api-Key)
  • flatcase — used in package names and some database identifiers
  • dot.case — used in configuration keys and property paths

Batch Conversion and Code Snippet Mode

In Variable Names mode, paste multiple identifiers — one per line — and all are converted simultaneously. Each output line has its own copy button and character count. Use Copy All to grab the entire batch at once. In Code Snippet mode, the code case converter tokenizes the input, preserves strings and comments unchanged, and converts only the identifiers. This is the fastest way to adapt a code block between two language conventions without manually renaming each variable.

Frequently Asked Questions

A code case converter is a tool that transforms variable names, identifiers, and function names between programming naming conventions — camelCase, snake_case, PascalCase, kebab-case, and others. It automates the tedious work of reformatting identifiers when switching between codebases, languages, or team style guides.

Paste your camelCase variable names into the input (one per line), then click the snake_case button. The tool automatically detects word boundaries and outputs the correct snake_case equivalent. Use Code Snippet mode to convert all identifiers in a full code block at once.

This code case converter supports 8 conventions: camelCase, PascalCase, snake_case, SCREAMING_SNAKE, kebab-case, Train-Case, flatcase, and dot.case. The input can be in any of these formats — the tool detects word boundaries automatically.

Yes. In Variable Names mode, paste multiple identifiers one per line. All are converted simultaneously in the same order. Each line has an individual copy button, and a Copy All button grabs the entire batch. For full code blocks, switch to Code Snippet mode.

Yes, completely free with no account or signup required. All conversion runs locally in your browser — your code and variable names are never sent to any server.