Skip to content
appsriha apps

Case Converter

camelCase, snake_case, kebab-case and 10 styles at once

  • UPPER CASE · All capitals

    USER PROFILE NAME

  • lower case · All lowercase

    user profile name

  • Title Case · Capitalize each word

    User Profile Name

  • Sentence case · Capitalize each sentence

    User profile name

  • camelCase · Variables and functions (JavaScript, Java)

    userProfileName

  • PascalCase · Classes and components

    UserProfileName

  • snake_case · Variables (Python, database columns)

    user_profile_name

  • CONSTANT_CASE · Constants and environment variables

    USER_PROFILE_NAME

  • kebab-case · URLs, CSS classes, file names

    user-profile-name

  • dot.case · Config keys and package names

    user.profile.name

Words are split on spaces and separators (_ - .), case changes (fooBar) and capitals after digits (v2Api). Characters without case, such as Korean or Chinese, are kept as they are. Your text never leaves the browser.

How to use Case Converter

  • Type text or a name to see it in 10 styles at once, including UPPER, lower, Title Case, camelCase and snake_case, each with a copy button.
  • Words are split on spaces, underscores, hyphens and case changes, so XMLHttpRequest becomes xml_http_request.
  • Multiple lines are converted line by line, and characters without case (such as Korean or Chinese) are kept as they are.
  • Everything runs in your browser.

Frequently asked questions

What's the difference between camelCase, snake_case and kebab-case?

Taking 'user profile name': camelCase is userProfileName, PascalCase is UserProfileName, snake_case is user_profile_name, CONSTANT_CASE is USER_PROFILE_NAME and kebab-case is user-profile-name. camelCase is common for JavaScript and Java variables, snake_case for Python variables and database columns, and kebab-case for URLs and CSS classes. All 10 styles appear at once, each with a copy button.

How are names with acronyms like XMLHttpRequest split?

Words are split where a run of capitals meets a lowercase letter, so XMLHttpRequest becomes xml_http_request and getHTTPResponseCode becomes get_http_response_code. Digits stay with the preceding letters and a capital after a digit starts a new word, so v2Api becomes v2_api. In camelCase acronyms keep only their first letter capitalized, as in xmlHttpRequest.

Does Title Case keep short words like 'of' and 'the' lowercase?

No. Title Case capitalizes the first letter of every word, so 'the lord of the rings' becomes 'The Lord Of The Rings'. If your style guide keeps small words lowercase, fix those by hand after copying.

Can I convert several names at once?

Yes. With several lines, each line is converted on its own and blank lines are kept. That's handy for turning a list of variable names into snake_case in one go. Conversion happens in your browser, and a share link only includes input of 200 characters or less.