Camel case converter

Turn words, column headers or existing identifiers into camelCase, or switch between camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE, one name per line.

What you type stays in your browser

0 characters

Convert to

In short

Paste a phrase or a list of names, one per line. camelCase is selected, so "first name" becomes firstName and user_id becomes userId. Click PascalCase, snake_case, kebab-case, CONSTANT_CASE or dot.case to switch. Words are detected from spaces, underscores, hyphens and existing capitals.

How to convert names to camelCase

  1. Paste one name or phrase per line into Your text, for example column headers copied from a spreadsheet.
  2. camelCase is selected on this page; each line becomes one identifier in the result.
  3. Click another case under Convert to: PascalCase for class names, snake_case for Python and SQL, kebab-case for URLs and CSS, CONSTANT_CASE for constants.
  4. Press Copy result and paste the identifiers into your code.

How the converter finds the words

Identifiers cannot contain spaces, so each convention marks word boundaries differently: a capital letter in camelCase and PascalCase, an underscore in snake_case, a hyphen in kebab-case. To convert between them, the tool first splits the input into words at spaces, punctuation, underscores and hyphens, and at every change from a lowercase letter or digit to a capital. Runs of capitals are treated as one acronym, so parseHTTPResponse splits into parse, http and response.

The words are then lowercased and joined in the target style. This means acronyms are normalized: userID becomes userId in camelCase and user_id in snake_case, which matches the Google and Microsoft style guides for JavaScript, Java and C#. Accented letters are kept, which is valid in most modern languages but not in every system, so check the result if an identifier must be plain ASCII.

Frequently asked questions

What is camel case?

A way of writing several words as one identifier without spaces, with the first word lowercase and every following word starting with a capital: firstName, totalPrice, isVisible. The capitals look like the humps of a camel.

What is the difference between camelCase and PascalCase?

Only the first letter. camelCase starts lowercase (userName) and is used for variables and functions; PascalCase starts uppercase (UserName) and is used for classes, types and React components.

When should I use snake_case instead of camelCase?

Follow the language: Python (PEP 8), Ruby, Rust and SQL column names use snake_case for variables and functions; JavaScript, Java, C# and Swift use camelCase. JSON keys follow whichever convention the API already uses.

What is kebab-case used for?

URLs, file names, CSS classes and HTML attributes, where hyphens are allowed and readable: /blog/how-to-bake-bread or .main-nav. Most programming languages do not allow hyphens in variable names.

Can I convert many names at once?

Yes. Every line is converted on its own, so you can paste a column of database fields or form labels and copy back a column of identifiers in the same order.

How do I convert camelCase back to normal words?

Paste the identifiers and click Sentence case or lowercase: the result keeps the text but not the word breaks. For readable words, first convert to snake_case or kebab-case, then replace the underscores or hyphens with spaces.

Naming conventions by language

The most common conventions in popular languages:

  • JavaScript and TypeScript: camelCase variables and functions, PascalCase classes and components, CONSTANT_CASE constants.
  • Python: snake_case variables and functions, PascalCase classes, CONSTANT_CASE constants.
  • Java and C#: camelCase local variables, PascalCase classes (and methods in C#).
  • CSS and URLs: kebab-case; environment variables: CONSTANT_CASE.

More case options

For ordinary text rather than code, the main case converter offers title case, sentence case and more. If you need to check an identifier or slug length against a limit, paste it into the character counter.

How your files stay private

This tool runs with JavaScript inside your browser tab. What you type, the settings you choose and the results stay in the page's memory and disappear when you close it. Nothing is sent to a server; a few display settings may be remembered in your own browser.

Presets

Guides

Last updated Nov 20, 2026