Skip to main content

Case Converter

Convert text to UPPER, lower, Title, camelCase, snake_case, and 8 more styles.

Written by Golam Rabbani, Founder & Lead Engineer

How to use this case converter

  1. Type or paste your text into the "Input text" field.
  2. Pick a target case from the dropdown — twelve options including UPPER, lower, Title, camelCase, snake_case, kebab-case, CONSTANT_CASE, and alternating.
  3. Press Convert to render the result. The output panel shows the converted text in monospace so spacing and underscores are easy to read.
  4. Press Copy result to copy it to your clipboard.
  5. Press Reset to clear inputs and start over.

About this case converter

The case converter normalizes text into any of twelve named casing styles. Programming styles (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case) work by splitting the input on whitespace, underscores, hyphens, dots, or on lower-to-upper transitions, then joining the lowercased word parts with the target separator and capitalization rule. Prose styles (UPPERCASE, lowercase, Title Case, Sentence case) operate character-by-character and apply Unicode-aware capitalization so non-ASCII letters like "é" or "ñ" are handled correctly.

A concrete example: the input `"My new blog post title"` produces:

- UPPERCASE: `MY NEW BLOG POST TITLE` - Title Case: `My New Blog Post Title` - camelCase: `myNewBlogPostTitle` - snake_case: `my_new_blog_post_title` - kebab-case: `my-new-blog-post-title` - CONSTANT_CASE: `MY_NEW_BLOG_POST_TITLE`

This makes it useful for renaming variables when porting code between languages (camelCase in JavaScript, snake_case in Python), generating URL slugs, or normalizing CSV column headers. All processing runs in your browser — nothing is uploaded.

FAQ

What's the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every word. Sentence case only capitalizes the first letter of each sentence (after a period, exclamation mark, or question mark) and the very first letter of the input, leaving all other letters lowercase.
How does camelCase split my text into words?
The converter splits on whitespace, underscores, hyphens, and dots, and also detects boundaries between a lowercase letter and an uppercase letter (so "myXMLParser" splits into "my", "XML", "Parser"). It then lowercases each part and capitalizes all but the first.
Does CONSTANT_CASE preserve the original word order?
Yes. Word order is never changed. CONSTANT_CASE simply joins the same words with underscores and uppercases every letter, producing the style used for environment variable names like `DATABASE_URL`.
What does alternating case do?
Alternating case flips between lower and upper on every character starting from lowercase, so "Hello World" becomes "hElLo wOrLd". It is mostly used for stylistic / meme purposes.
Is the converter Unicode-aware?
Yes. It uses JavaScript's built-in Unicode case mapping, so letters like "é", "ß", "ç", and "ñ" are uppercased and lowercased correctly — for example "résumé" → "RÉSUMÉ" in UPPERCASE mode.
Does the tool send my text to a server?
No. All conversion runs locally in your browser; the tool never uploads, logs, or stores your text.