QuickWand
← All guides

How to Convert a Name to camelCase, snake_case, or kebab-case

You have a clear label in your head — User Profile Settings — but the code wants userProfileSettings, the database wants user_profile_settings, and the URL wants user-profile-settings. Converting between these by hand is fiddly and a perfect place to introduce a typo.

A case converter handles the splitting and rejoining for you. Here is how.

How to convert a name to camelCase, snake_case, or kebab-case

QuickWand's free case converter runs in your browser, so identifiers and field names never leave your machine.

  1. Open the case converter.
  2. Paste your label — it can have spaces, hyphens, or underscores already, like User Profile Settings.
  3. Choose camelCase, PascalCase, snake_case, or kebab-case.
  4. Copy the result and drop it straight into your code or config.

What each case means and where it belongs

These four conventions all remove spaces, but they mark word boundaries in different ways — and each ecosystem has its favorite.

  • camelCaseuserProfileSettings. First word lowercase, every later word capitalized. Standard for variables and functions in JavaScript, Java, Kotlin, and Swift.
  • PascalCaseUserProfileSettings. Like camelCase but the first word is capitalized too. Used for class names, types, and React/Vue component names.
  • snake_caseuser_profile_settings. All lowercase, words joined by underscores. Idiomatic in Python and Ruby, and the usual choice for SQL table and column names.
  • kebab-caseuser-profile-settings. All lowercase, words joined by hyphens. Used in URLs, CSS class names, and HTML attributes, where hyphens are the safe separator.

Why not just retype it?

For one short name, retyping is fine. But when you are renaming a field across a schema, a class, a query, and a route, doing it by hand invites inconsistency — a stray capital here, a missing underscore there. Converting from one canonical label keeps every form in sync.

Reformatting prose instead?

If you are formatting a heading or sentence rather than an identifier, the same tool also does Title Case, UPPERCASE, and Sentence case. And when you are wiring up a colorful UI, the color converter turns HEX into the rgb() values your CSS needs.

Paste one label, pick a case, copy — consistent identifiers across your whole codebase, no typos.

Frequently asked questions

What is the difference between camelCase, snake_case, and kebab-case?
All three join words without spaces, but they signal word boundaries differently. camelCase capitalizes each word after the first (myVariableName). snake_case lowercases everything and joins with underscores (my_variable_name). kebab-case lowercases everything and joins with hyphens (my-variable-name). PascalCase is like camelCase but also capitalizes the first word (MyVariableName).
Where is each case typically used?
camelCase is common for variables and functions in JavaScript, Java, and similar languages. PascalCase is used for class and component names. snake_case is common in Python, Ruby, and SQL column names. kebab-case is used in URLs, CSS class names, and HTML attributes because those contexts disallow underscores or treat them awkwardly.
Can it convert a phrase with spaces and punctuation?
Yes. The converter splits on spaces, hyphens, underscores, and case boundaries, so 'User Profile Settings', 'user-profile-settings', and 'userProfileSettings' all convert cleanly between formats.
Is the converter free and does it upload my text?
It is free with no sign-up and runs entirely in your browser. Your text is never sent to a server, so it is safe to use for internal identifiers and unreleased field names.

Free tool

Case Converter

Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and kebab-case.

Try Case Converter— free →