UtilityBase logoUtilityBase

Developer Tools

Code Case Converter

Convert identifiers between camelCase, snake_case, kebab-case, PascalCase, and more.

Updated July 13, 2026

How to use the code case converter

  1. 1Type or paste an identifier or phrase.
  2. 2Read every case format at once.
  3. 3Copy the one you need.
  4. 4Paste multiple lines to convert a whole list.

Common uses

  • Renaming a variable to match a project's convention
  • Converting database columns to code identifiers
  • Turning a label into a CSS class or file name
  • Bulk-converting a list of identifiers

Frequently asked questions

How does it split my input into words?

It breaks on spaces, underscores, hyphens, and dots, and also on camelCase and PascalCase boundaries — so 'getUserID' splits into get / user / ID and 'first-name field' into first / name / field. It handles acronyms too, keeping 'HTTPRequest' as HTTP / request. Then it reassembles the words in each convention.

Which case should I use where?

camelCase for variables and functions in JavaScript, Java, and similar; PascalCase for classes and components; snake_case in Python and SQL; kebab-case for CSS classes, URLs, and file names; CONSTANT_CASE for constants and environment variables. Matching a project's convention keeps code consistent.

Can I convert a whole list at once?

Yes. Put each identifier on its own line and every output format converts line by line, so you can transform a full list of variable or column names in one paste. This is aimed at code identifiers; for capitalizing sentences or titles, use the text case converter instead.

About this tool

The code case converter reformats programming identifiers between every common convention at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and dot.case. Type any input — spaced words, an existing identifier, or messy mixed separators — and it splits it into words (respecting camelCase and acronym boundaries) and shows all formats to copy. Paste multiple lines to convert a whole list of variable names at once. It's for code identifiers, distinct from a prose case converter that just changes letter case. Everything runs in your browser.

Like most tools on UtilityBase, the code case converter runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more developer tools here.

Was this tool helpful?

Related tools