Developer & PM Utility
Convert any text between camelCase, PascalCase, snake_case, kebab-case, and more — all at once.
| Case | Result | |
|---|---|---|
| camelCase | ||
| PascalCase | ||
| snake_case | ||
| kebab-case | ||
| CONSTANT_CASE | ||
| Title Case | ||
| Sentence case | ||
| lowercase | ||
| UPPERCASE |
Every language and style guide seems to prefer a different naming convention — JavaScript variables
use camelCase, Python and database columns often use snake_case, CSS classes and URL slugs use
kebab-case, and constants use CONSTANT_CASE. This tool converts freely between all of them, and also
handles already-mixed input (like some-Variable_name Here) by intelligently splitting on
case boundaries, hyphens, underscores, and spaces.
.env file.| Context | Convention |
|---|---|
| JavaScript/TypeScript variables, functions | camelCase |
| JavaScript/TypeScript classes, components | PascalCase |
| Python/Ruby variables, functions | snake_case |
| Database columns and table names | snake_case |
| URLs, slugs, CSS classes | kebab-case |
| Constants, environment variables | CONSTANT_CASE |
For the reasoning behind each of these and the trickier edge cases (like acronyms), see our practical guide to naming conventions.
XMLHttp splits into XML and Http), which is how most real-world case converters handle acronyms.userName), PascalCase starts uppercase (UserName). Most languages that use camelCase for variables use PascalCase specifically for class and type names, which creates a useful visual distinction between the two.