Case Converter
Convert text between common letter-casing styles.
Why convert between letter casing styles?
Different programming languages and style guides expect different casing conventions:
JavaScript variables are typically camelCase, PHP/Python classes are often
PascalCase, database columns and environment variables commonly use
snake_case or CONSTANT_CASE, and URL slugs use kebab-case.
This tool converts freely between all of them so you don't have to retype text by hand.
How to use this tool
Type or paste your text, then click the casing style you want: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or CONSTANT_CASE. The result appears instantly and can be copied with the clipboard icon.
Common use cases
- Converting a spreadsheet column of Title Case names into snake_case for a database schema.
- Turning a design mockup's labels into camelCase variable names for your codebase.
- Renaming a batch of API fields between snake_case and camelCase conventions.
- Producing CONSTANT_CASE names for environment variables or config constants.
Frequently asked questions
How does this tool detect word boundaries in camelCase or PascalCase input?
It splits on spaces, hyphens, and underscores, and also inserts a boundary wherever a lowercase letter is immediately followed by an uppercase letter, which is how it correctly splits input like myVariableName into separate words before converting.
What's the difference between snake_case and kebab-case?
Both lowercase every word and separate them, but snake_case uses underscores (common in Python and database column names) while kebab-case uses hyphens (common in URLs and CSS class names).
Does this handle numbers and punctuation correctly?
Numbers are kept as part of the surrounding word. Punctuation other than the separators mentioned above is preserved as-is; this tool changes casing and word separators, not the underlying characters.