Case Converter case
Convert text between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE at once.
What this tool does
Naming conventions differ by language and by context. JavaScript and Java use camelCase for variables and functions, Python and Ruby use snake_case, classes are normally PascalCase, constants are written in CONSTANT_CASE, and CSS classes and URL paths favour kebab-case.
The difficulty is that a single project needs several of them at the same time. A database column is snake_case while the API response is camelCase, and the same concept appears in a filename as kebab-case. Once a name runs to three or four words, converting by hand invites typos.
This tool detects word boundaries in the input and shows every convention at once. It handles words separated by spaces, underscores, or hyphens, and also splits strings already written in camelCase by looking at capital letters.
When to use it
Use it when mapping API response fields to database columns, when naming a new component and its file together, when unifying naming across existing code, or when turning a list of specification terms into consistent identifiers.
Input and output examples
user profile image
userProfileImage / user_profile_image / user-profile-image / UserProfileImage / USER_PROFILE_IMAGE
Space-separated words are converted into every convention at once.
getUserName
get_user_name / get-user-name / GET_USER_NAME
Existing camelCase is split at capital letters.
Notes and limitations
Names containing acronyms can split in unexpected ways: values such as userID or HTTPRequest are handled differently by different tools and may produce results like user_i_d, so check the output. Changing a convention also does not update code automatically, and renaming an API field or database column requires the other side to change with it.
Frequently asked questions
Which convention should I use?
Follow the language and your team rules. Typically camelCase for JavaScript and Java, snake_case for Python, PascalCase for classes, and kebab-case for CSS and URLs.
Acronyms convert oddly.
Runs of capitals such as ID, URL, and HTTP make word boundaries ambiguous, and results differ between tools. Adjust manually where needed.