camelCase converter

Converts any text into the naming style you need — for variables, files and identifiers.

Type or paste any text — a phrase, a variable name in another style, a column heading — and press the style you want. Each button converts to one naming convention, and they all read the input the same way, so you can switch between them freely.

The five conventions and where each belongs

How the words are found

The clever part of any case converter is splitting the input into words, because the input can arrive in any form. This one recognises word boundaries from spaces, hyphens and underscores, and also from case changes — so getUserName, get_user_name, get user name and Get-User-Name all split into the same three words. That means you can convert straight from one style to another without going through plain text first.

Runs of capitals are handled sensibly: parseHTTPResponse splits into parse, HTTP, response rather than parse, H, T, T, P. Numbers stay attached to the word they follow, so utf8Encoder keeps utf8 together.

Why get this right

Naming conventions are not decoration — mixing them causes real bugs. A JSON key sent as user_name when the code expects userName silently reads as undefined. A CSS class in snake_case does not match a selector written in kebab-case. A database column and its model property drifting apart cause mapping errors. Converting a whole list of names to one convention in a single press is how you keep them consistent.

Doing it without this tool

Editors: VS Code has no built-in case conversion between these styles; extensions add it. Many IDEs offer some of them through refactoring, one identifier at a time.

Excel: no built-in support. SUBSTITUTE can join words with underscores but cannot handle the capitalisation logic without a long formula.

Command line: possible with sed and awk, but the word-splitting rules — especially handling runs of capitals — take more code than the job is worth for a one-off.

Programming: most languages have a library (like lodash's camelCase, snakeCase, kebabCase) which is the right answer inside a codebase, but overkill for converting a handful of names.

Try:
0Words
0Characters
0No spaces
0Sentences
0Paragraphs
0Lines
0Pages
0Reading
0Speaking

Runs entirely in your browser. Your text is never uploaded — open DevTools, Network tab, and you will see zero requests while you use this tool.

How to use it

  1. Paste your text or an existing identifier into the box.
  2. Press the style you need: camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE.
  3. You can convert straight from one style to another — the splitter reads them all.
  4. Copy the result into your code.

Related tools

ROT13One button encodes and decodes — ROT13 is its own reverse.Title case converterCapitalises a headline properly — short words stay lowercase, unlike naive…JSON formatterBeautify messy JSON, minify it back to one line, or catch the syntax error —…Slug generatorTurns a headline into a clean, lowercase, hyphenated URL slug.Title case vs sentence caseThree style guides, three different answers, and the four-letter rule that…Small capsSmall capital letters that paste anywhere plain text goes.Group generatorPaste names, choose how many groups, get evenly sized random teams.

See all text tools →

Frequently asked questions

Can I convert from one style directly to another?

Yes. The word splitter recognises boundaries from spaces, hyphens, underscores and case changes, so camelCase, snake_case and a plain phrase all split into the same words. Just press the target style.

How does it handle runs of capitals like HTTP?

It keeps them together as one word, so parseHTTPResponse becomes parse, HTTP, response rather than splitting every letter. The result reads correctly in every style.

What is the difference between camelCase and PascalCase?

Only the first letter. camelCase starts lower (getUserName), PascalCase starts upper (GetUserName). camelCase is usual for variables, PascalCase for class and type names.

Which style should I use for a URL or CSS class?

kebab-case, with hyphens between lowercase words. For a full URL slug that also strips accents and transliterates other alphabets, use the slug generator instead.

What do numbers do?

They stay attached to the word they follow, so utf8Encoder keeps utf8 together rather than splitting the digit off.