What it does
The Case Converter rewrites text in every common naming style at once: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case, path/case, Title Case, Sentence case, upper, lower, inverse and alternating case. It is handy for variable names, database columns, URLs, CSS classes and headings.
How to use it
- Type or paste text into Input. Each line is converted separately, so you can convert a whole list at once.
- Copy the style you need from Results.
Example
Input: user account ID
| Style | Result |
|---|---|
| camelCase | userAccountId |
| PascalCase | UserAccountId |
| snake_case | user_account_id |
| CONSTANT_CASE | USER_ACCOUNT_ID |
| kebab-case | user-account-id |
| Title Case | User Account Id |
Good to know
- Word boundaries are found from spaces, punctuation and changes of case, so
userAccountID,user-account-idandUser Account IDall give the same results. - Acronyms become normal words (
ID→Id) in camelCase and PascalCase, following most style guides. - Title Case capitalises every word. Publishing styles that keep short words such as "and" or "of" in lower case need a final manual check.
FAQ
Which case should I use for…? Common conventions: camelCase for JavaScript and Java variables, PascalCase for classes and C# members, snake_case for Python and database columns, kebab-case for URLs and CSS classes, CONSTANT_CASE for constants and environment variables.
Does it work with accented letters? Yes, letters from any alphabet are kept.