Convert between camelCase, PascalCase, snake_case, kebab-case and more
A code case converter rewrites an identifier between the naming styles programmers use: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and more. These are not interchangeable — each language and context has conventions, and using the wrong one stands out or even breaks things: JavaScript variables are camelCase, classes are PascalCase, Python uses snake_case, CSS and URLs use kebab-case, and environment variables are CONSTANT_CASE. Converting by hand means retyping and is easy to get subtly wrong on multi-word names.
The tool works by splitting the identifier into its component words — detecting boundaries whether they are marked by capital letters, underscores, hyphens or spaces — and then re-joining them in the target style. That word-splitting is the tricky part it handles for you, so "getUserID" or "user-profile-url" is broken into the right pieces and rebuilt cleanly in any case you need. It runs entirely in your browser, making it quick to convert a variable name, a whole list of fields, or a label copied from a design.
Both join words by capitalising each one, but camelCase starts lowercase (userName) while PascalCase capitalises the first letter too (UserName). By convention camelCase is used for variables and functions, and PascalCase for classes, types and components.
snake_case (user_name) is common in Python, Ruby, databases and constants, while kebab-case (user-name) suits CSS classes, URLs and file names where underscores are awkward or hyphens are conventional. The right choice depends on the language or context.
It detects word boundaries from existing separators — capital letters, underscores, hyphens or spaces — so it can break apart names from any starting style. Acronyms like "ID" or "URL" can be ambiguous, so review names with consecutive capitals if the split matters.
Yes. Because it processes text, you can paste many identifiers and convert them together to a single consistent style, which is far faster and less error-prone than renaming each one by hand.
Uppercase / Lowercase · Word Counter · Character Counter · Lorem Ipsum Generator · Remove Extra Spaces · Sort Text Lines