Case Converter

About this tool

Convert text between nine conventions: lowercase, UPPERCASE, Title Case, sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. All nine rows are produced from the same input as you type.

How to use

  1. Paste or type text into Input.
  2. Every conversion updates on each keystroke.
  3. Use the Copy button on the row you need.

Example

Input: user profile ID

lowercase       user profile id
UPPERCASE       USER PROFILE ID
Title Case      User Profile Id
Sentence case   User profile id
camelCase       userProfileId
PascalCase      UserProfileId
snake_case      user_profile_id
kebab-case      user-profile-id
CONSTANT_CASE   USER_PROFILE_ID

How words are split

Title Case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE first split the input into words. A word boundary is whitespace, the characters _, - and ., or a transition from a lowercase letter or digit to an uppercase letter. Each word is lowercased before the output is assembled.

That split is why HTTPServer-response_code becomes the words httpserver, response and code, and therefore httpserverResponseCode in camelCase.

Limits

  • Acronyms do not survive. ID becomes Id in Title Case, and every letter of HTTP is lowercased before capitalisation.
  • Conversion is not reversible. XMLHttpRequest comes back as xmlhttpRequest in camelCase, because the original capital letters are not recorded anywhere.
  • lowercase and UPPERCASE change letter case only; they never insert or remove separators.
  • Sentence case lowercases the whole string and then capitalises the first character, so proper nouns are flattened too.

FAQ

Does it split existing camelCase input?

Yes. A lowercase-to-uppercase transition is treated as a word boundary, so userProfile is read as user and profile.

Why did Title Case lowercase my acronym?

Each word is lowercased before its first letter is capitalised, so there is no way to keep ID or API intact. Fix those words after copying.

Where does the text go?

It is converted in the page. The draft input is kept in this browser's localStorage so it survives a reload, and is not sent anywhere.