Like ToolFern? Prefer us as your source on Google →

Programmer Case Converter

Type a variable name or phrase and instantly get it as camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Train-Case, dot.case, path/case and Title Case, each with a one-click copy button. Need to convert a whole list? Switch on batch mode and paste one name per line.

camelCase
PascalCase
snake_case
kebab-case
CONSTANT_CASE
Train-Case
dot.case
path/case
Title Case

How to use the case converter

  1. Type or paste an identifier into the box, a variable name, column name, file name or plain phrase.
  2. The tool splits it into words and instantly fills in all nine case styles below.
  3. Click Copy next to the style you need and paste it straight into your code.
  4. 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.

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

Found this useful? Share it