Code Case Converter
Convert an identifier between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and Title Case — all forms at once. Free and private.
All case forms
- camelCase
xmlHttpRequest - PascalCase
XmlHttpRequest - snake_case
xml_http_request - kebab-case
xml-http-request - CONSTANT_CASE
XML_HTTP_REQUEST - dot.case
xml.http.request - Title Case
Xml Http Request
What is the Code Case Converter?
The ByteTools Code Case Converter takes any identifier — however it is currently written — and shows it in every common programming case at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.
- Shows seven case styles from a single input
- Smart word splitting on humps, spaces, _ , - and .
- Handles acronyms like ID, URL and XML sensibly
- Individual copy button for every form
- Live update as you type
- 100% client-side — text never leaves your browser
How to use the Code Case Converter
- 1
Type or paste an identifier in any case into the input box.
- 2
The tool splits it into words automatically.
- 3
See every case form — camelCase, snake_case, kebab-case and more — listed at once.
- 4
Click Copy next to the form you want.
About the Code Case Converter
The ByteTools Code Case Converter takes any identifier — however it is currently written — and shows it in every common programming case at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and Title Case. Instead of picking a target format, you see them all and copy the one you need.
It splits your input intelligently on spaces, underscores, hyphens, dots and camelCase humps, and it keeps runs of capitals sensible, so a value like userID or XMLHttpRequest breaks into words the way you would expect. That makes it ideal for renaming variables, database columns, CSS classes, env vars and API fields consistently.
Conversion runs 100% locally in your browser. Nothing you type is uploaded, logged or stored, so it is safe for internal field names and unreleased code, and it works offline.
Frequently asked questions
What is the difference between camelCase and PascalCase?
Both join words without separators, but camelCase lowercases the first letter (myVariableName) while PascalCase capitalizes it (MyVariableName). camelCase is common for variables and functions in many languages; PascalCase is typical for classes, types and components.
What is snake_case versus kebab-case?
snake_case joins lowercase words with underscores (user_id) and is common in Python, Ruby and database columns. kebab-case joins lowercase words with hyphens (user-id) and is common in URLs, CSS class names and file names. This tool shows both from the same input.
How does the converter split my identifier into words?
It breaks on spaces, underscores, hyphens and dots, and also on camelCase boundaries — the point where a lowercase letter meets an uppercase one. Runs of capitals followed by a normal word, like in XMLParser, are split into XML and Parser so acronyms stay intact.
What is CONSTANT_CASE used for?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) writes words in uppercase joined by underscores, like MAX_RETRY_COUNT. It is the conventional style for constants and environment variables in many languages, signalling a value that should not change.
Is my input uploaded when I convert it?
No. All conversion happens in your browser with JavaScript. The identifier you enter is never transmitted, logged or stored, so it is safe to use with internal names and proprietary code.
Guides for Code Case Converter
Related tools
Case Converter
Convert text between uppercase, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case and more. Free online case converter.
Slug Generator
A free online slug maker that turns any title into a clean, SEO-friendly URL slug: lowercase, accents removed, words joined by hyphens. Live preview and copy.
JSON Formatter
Format, beautify and minify JSON online with 2-space, 4-space or tab indentation. Sort keys alphabetically and catch syntax errors instantly — free and private.
JSON Sort Keys
Sort JSON object keys alphabetically online, recursively through nested objects, and pretty-print the result. Validates input first. Free, instant and private.
NanoID Generator
Generate NanoIDs online with a configurable size and alphabet. Uses crypto-secure, unbiased random sampling. Create up to 50 URL-safe IDs at once. Free and private.