๐Ÿ”  Case Converter

Input
Output

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more in one click. Handy for renaming programming variables or adjusting headline capitalization.

How to use

  1. Type or paste your text into the input box.
  2. Choose the case you want to convert to (uppercase, camelCase, etc.).
  3. See the result in the output box and click "Copy" to copy it.

How the calculation works

This tool changes letter case and how words are joined. UPPERCASE and lowercase convert every letter directly. Title Case splits the text into words (treating underscores and hyphens as spaces), capitalises the first letter of each and lowercases the rest; Sentence case capitalises only the start of each sentence. For camelCase, snake_case and kebab-case, the text is first split into words, at spaces, underscores and hyphens, and also wherever a lowercase letter is followed by an uppercase one, as in "userName". Then camelCase lowercases the first word and capitalises the start of the rest, joining them directly; snake_case lowercases everything and joins with underscores; kebab-case joins with hyphens. Different languages and contexts have their own conventions for which style to use.

Worked example

Converting "user profile_image-URL" camelCase: userProfileImageUrl snake_case: user_profile_image_url kebab-case: user-profile-image-url Title Case: User Profile Image Url In camelCase and similar styles, "URL" is lowercased as a word and then only its first letter capitalised, giving "Url".

Things to be aware of

  • Runs of capitals, as in "URL" or "HTTPServer", may not be recognised as word boundaries.
  • Title Case does not follow English headline conventions such as lowercasing articles and prepositions.
  • Characters without case, such as Japanese, are left as they are.
  • When renaming variables, check the result stays consistent with the rest of your code.

FAQ

Can I use this to convert programming variable names?

Yes โ€” it supports common naming conventions like camelCase and snake_case.

Does it work with Japanese text?

The conversion applies to alphanumeric characters that have a case concept; Japanese text is left unchanged.

Can I convert a headline to title case?

Yes โ€” choose Title Case to capitalize the first letter of each word, suitable for headlines.

Does it support kebab-case?

Yes โ€” kebab-case, commonly used for URL slugs and CSS class names, is supported.

Can I compare before and after while editing?

Yes โ€” the input and output boxes sit side by side so you can compare the original text against the converted result.