How to use the case converter
- Type or paste an identifier into the box — a variable name, column name, file name or plain phrase.
- The tool splits it into words and instantly fills in all seven case styles below.
- Click Copy next to the style you need and paste it straight into your code.
The programming cases, explained
Most languages and frameworks have naming conventions, and switching between them by hand is tedious and error-prone. This converter recognises the boundaries in your input — whether you separate words with spaces, hyphens, underscores or dots, or run them together as camelCase — and rebuilds the same words in whichever convention you need.
- camelCase — first word lowercase, the rest capitalised (
userName). Common for variables and function names in JavaScript, Java and Swift. - PascalCase — every word capitalised, including the first (
UserName). Used for classes, types and React components. - snake_case — lowercase words joined by underscores (
user_name). Idiomatic in Python, Ruby and SQL columns. - kebab-case — lowercase words joined by hyphens (
user-name). Used for URLs, CSS classes and HTML attributes. - CONSTANT_CASE — uppercase words joined by underscores (
USER_NAME). The convention for constants and environment variables. - dot.case — lowercase words joined by dots (
user.name). Handy for config keys and namespaced properties. - Title Case — capitalised words separated by spaces (
User Name). Great for headings, labels and documentation.
Smart word splitting
The converter detects camelCase and acronym boundaries, so messy mixed input still produces clean output. For example,parseHTMLResponse, parse-html-response and Parse HTML Response are all read as the same three words and can be emitted in any style. Numbers stay attached to their word, and any stray punctuation is treated as a separator.
Is it private?
Yes. Everything runs locally in your browser using plain JavaScript — there is no server call when you type or copy. Your identifiers, which may include sensitive project names, are never uploaded, logged or stored anywhere.
Frequently asked questions
Does it handle acronyms like ID, URL or HTML?
Yes — a run of capitals followed by a normal word is split correctly, so userIDValue becomes user / id / value.
Can I convert a whole phrase, not just one word?
Absolutely. Type any phrase with spaces and it is treated as multiple words, then re-joined in each style.
Why are there no spaces in snake_case or kebab-case output?
Those conventions deliberately use a single separator instead of spaces, which is what makes them valid as identifiers and URL parts.
Related: UPPERCASE & Title Case converter · URL slug generator