Case Converter
Convert text between camelCase, snake_case, PascalCase, kebab-case, and CONSTANT_CASE instantly.
How to use
- 1 Paste or type your text into the input area.
- 2 Click any conversion tab: camelCase, PascalCase, snake_case, kebab-case, or CONSTANT_CASE.
- 3 The converted output appears instantly in the result area.
- 4 Click Copy to grab the converted text.
Key features
- Supports 8+ formats: UPPER, lower, Title, camelCase, PascalCase, snake_case, kebab-case, and more
- One click per conversion — no form submission
- Handles accented characters and multi-word strings correctly
- Instantly copies the result to your clipboard
What is Text Case Conversion?
Text case conversion transforms the casing style of words and phrases. Different programming languages, frameworks, and data formats have their own naming conventions — and switching between them by hand is tedious and error-prone.
A case converter automatically parses your input (regardless of how it's currently formatted), splits it into individual words, and recombines them using the selected casing convention. This ensures consistent, accurate results every time.
Common Use Cases
Codebase consistency
Convert between naming conventions when migrating code between languages or enforcing a project style guide.
Data normalization
Standardize user-generated input like product names or tags into a consistent case format before storing in a database.
File and package naming
Generate npm package names (kebab-case), environment variable keys (CONSTANT_CASE), or class names (PascalCase) from any input.
Schema and migrations
Convert API response keys (camelCase from JSON) to database column names (snake_case) and vice versa.
URL slug generation
Transform article titles or product names into URL-friendly kebab-case slugs for clean, SEO-optimized URLs.
CLI and config files
Normalize command names, environment variables, and configuration keys to match the conventions expected by different tools.
Case Types Reference
The five standard casing conventions and when to use them.
| Convention | Example | Commonly Used In |
|---|---|---|
| camelCase | getUserName | JavaScript, Java, C# variables and functions |
| PascalCase | GetUserName | C# classes, TypeScript types, React components |
| snake_case | get_user_name | Python, Ruby, PHP variables; database column names |
| kebab-case | get-user-name | URLs, HTML class names, CSS IDs, npm packages |
| CONSTANT_CASE | GET_USER_NAME | Environment variables, config constants, enum values |