Text Case Converter | Switch Text Between 10 Case Styles in One Click
Convert any text into UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more across 10 case styles with a single click. A character and word count sits beside the input, making it handy for tidying variable names, filenames and headings.
💡 About this tool
If you write code, you constantly hop between conventions: camelCase for JavaScript variables, snake_case for Python and config keys, kebab-case for CSS classes and URLs. Retyping underscores and hyphens by hand is error-prone, and a single stray character can break a reference and send you hunting for the cause.
This converter splits your phrase into words and rejoins them under the rules of the style you pick. It also understands identifiers that are already glued together: getUserName is split at its capital letters and can be rewritten as get_user_name or GET_USER_NAME. The reverse works too, so a delimited string like user-profile-card can be turned back into userProfileCard. It is not just for developers either: writers standardizing headings to Title Case and editors cleaning up inconsistent capitalization will find it just as useful.
🧐 Frequently Asked Questions
What is the difference between camelCase and PascalCase?
Both mark word boundaries with capital letters, but the first character differs. camelCase keeps the first letter lowercase (userName), while PascalCase (upper camel case) capitalizes it too (UserName).
Can I convert an existing snake_case string into kebab-case?
Yes. Underscores, hyphens and dots are all treated as word boundaries, so you can take my_variable_name, pick a new style, and get my-variable-name or myVariableName instantly.
How does Title Case handle small words like "of" or "the"? This tool uses a simple rule that capitalizes the first letter of every word, including short ones. If you follow a specific style guide that lowercases articles and prepositions, you may need to adjust a few words by hand afterward.
Is my text sent anywhere? No. Every conversion runs in your browser with JavaScript, and your input is never uploaded.
📚 Why each language prefers a different case style
These conventions are less about right and wrong and more about decades of community style guides. snake_case dominates Python, Ruby and database column names; kebab-case is common in URLs, CSS classes and HTML attributes. camelCase rules JavaScript and Java variables and methods, while PascalCase names classes and components. CONSTANT_CASE (all caps with underscores) is the customary form for environment variables and constants.
When you inherit a mixed codebase, the practical move is to spot which convention already dominates, then convert mechanically so your diffs stay small and readable rather than mixing styles line by line.