Code Case Converter
A free code case converter that turns a single identifier or phrase into camelCase, PascalCase, snake_case, and kebab-case in one click. Paste a variable name, CSS class, or sentence and see all four formats with copy buttons. Runs entirely in your browser. No server required.
Why Use This Case Converter?
- One input, four outputs: Get all common naming formats at once.
- Copy any format: Each result has its own copy button.
- Live update: Optionally convert as you type.
- Private: All conversion happens in your browser.
Key Features
- Input: One line or phrase (e.g. myVariableName, my_variable_name, or “some sentence”).
- Outputs: camelCase, PascalCase, snake_case, kebab-case.
- Copy per format: Copy any of the four results with one click.
- Word splitting: Splits on capitals, underscores, hyphens, and spaces so mixed input is handled.
How it Works
The tool splits the input into words using a regex that matches before each uppercase letter and on underscores, hyphens, and spaces. Each word is lowercased. Then it builds: camelCase (first word lower, rest title-cased), PascalCase (all title-cased), snake_case (underscore-joined), kebab-case (hyphen-joined). Consecutive capitals (e.g. HTTP) are treated as one word for splitting.
Try the Code Case Converter
Type or paste an identifier in the input box and rely on live conversion to see all four formats. Copy the format you need from the four result rows. Everything runs in your browser.