Case Converter
Your data never leaves your browserConvert any text to camelCase, PascalCase, snake_case, kebab-case, and 5 more formats. All results at once.
Share this tool
Found it useful? Help a fellow developer discover it.
How to convert text to camelCase, snake_case, and kebab-case
Every programming language and ecosystem has preferred naming conventions, and mixing them causes friction. JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case throughout. CSS uses kebab-case for class names. Configuration files often use dot.case. Constants across nearly every language use SCREAMING_SNAKE_CASE. When you work across multiple languages, frameworks, or toolchains in a single day, you constantly need to translate names between formats. This converter tokenizes any input correctly, regardless of the source format. Paste a Python variable, a CSS class, a camelCase JavaScript name, or a plain English phrase, and get all nine formats at once. Each result can be copied individually with one click. There is no submit button because results update live as you type, making it fast enough to use mid-thought while writing code.
Frequently Asked Questions
What is camelCase and when is it used?
camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word, with no separators. It is the standard naming convention for variables and functions in JavaScript, TypeScript, Java, and many other languages.
What is the difference between snake_case and SCREAMING_SNAKE_CASE?
Both use underscores as word separators. snake_case uses all lowercase letters and is common in Python variables and file names. SCREAMING_SNAKE_CASE uses all uppercase letters and is the convention for constants in most languages.
When should I use kebab-case?
kebab-case uses hyphens as separators and all lowercase letters. It is the standard format for URLs, HTML attributes, CSS class names, and file names in web projects. It reads cleanly in URLs because hyphens are treated as word boundaries by search engines.
How does the converter handle acronyms and numbers?
Acronyms like "API" or "URL" are treated as single words during tokenization. Numbers are kept as part of the adjacent word token. For example, "myAPI2Key" converts to "my_api_2_key" in snake_case.
What is dot.case used for?
dot.case uses periods as word separators. It appears in configuration file keys (e.g. app.server.port), Java package names, and some logging frameworks. It is less common than the other cases but useful in config-heavy contexts.
Related Tools
Regex Tester
Test and debug regular expressions with real-time match highlighting.
Unicode Lookup
Look up Unicode code points, HTML entities, hex values, and UTF-8 bytes for any character or text. Supports emoji.
Word Counter
Real-time words, characters, sentences, paragraphs, reading time, and keyword density analysis.
Text / Code Diff
Compare two text blocks and highlight line-by-line differences.