Case Converter

Case Converter

What Is a Case Converter?

A case converter rewrites text into a different "naming convention" - the casing and word-separator style programming languages, file systems, and style guides expect. Instead of manually retyping a variable name to match camelCase for JavaScript or snake_case for Python, this tool splits your input into individual words and rebuilds them in whichever format you need.

It works both ways: paste in text that's already in camelCase, snake_case, kebab-case, or plain sentences, and convert it to any of the other supported formats - the word-splitting logic recognizes spaces, hyphens, underscores, and capital-letter boundaries all at once.

Case Format Reference

FormatExampleCommon Use
camelCasehelloWorldExampleJavaScript/Java variable & function names
PascalCaseHelloWorldExampleClass & component names
snake_casehello_world_examplePython variables, database columns
kebab-casehello-world-exampleURL slugs, CSS class names, HTML attributes
CONSTANT_CASEHELLO_WORLD_EXAMPLEConstants, environment variables
Title CaseHello World ExampleHeadings, titles
Sentence caseHello world exampleRegular prose, UI copy

Why Use This Case Converter

Convert From Any FormatWorks whether your input is already camelCase, snake_case, kebab-case, or plain text - not just plain sentences.
Live As You TypeThe output updates instantly while you type, and keeps re-applying your last-picked case until you choose a different one.
9 Case FormatscamelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, lower case, UPPER CASE, and Sentence case.
100% Client-SideEvery conversion runs locally in your browser - nothing you type is ever uploaded to a server.

Frequently Asked Questions

Does this tool send my text to a server?

No. Every conversion runs locally in your browser using JavaScript - your text is never uploaded or sent to a server.

Can I convert FROM camelCase or snake_case, not just TO them?

Yes. The tool first splits your input into individual words by detecting spaces, hyphens, underscores, and camelCase/PascalCase boundaries, then rebuilds those words in whichever case you pick - so converting from any supported format to any other works both ways.

How does it handle acronyms like XML or HTTP inside a camelCase word?

The word splitter treats a run of capital letters followed by a capitalized word as two separate words - for example "XMLHttpRequest" splits into "XML", "Http", and "Request" - so acronyms don't get merged incorrectly with the word that follows them.

What's the difference between CONSTANT_CASE and snake_case?

Both join words with underscores, but CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uppercases every letter, while snake_case keeps every letter lowercase. CONSTANT_CASE is conventionally used for constants; snake_case for variables and file names.