Case Converter

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

Common use cases

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.