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 nine case styles below.
- Click Copy next to the style you need and paste it straight into your code.
- Converting a whole list? Turn on Batch mode, paste one name per line, pick a target case from the dropdown, and every line converts on its own.
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, dots or slashes, 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. - Train-Case, capitalised words joined by hyphens (
User-Name). Seen in HTTP headers and some CLI flag names. - dot.case, lowercase words joined by dots (
user.name). Handy for config keys and namespaced properties. - path/case, lowercase words joined by slashes (
user/name). Useful for building file paths and route segments. - 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. A mixed-up input like some_mixed-caseInput still splits cleanly into some / mixed / case / input. Numbers stay attached to their word, and any stray punctuation is treated as a separator.
Batch mode, convert a whole list at once
Renaming a batch of columns, files or variables one at a time is slow. Switch on Batch mode above the input, paste one identifier or phrase per line, and choose a single target case from the dropdown. Every line is tokenised and rebuilt on its own, blank lines are kept in place, and the full result is ready to copy in one go.
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.
What is the difference between kebab-case and Train-Case?
Both join words with hyphens, but kebab-case keeps every word lowercase (user-name) while Train-Case capitalises each word (User-Name).
How do I convert a list of names in one step?
Turn on Batch mode, paste one name per line into the box, pick a target case, and the converter rebuilds every line independently in that case.
What is the difference between camelCase and PascalCase?
camelCase keeps the first word lowercase (userName), while PascalCase capitalises every word including the first (UserName). camelCase is common for variables; PascalCase for classes and components.
How does the converter split my input into words?
It splits on spaces, hyphens, underscores, dots and slashes, and also detects camelCase boundaries, so myXMLParser, my-xml-parser and my xml parser all produce the same words.
Can I convert a whole list of names at once?
Yes. Turn on batch mode, paste one identifier or phrase per line, pick a target case, and every line converts on its own, in order.
Is my text uploaded anywhere?
No. The conversion runs with JavaScript. Nothing you type is ever sent to a server.
Related: UPPERCASE & Title Case converter · URL slug generator