Case converter

Convert text to camelCase, snake_case, kebab-case, Title Case and eight other styles.

Runs in your browser. Your input is not uploaded.

What it does

The converter first splits text into words at spaces, punctuation and case changes, so parseHTTPResponse, parse_http_response and Parse HTTP response all give the same words. It then joins them in the style you choose.

Each line is converted separately, so you can paste a column of identifiers.

How to use it

  1. Paste text or identifiers, one per line if there are several.
  2. Choose the case.
  3. Copy the result.

Example: To snake_case

Input
parseHTTPResponse
userId
Output
parse_http_response
user_id

Things to watch for

  • Acronyms are not preserved in camelCase: HTTP becomes Http. That matches most style guides, but check yours.
  • Title Case keeps short words such as “of” and “the” lower case unless they come first.

Questions

What is the difference between camelCase and PascalCase?
camelCase starts lower case (userId); PascalCase capitalises every word (UserId). PascalCase is usual for classes and types.
What is CONSTANT_CASE?
Upper case with underscores, used for constants and environment variables: MAX_RETRIES.
Does it handle accented letters?
Yes. Letters and digits in any script count as word characters.
Is kebab-case the same as a URL slug?
Close, but the slug tool also strips accents and punctuation so the result is safe in a URL.