Skip to content
Categories
Case Converter
Convert text to camelCase, snake_case, and other naming conventions.
Overview
- Converts the text you enter into all 9 naming conventions at once, including camelCase, PascalCase, snake_case, and kebab-case.
- Recognizes underscores, hyphens, and spaces, as well as camelCase uppercase boundaries, as word separators, so it works regardless of the input format.
- Useful when you want to unify variable names, function names, file names, and other identifiers to match a project's naming conventions.
Usage
- Enter the text you want to convert into the text area (any format such as user_name, UserName, or user name works).
- Click the "Convert" button.
- The result is displayed, converted into all 9 naming conventions including camelCase, PascalCase, and snake_case.
Example
Input
user_name
Output
camelCase: userName PascalCase: UserName snake_case: user_name kebab-case: user-name
Use Cases
- Converting between API property names (snake_case) and in-code variable names (camelCase) when integrating with another language or framework
- Converting a label text received from a designer into PascalCase or CONSTANT_CASE for use as a variable or constant name
- Converting names in existing code that mix several formats into the naming convention your project uses
FAQ
What kinds of word separators are supported?
In addition to underscores, hyphens, and spaces, uppercase boundaries such as those in camelCase or PascalCase are also recognized as word breaks (e.g., "userName" → "user" "Name").
Can I convert Japanese text?
Japanese text may not convert as expected, since word boundaries cannot be reliably detected. This tool is intended for use with alphanumeric text.
Is the text I enter sent anywhere?
No. All conversion happens entirely in your browser.
Notes
- Intended for use with alphanumeric text. Japanese text may not convert as expected, since word boundaries cannot be reliably detected.
- The conversion result exists only on the page and is lost on reload, so copy and save it if you need to keep it.
- Consecutive uppercase letters (e.g. XMLHttpRequest) may be split differently than intended, depending on the word-boundary detection rules.
Related Tools
Format and normalize Markdown to make it easier to read.
Preview Markdown in real time.
Count the characters, words, and lines in your text.