Input text
Output
Choose an operation to start
Case Style Converter
Re-pack an identifier into the target style after splitting it into words: camelCase, snake_case, kebab-case, PascalCase or CONSTANT_CASE. Handy when renaming legacy code or matching a different language SDK.
Splitting recognises camelCase boundaries, underscores, hyphens and digit/letter edges; everything stays local to the browser.
Features
- Five styles — One click between camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE.
- Smart split — Detects camelCase, underscores, hyphens and digit edges without mangling myVar.
- Live — Converts as you type — no button needed to see the result.
- Copy — Copy the converted identifier straight from the result panel.
How to use
- Enter text on the left, e.g. my_variable_name or MyVariableName.
- Pick the target style on the right.
- The result updates instantly; click Copy to take it.
FAQ
How are digits handled?
Digits are treated as their own word segment — v2api splits into v, 2, api, so the number is preserved intact rather than glued to a neighbouring letter.
CONSTANT_CASE vs snake_case?
Both separate words with underscores; CONSTANT_CASE is all uppercase (used for macros, constants and enums), while snake_case is all lowercase (common for Python names).