Transform text between different case styles - UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.
As a developer, I constantly switch between different naming conventions depending on what I'm working on. JavaScript variables use camelCase, Python prefers snake_case, CSS classes often use kebab-case, and constants are SCREAMING_SNAKE_CASE. I got tired of manually retyping text in different formats, so I built this tool to handle all the common cases (pun intended) instantly.
Each case style has its place in software development. Here's a quick breakdown of when to use each one, based on my experience across different projects and languages.
This tool works great alongside the JSON Formatter when cleaning up API responses, and the Regex Tester when building patterns for case-insensitive matching.
camelCase is probably the naming convention I use most often. The first word is lowercase, and every following word starts with a capital letter - like myVariableName or getUserById. It's the standard in JavaScript, TypeScript, and Java for variables and function names. Most style guides will enforce it, so it's worth getting comfortable with.
Both keep everything lowercase and separate words, but snake_case uses underscores while kebab-case uses hyphens. I use snake_case in Python code and database columns, and kebab-case for CSS classes and URLs. The main reason for kebab-case in URLs is that hyphens are treated as word separators by search engines, which is better for SEO.
PascalCase is like camelCase but with the first letter also capitalized - MyClassName instead of myClassName. I use it exclusively for class names, TypeScript types and interfaces, and React component names. It helps visually distinguish types and classes from regular variables.
CONSTANT_CASE is all uppercase with underscores between words, like MAX_RETRY_COUNT or API_BASE_URL. I use it for values that should never change - true constants. Most languages don't actually enforce immutability with this naming, but it's a strong signal to other developers that this value shouldn't be modified.