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
| Format | Example | Common Use |
|---|---|---|
| camelCase | helloWorldExample | JavaScript/Java variable & function names |
| PascalCase | HelloWorldExample | Class & component names |
| snake_case | hello_world_example | Python variables, database columns |
| kebab-case | hello-world-example | URL slugs, CSS class names, HTML attributes |
| CONSTANT_CASE | HELLO_WORLD_EXAMPLE | Constants, environment variables |
| Title Case | Hello World Example | Headings, titles |
| Sentence case | Hello world example | Regular prose, UI copy |
Why Use This Case Converter
Frequently Asked Questions
No. Every conversion runs locally in your browser using JavaScript - your text is never uploaded or sent to a server.
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.
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.
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.