Case Converter
Convert text between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case, and CONSTANT_CASE.
Convert text between UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, and kebab-case.
Select Case Mode:
How do I use Case Converter?
Paste or type your text, variable names, or article headlines into the Input Text editor, or click 'Load Sample Data'.
Select your target case mode (`UPPERCASE`, `lowercase`, `Title Case`, `Sentence case`, `camelCase`, `PascalCase`, `snake_case`, or `kebab-case`).
Review the instant conversion in the right panel and click 'Copy' to copy the result to your clipboard.
What features does Case Converter offer?
Support for 10+ casing styles (camelCase, snake_case, UPPERCASE, Title Case, etc.)
Live real-time text conversion as you type
1-click copy output to clipboard or download as file
100% private in-browser processing — zero data logged
Programming Identifier & Typography Naming Conventions
Word boundary detection splits input strings across spaces, underscores, hyphens, and camelCase transitions (`/[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g`) before joining tokens in the target convention.
| Case Mode | Token Separator | Capitalization Rule | Standard Ecosystem Usage |
|---|---|---|---|
| camelCase | None | Lowercase first word, capitalize subsequent | JavaScript/TypeScript variables & JSON keys |
| PascalCase | None | Capitalize first letter of every word | React components, TypeScript classes & interfaces |
| snake_case | Underscore (_) | All lowercase words | Python (PEP 8), PostgreSQL columns, Rust |
| kebab-case | Hyphen (-) | All lowercase words | URL slugs, CSS classes, HTML data-* attributes |
Frequently Asked Questions about Case Converter
How does the converter split existing `camelCase` or `snake_case` strings into words?
The tokenizer detects transitions from lowercase to uppercase (`userId` → `user` + `Id`), acronym boundaries (`parseXMLNode` → `parse` + `XML` + `Node`), underscores, hyphens, and whitespace before reassembling the tokens.
How are acronyms like `API`, `URL`, or `HTTP` handled when converting to `camelCase`?
Consecutive uppercase letters are normalized to title-cased words after the first token (`httpAPIRequest` → `httpApiRequest` in camelCase and `http_api_request` in snake_case) so round-trip conversions remain reversible.
Does `UPPERCASE` and `lowercase` conversion support accented Unicode characters (like Vietnamese or German)?
Yes. Case transformations use native ECMAScript Unicode-aware case mapping, preserving diacritics across Latin Extended characters (such as `Nguyễn` → `NGUYỄN`).
When should I use `kebab-case` instead of `snake_case` for URLs?
Google's Search Central URL structure guidelines explicitly recommend hyphens (`kebab-case`) over underscores (`snake_case`) because Google's tokenizer treats hyphens as word separators while treating underscores as word joiners.
Explore Related Text Tools
Lorem Ipsum
Generate placeholder text in paragraphs, sentences, or words for your designs and prototypes.
Smart Text Cleaner
Deduplicate lines, strip HTML tags, unescape entities, and sort text lists alphabetically in real time.
Markdown to HTML & Printable A4 PDF Converter
Convert GFM Markdown text into styled HTML markup or print formatted documents to A4 PDF with custom themes.
Word Counter
Count words, characters, sentences, and paragraphs in real time with estimated reading time.
Text Diff
Compare two texts side by side and see differences highlighted line by line, like a GitHub diff.
Markdown Preview
Write and preview GitHub Flavored Markdown in real-time with split, edit, and preview modes.