Case Converter
Convert text between different case styles instantly. Adapt variable names, object keys, and identifiers to camelCase, PascalCase, snake_case, kebab-case, UPPER_CASE or lower case with one click.
How it works
What is a Case Converter?
A case converter is a tool that transforms text between different naming conventions used in programming and writing. It helps you quickly adapt variable names, object keys, database columns, CSS classes, or any identifier to the format required by your project or style guide. Common formats include camelCase (JavaScript), snake_case (Python, databases), kebab-case (URLs, CSS), PascalCase (class names), UPPER_CASE (constants), and lower case with spaces (readable text).
How to Use the Case Converter
Type or paste your text into the input area. The tool converts it immediately to all six formats. Each result has a copy button so you can copy the format you need. The tool detects the input format automatically when possible (e.g. if you paste snake_case, it shows "Detected format: snake_case"). Processing happens entirely in your browser—no data is sent to any server.
Supported Formats
- camelCase: first word lowercase, subsequent words capitalized (e.g. myVariableName)
- PascalCase: each word capitalized (e.g. MyVariableName)
- snake_case: words separated by underscores, lowercase (e.g. my_variable_name)
- kebab-case: words separated by hyphens, lowercase (e.g. my-variable-name)
- UPPER_CASE: words separated by underscores, uppercase (e.g. MY_VARIABLE_NAME)
- lower case: words separated by spaces, lowercase (e.g. my variable name)
Examples
Example 1: Variable Name
Input: user_account_id. Output: camelCase userAccountId, PascalCase UserAccountId, kebab-case user-account-id, UPPER_CASE USER_ACCOUNT_ID, lower case user account id.
Example 2: Class Name to Database Column
Input: OrderItemDetails. Output: snake_case order_item_details, kebab-case order-item-details. Useful when mapping between object-oriented code and database schemas.
Example 3: Multiline Input
Paste multiple identifiers (one per line). Each line is converted independently, so you can convert a list of variable names in one go.
Common Use Cases
- Developers: Convert between naming conventions when switching languages (e.g. Python snake_case to JavaScript camelCase)
- API Design: Ensure consistent key naming (JSON camelCase vs. database snake_case)
- CSS/HTML: Convert class names between BEM, utility-first, or custom conventions
- Documentation: Format identifiers for readability (lower case with spaces)
- Refactoring: Bulk convert identifiers when migrating codebases
Unicode and Special Characters
The converter supports Unicode, accented characters (e.g. ñ, é, ü), and special characters. Words are split by spaces, underscores, hyphens, and camelCase boundaries. Characters that do not have case variants (numbers, symbols) are preserved.
FAQ
Does it work with accented characters?
Yes. The tool uses Unicode-aware string methods, so characters like ñ, é, ö, and ü are handled correctly.
Can I convert multiple lines at once?
Yes. Each line is converted independently. Paste a list of identifiers and copy the format you need from each result.
How is the input format detected?
The tool uses heuristics: UPPER_CASE (all caps + underscores), snake_case (lowercase + underscores), kebab-case (lowercase + hyphens), lower case (lowercase + spaces), camelCase (starts lowercase, has capitals), PascalCase (starts uppercase, has capitals). Ambiguous input may show "Unknown".
Is my text sent to a server?
No. All conversion happens in your browser. Your text never leaves your device.
Can I add new formats?
The conversion logic is modular. Adding a new format would require code changes, but the architecture supports extension.