camelCase Converter

Joins the words on each line into a camelCase name: the first word lowercase, every following word capitalized, no spaces.

Result

The converted text appears here as you type.

For example
first name
shipping address line 2
XMLHttpRequest parser
firstName
shippingAddressLine2
xmlHttpRequestParser

How to use

  1. Paste or type your text in the box.
  2. Check the result. Every change is highlighted, so you can see exactly what will be different.
  3. Press Copy Result, or Open in Editor to keep working with more tools, undo and saved drafts.

Example

Before
first name
shipping address line 2
XMLHttpRequest parser
After
firstName
shippingAddressLine2
xmlHttpRequestParser

What it's for

  • Turning column headings into JavaScript property names
  • Renaming a list of fields for a JSON API

Questions

Can it convert snake_case or kebab-case?

Yes. Underscores, hyphens and spaces are all treated as word breaks, and existing capitals inside words start a new word.

What about acronyms like HTML?

An acronym followed by a capitalized word is split, so XMLHttpRequest becomes xmlHttpRequest.

Related tools