About the Case Converter
Programming languages and style guides disagree on how multi-word identifiers should be cased — JavaScript favors camelCase, Python and databases favor snake_case, classes are usually PascalCase, and environment variables are typically CONSTANT_CASE.
This tool converts any text or identifier between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and Title Case in a single click.
How it works
- Type or paste your text — it can already be in any case style, or just plain words separated by spaces.
- Click the target case format you need.
- The converted result appears instantly, ready to paste into your code.
Common use cases
- Renaming a variable: Converting a snake_case Python variable name to camelCase when porting logic to JavaScript, or vice versa.
- Building a CSS class or URL slug: Converting a feature name like 'User Profile Settings' into kebab-case for a CSS class name or file name.
- Setting up environment variables: Converting a config key like `apiBaseUrl` into CONSTANT_CASE (`API_BASE_URL`) for a `.env` file.
Frequently asked questions
How does the tool know where word boundaries are?
It splits on existing camelCase/PascalCase boundaries, underscores, hyphens, and spaces — so `getUserData`, `get_user_data`, and `get-user-data` are all recognized as the same three words and can be converted to any other case consistently.
What's the difference between snake_case and CONSTANT_CASE?
Both use underscores between words, but snake_case keeps everything lowercase (`user_id`) while CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uppercases every letter (`USER_ID`) — the latter is the convention for constants and environment variables in most languages.
Does it handle acronyms correctly, like 'userID' or 'HTTPServer'?
Word-boundary detection is based on lowercase-to-uppercase transitions, so consecutive capital letters in an acronym may be split into individual single-letter 'words' — for tricky acronym-heavy names, a quick manual check of the output is worth it.
Can I convert a full sentence, not just an identifier?
Yes — any text with spaces or punctuation works; the tool treats each word the same way regardless of whether the input was originally an identifier or plain prose.
This tool runs entirely in your browser — nothing you enter is sent to a server. Read more in the Privacy Policy, or browse the full list of tools.