SlugGenerator.app

CamelCase Converter

Convert any text to camelCase format. Used for JavaScript variables, JSON keys, and programming identifiers.

Try:

What Is CamelCase?

CamelCase is a naming convention where each word begins with a capital letter and no spaces or separators are used. There are two variants: lowerCamelCase (first word lowercase, e.g. myVariableName) and UpperCamelCase or PascalCase (all words capitalized, e.g. MyClassName).

CamelCase vs Other Naming Conventions

  • camelCase: myVariableName — JavaScript, Java, TypeScript variables
  • PascalCase: MyClassName — C# classes, React components
  • snake_case: my_variable_name — Python, Ruby, databases
  • kebab-case: my-variable-name — URLs, CSS classes, HTML attributes

How to Convert underscore_case to camelCase

Converting snake_case (underscore notation) to camelCase is essential when working across Python and JavaScript codebases. The algorithm removes each underscore and capitalizes the following letter:

  • user_first_nameuserFirstName
  • get_user_by_idgetUserById
  • api_base_urlapiBaseUrl

This conversion is common when consuming Python or Ruby APIs from a JavaScript frontend, or when migrating database column names into JSON response keys.

camelCase vs PascalCase

ConventionExampleFirst LetterCommon Usage
camelCasemyVariablelowercaseJS/TS variables, JSON keys
PascalCaseMyVariableuppercaseClasses, React components

Where to Use CamelCase

  • JavaScript and TypeScript variable and function names
  • Java method and variable names
  • JSON object keys in many APIs
  • Swift and Kotlin identifiers
  • Go exported identifiers (PascalCase)
  • React state variables and event handlers
  • C# local variables and method parameters
  • GraphQL field names

Related Tools

Convert to Python-style naming with the Snake Case Converter. For URL-friendly formats, try the Kebab Case Converter. For all formats at once, use the Case Converter Online.

Related Tools

/

Slug Generator

Convert text to URL slugs

🔗

URL Slug Generator

Create SEO-friendly URL slugs

📝

Text to Slug

Transform any text into a slug

Slugify Online

Slugify text instantly online

🔒

Permalink Generator

Create clean permanent URLs

🌐

WordPress Slug Generator

Generate slugs for WordPress

✍️

Blog Slug Generator

Generate slugs for blog posts

🏷️

Product Slug Generator

Generate slugs for product pages

Aa

Case Converter

Convert text to any case format

Tt

Title Case Converter

Capitalize text in title case

Ss

Sentence Case Converter

Convert text to sentence case

k-c

Kebab Case Converter

Convert text to kebab-case

s_c

Snake Case Converter

Convert text to snake_case

Pc

PascalCase Converter

Convert text to PascalCase

aLt

Alternating Case

Convert text to aLtErNaTiNg CaSe

d.c

Dot Case Converter

Convert text to dot.case

C_C

Constant Case Converter

Convert text to CONSTANT_CASE

🔢

Word Counter

Count words, characters & sentences

📄

Lorem Ipsum Generator

Generate placeholder text

📋

Plain Text Converter

Strip formatting, clean text

✂️

Duplicate Line Remover

Remove duplicate lines from text

Remove Empty Lines

Remove blank lines from text

↕️

Sort Lines Alphabetically

Sort text lines A-Z or Z-A

↩️

Remove Line Breaks

Join lines into one paragraph

Em Dash Remover

Replace em dashes with commas or hyphens

👁

Invisible Character Detector

Find hidden Unicode characters with code points

%20

URL Encoder / Decoder

Encode & decode URLs online

📊

UTM Builder

Build campaign tracking URLs

{}

JSON Keys to camelCase

Convert JSON keys to camelCase

{_}

JSON Keys to snake_case

Convert JSON keys to snake_case