Case Converter
Convert text between different cases: camelCase, snake_case, kebab-case, and more.
Input
Enter text to convert
Enter text above to see case conversions
About the Case Converter
Convert text between camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, and more - free and private, in your browser. Built for developers moving identifiers between languages and conventions.
Programming conventions use different letter cases for different things: camelCase for JavaScript variables, snake_case for Python and SQL, kebab-case for URLs and CSS, PascalCase for classes, and CONSTANT_CASE for environment variables. Moving text between these formats is constant friction when porting code or generating configs.
Paste any text and convert it to every case convention at once — UPPER, lower, Title Case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Handles spaces, hyphens, and underscores as word boundaries.
Use cases and examples
Convert a JSON field from snake_case to camelCase when an API contract meets JavaScript conventions.
Generate consistent constant names from human-readable labels in a config migration.
Prepare CSS class names in kebab-case from a design token list written in PascalCase.
How to use
- Paste your text or identifier into the input.
- Every case variant appears instantly.
- Click any result to copy it.
- Paste the correctly-cased version into your code.
Frequently Asked Questions
How are word boundaries detected in my input? ▾
Spaces, hyphens, underscores, and camelCase capitalization changes are all treated as word boundaries, so "user-profile-page" and "userProfilePage" convert to the same words.
How does the converter handle acronyms like userID? ▾
It tokenises identifiers into words first, keeping runs of capitals together — userID becomes user_id and back to userID, not the u_i_d mangling naive converters produce.
Which case style should my API use? ▾
JSON fields conventionally use snake_case or camelCase per your ecosystem (camelCase in JS, snake_case in Python); URLs and CSS use kebab-case. Consistency matters more than the choice.
Can I convert whole lists of field names at once? ▾
Yes — paste one identifier per line for bulk conversion, ideal for migrating API payloads or database columns between conventions. Processing is local.