TC

camelCase Converter

Turn plain text, snake_case or kebab-case into camelCase variable names. Each line is converted separately, so you can convert a whole list at once.

Characters: 0
Words: 0
Lines: 0
Reading time: 0 min

Keyboard shortcuts: Ctrl/⌘+B to copy • Ctrl/⌘+S to download • Ctrl/⌘+Backspace to clear

What is camelCase?

In camelCase, words are joined without spaces, the first word is lowercase and every following word starts with a capital letter, like humps on a camel. Accents and punctuation are removed so the result is a valid identifier.

Example

Before

user first name
shipping-address
total_price_eur

After

userFirstName
shippingAddress
totalPriceEur

When to use camelCase

camelCase is the convention for variables and functions in JavaScript, TypeScript, Java and Swift, and for keys in many JSON APIs. Classes and components usually use PascalCase instead.

How to convert text to camelCase

  1. 1

    Paste or type your text in the box above. Pasted text is converted to camelCase automatically.

  2. 2

    Need another format? Click any button to switch, as many times as you like.

  3. 3

    Copy the result with the Copy button (Ctrl/⌘+B) or download it as a .txt file (Ctrl/⌘+S).

Frequently Asked Questions

Yes. Underscores, hyphens, spaces and dots are treated as word separators, and existing capitals are split into words.

They are removed, because identifiers should use plain ASCII letters: prénom becomes prenom.

camelCase starts with a lowercase letter (userName). PascalCase starts with a capital (UserName).