# Case Converter

Canonical URL: https://offlineutils.com/case-converter
Category: Text & Content
Published: 2026-06-24
Publisher: offlineutils.com
Runs entirely in the browser; nothing entered into the tool is uploaded.

> A Case Converter transforms a string between common identifier and prose casing styles — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, and lowercase — entirely in your browser.

Paste any string and see every common casing variant side-by-side. The converter handles input with mixed separators (spaces, underscores, hyphens) and disambiguates word boundaries inside camelCase and PascalCase using a small set of locale-aware rules.

## Features

- Nine case variants generated side-by-side from a single input
- camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, lowercase
- Handles mixed separator input (spaces, underscores, hyphens)
- Acronym-aware splitting (HTTPResponse stays whole where possible)
- Locale-aware uppercase/lowercase via String.prototype.toLocale* methods

## Use cases

- Renaming a variable to match the host language's casing convention
- Converting an API field name to the casing your codebase expects
- Generating consistent slugs from titles for URLs
- Standardizing headings to Title Case before publishing

## How to use it

1. **Paste your text** — Paste any identifier or sentence.
2. **Read every variant** — All nine case variants appear in a labeled grid below the input.
3. **Copy the one you need** — Each variant has its own copy button.

## When to use it, and when to use something else

- **vs VS Code 'Change Case' extension** — use Case Converter when the text is in a browser, chat, or doc — not in an open editor file. Use VS Code 'Change Case' extension when the text is already in a file you are editing.

## Frequently asked questions

### How does the converter detect word boundaries?

It splits on whitespace, hyphens, and underscores; then it splits camelCase by inserting a boundary before any uppercase letter that follows a lowercase letter. Acronyms like 'HTTPResponse' are detected and kept whole where possible.

### Does it preserve numbers?

Yes. Digits are kept inline and treated as part of the adjacent word — 'user2faToken' becomes 'user2fa-token' in kebab-case, for example.

### What's the difference between Title Case and Sentence case?

Title Case capitalizes the first letter of every word ('How To Convert Cases'). Sentence case capitalizes only the first word and proper nouns ('How to convert cases').

## Related tools

- https://offlineutils.com/word-counter
- https://offlineutils.com/text-diff
- https://offlineutils.com/lorem-ipsum
