Free Online Case Converter

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case and 11 more naming styles online.

Converter

camelCase, snake_case, kebab-case & Every Naming Style In Between

Convert an identifier or phrase between 17 case conventions

—

Results are provided for informational purposes only and may contain errors. Please verify important information independently. Use of this tool is at your own risk.

About these naming conventions

This tool recognizes camelCase humps, PascalCase, and underscore/hyphen separators automatically, so the "From" format is mostly for a meaningful swap button - paste any style of input and it'll be split into words correctly regardless of which one you picked. camelCase, PascalCase, snake_case, and CONSTANT_CASE are the most common programming identifier styles; kebab-case shows up constantly in URLs and CSS; Train-Case is what HTTP headers use (Content-Type); Ada_Case is Ada's standard. iNVERT cASE and aLtErNaTiNg CaSe are novelties, not real naming conventions - they flip existing letters directly instead of reformatting word boundaries.

What the Case Converter does

The Case Converter rewrites an identifier or phrase in any of 17 naming styles, including camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Train-Case, dot.case and path/case.

It finds the word boundaries itself: spaces, underscores, hyphens and the humps of camelCase are all recognized, and runs of capitals such as HTTP are kept together as one word. You can paste any style and convert it to any other.

When to use it

  • Renaming a field when data moves between systems, for example user_id in a database and userId in JavaScript.
  • Turning a page title into a URL part; the Slug Generator also removes accents and punctuation.
  • Creating constants, CSS class names or environment variable names from plain English.
  • Converting a list of column headings into consistent property names before generating code or a database schema.

Worked example

user account id → camelCase

userAccountId

user account id → PascalCase

UserAccountId

user account id → snake_case

user_account_id

user account id → kebab-case

user-account-id

user account id → CONSTANT_CASE

USER_ACCOUNT_ID

user account id → Train-Case

User-Account-Id

parseHTTPResponse2xx → snake_case

parse_http_response2xx

Common questions about the Case Converter

How are acronyms handled?

A run of capitals is treated as one word, and a new word starts where lowercase follows, so parseHTTPResponse becomes parse_http_response in snake_case.

What happens to numbers?

Digits stay attached to the word they follow, so response2xx remains one word. If you need the number separated, add a space or underscore before converting.

Are iNVERT cASE and aLtErNaTiNg CaSe naming conventions?

No. They are included for fun and for test data. They flip the letters you typed instead of rebuilding word boundaries, so they keep spaces and punctuation as they are.

Is this tool free?

Yes, it's free to use. No signup, no email required. Get results on this page.

How do I get my result?

Use the tool on this page. Your result appears here; no email delivery is required.