Case Converter
How to Use
Type or paste text into the input field. The tool automatically detects word boundaries from camelCase, PascalCase, snake_case, kebab-case, or spaces, then displays all naming convention variants. Click the copy button next to any result.
Naming Conventions
Different programming languages and contexts use different naming conventions. JavaScript/TypeScript commonly use camelCase for variables and PascalCase for classes. Python prefers snake_case. CSS uses kebab-case. Constants often use UPPER_SNAKE_CASE. This tool converts between all major conventions, handling edge cases like acronyms (e.g., XMLParser).
Use Cases
- Cross-language porting: convert variable names when moving code between Python (snake_case) and JavaScript (camelCase)
- Database columns: transform SQL column names (user_name) to JSON API fields (userName) and vice versa
- CSS class naming: derive CSS class names (user-profile) from component names (UserProfile)
- API field mapping: create mapping tables when an external API uses a different naming convention than your codebase
Conventions by Language
- camelCase: JavaScript/TypeScript (variables, functions), Java (variables, methods), Swift (variables, functions)
- PascalCase: JavaScript/TypeScript (classes, React components), C# (methods, properties), Go (exported names)
- snake_case: Python (variables, functions, modules), Ruby (variables, methods), Rust (variables, functions), SQL (column names)
- kebab-case: CSS/SCSS (class names), HTML (attributes, custom elements), URL slugs, CLI flags
- UPPER_SNAKE_CASE: constants in nearly every language, environment variables (NODE_ENV, DATABASE_URL)
Privacy
All text conversion happens entirely in your browser. No data is sent to a server, stored, or logged. You can safely convert variable names or identifiers containing sensitive information.