Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and more. Free online case converter.
Output will appear here...
What is Case Converter?
A case converter transforms text between different naming conventions used in programming, URLs, and documentation. Common formats include camelCase (JavaScript variables), snake_case (Python, databases), kebab-case (URLs, CSS), PascalCase (classes, components), and CONSTANT_CASE (environment variables). Programmers frequently switch between these formats when working across languages or frameworks.
How to Use
- Paste or type your text in the input field
- The tool detects the current format automatically
- Results for all case formats appear instantly below the input
- Click Copy next to any format to copy it to your clipboard
Examples
camelCase to snake_case
Sentence to kebab-case
Related Tools
Slug Generator
Convert any text to a URL-friendly slug. Free online slug generator with options for separator and transliteration.
Regex Tester
Test regular expressions online with real-time matching and group extraction. Free regex tester with flags support.
Word Counter
Count words, characters, sentences, paragraphs, and estimate reading time instantly. Free online word counter with real-time stats.
Text Sorter & Reverser
Sort lines alphabetically, by length, reverse order, or shuffle randomly. Free online text sorter with multiple sorting modes.
Frequently Asked Questions
Which case format should I use?
It depends on the language and context. JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case. URLs and CSS classes use kebab-case. Environment variables use CONSTANT_CASE. Follow your project's style guide for consistency.
How does it detect the input format?
The tool looks for patterns: underscores indicate snake_case, hyphens indicate kebab-case, mixed capitalization without separators indicates camelCase or PascalCase, and all caps with underscores indicates CONSTANT_CASE.
Can it handle acronyms and numbers?
Yes. Abbreviations like 'XMLParser' and numbers like 'version2Update' are handled correctly. 'XMLParser' converts to 'xml_parser' in snake_case and 'xml-parser' in kebab-case.