Text Tools

Camel Case

All tools

Turn a plain phrase or a snake_case name into a camelCase identifier.

How it works

Four simple steps

1

Paste source text

Use phrases, snake_case, or spaced words as input.

2

Tokenize words

Spaces, dashes, and underscores split into word parts.

3

Build camelCase

First word lowercases; later words capitalize their first letter.

4

Copy identifier

Copy the camelCase name for variables or JSON keys.

Camel Case

About Camel Case

An API spec lists fields as "Order Total", "shipping_address" and "created-at", and your JavaScript style guide wants camelCase. Rather than retyping each one, paste the names here and copy back identifiers like orderTotal and shippingAddress.

Any character that is not a letter or digit (spaces, underscores, hyphens, dots, slashes) acts as a word break and is removed. The first word is lowercased, and every later word gets a capital first letter followed by lowercase. The output is one continuous string, so paste a single name per run, or expect all the words in the box to merge together.

Two things catch people out. Existing capitals inside a word are not treated as boundaries, so "userID" or "getHTTPStatus" collapse to "userid" and "gethttpstatus". Split them with spaces first. Accented letters such as é also count as separators and are dropped, so "café menu" turns into "cafMenu". Stick to plain ASCII names for identifiers.

If the target is a class or component name, PascalCase capitalizes the first word as well. Python and SQL usually prefer snake_case identifiers. The conversion runs in your browser as you type, which makes it fine for internal field names from private schemas.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

Not in one pass. Line breaks are treated like spaces, so several lines merge into one long identifier. Convert names one at a time.

The tool only splits on characters that are not letters or digits, and it lowercases each word apart from its first letter. Type "user ID" with a space before converting to get userId.

Yes. Digits stay in place, so "line 2 total" becomes line2Total. Keep in mind that an identifier starting with a digit is not valid in most languages.

View more FAQs

Related tools

View all

Uppercase

Convert text to UPPERCASE.

Open

Lowercase

Convert text to lowercase.

Open

Sentence Case

Capitalize first letter of sentences.

Open

Title Case

Capitalize each word.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools