Case converter

Case converter

Convert between camelCase, snake_case, kebab-case, PascalCase and more

Computed in your browser

Enter English words, acronyms or an existing name to compare styles at once. Choose the form required by your language and coding conventions.

camelCase
PascalCase
snake_case
SCREAMING_SNAKE_CASE
kebab-case
Train-Case
Title Case
UPPER CASE
lower case

Example

Input

HTTP server response

Example result

httpServerResponse
HttpServerResponse
http_server_response
http-server-response

The lines show camelCase, PascalCase, snake_case and kebab-case.

Technical details & limits

Identifier styles tokenize ASCII letters and digits, separators and camel boundaries, including acronyms such as HTTPServer. Non-ASCII segments are omitted in naming styles; whole-text case uses JavaScript Unicode casing. Reserved words, leading-character rules and language syntax are not validated.

About this tool

Convert names or phrases into camelCase, PascalCase, snake_case, kebab-case and related styles, with whole-text upper and lower case. Standardize identifiers, configuration keys and path names.

Use cases

  • Turn a backend snake_case field into the camelCase your frontend expects.
  • Produce constant names (SCREAMING_SNAKE_CASE).
  • Name a CLI flag or environment variable.

How to use

  1. Paste an identifier or phrase into the input box.
  2. Every naming style is produced at once, so there is nothing to switch between.
  3. Copy the row you need with the button beside it.

Notes

Split rules: non-alphanumeric characters are separators; a run of uppercase followed by lowercase is split (`URLPath` → `URL Path`).

FAQ

How does camel case conversion handle acronyms such as HTTPServer?
The naming converter recognizes the boundary between an acronym and the following word, splitting HTTPServer into HTTP and Server. Snake case produces http_server, while camel case produces httpServer. These 2 outputs use the same 2 underlying tokens with different joining rules. Still check the destination language's identifier restrictions, since conversion does not validate reserved words, allowed starting characters, or conflicts with names already used in your program.
Does variable name conversion preserve Chinese characters?
Naming modes tokenize ASCII letters and digits, so they do not fully preserve Chinese characters in variable names. For example, user_name splits into 2 words, while user1 can remain 1 token. Whole-text uppercase and lowercase modes instead use JavaScript's Unicode case methods. Choose the mode according to the purpose, and inspect the result before replacing identifiers in code that intentionally uses non-ASCII names or language-specific naming rules.
Is a converted variable name automatically a valid identifier?
A converted variable name is not automatically valid in the destination programming language. For example, 1name begins with a digit, and class may be a reserved word; these are 2 separate issues that formatting does not resolve. Check language syntax after conversion, including case sensitivity and existing names. A visually consistent naming style cannot guarantee that the resulting code parses or that renamed identifiers remain distinct.

Related tools

Case converter · Convert between camelCase, snake_case, kebab-case, PascalCase and more
Case converter — Tool illustration · dayeku.com