Programmer Case Converter

Convert text and variable names between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case in one click. Built for developers renaming variables, keys, and identifiers. Paste your text, pick a style, and copy the result — all in your browser.

What a code case converter does

Programmers name things constantly — variables, functions, files, database columns, CSS classes — and different languages and conventions demand different naming styles. A code case converter switches your text between these programmer casing styles instantly: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case. Instead of manually retyping a name in a different style, you paste it, click the style you need, and copy the result.

The naming styles explained

Each style has its place. camelCase (helloWorld) is standard for variables in JavaScript and Java. PascalCase (HelloWorld) is used for class names and components. snake_case (hello_world) is the Python convention for variables and functions, and common in database columns. kebab-case (hello-world) is used in URLs, CSS classes, and file names. CONSTANT_CASE (HELLO_WORLD) marks constants. And dot.case (hello.world) appears in config keys and namespaces. Knowing which style a context expects is part of writing clean code.

Why you need to convert between them

The need comes up whenever you move between conventions. You copy a column name from a database (snake_case) and need it as a JavaScript variable (camelCase). You have a component name (PascalCase) and need a matching CSS class (kebab-case). You are converting a config file between formats. Doing this by hand for a list of names is tedious and error-prone — one missed underscore or capital and your code breaks. Converting in one click keeps it fast and correct.

How the conversion handles your input

The converter intelligently splits your input into words, whether they are separated by spaces, existing camelCase capitals, underscores, hyphens, or dots — then reassembles them in the target style. So it can take helloWorld, hello_world, or "hello world" and turn any of them into kebab-case. This means you can convert freely between any two styles without cleaning up the input first. Everything runs in your browser, so your code and names stay on your device.

Privacy: your text never leaves the browser

All processing happens locally, on your own device. Your text is never sent to servers, which makes the tool safe even for confidential content. When you close the tab, nothing remains stored.

Frequently asked questions

What is the difference between camelCase and PascalCase?
Both join words with no separators and capitalize each word, but camelCase starts with a lowercase letter (helloWorld) while PascalCase capitalizes the first letter too (HelloWorld). camelCase is typical for variables; PascalCase for class and component names.
Can it convert from any style to any other?
Yes. The tool detects word boundaries whether your input uses spaces, camelCase capitals, underscores, hyphens, or dots, so you can convert between any two styles — for example snake_case straight to kebab-case — without preparing the input first.
Why do I need snake_case and kebab-case separately?
They serve different contexts. snake_case (with underscores) is standard in Python and database columns, while kebab-case (with hyphens) is used in URLs, CSS class names, and file names where underscores are discouraged.
Is my code uploaded when I convert?
No. The conversion runs entirely in your browser. Your variable names, code, and any text you paste never leave your device.