Case Converter
Type or paste any text or identifier and see it in every naming convention at once. Each line is converted separately, so you can rename a whole list of variables in one go.
Input
Naming conventions and where they are used
| Case | Example | Typically used for |
|---|---|---|
| camelCase | userAccountId | Variables and functions in JavaScript, TypeScript, Java, C# and Go (unexported); JSON keys in many APIs. |
| PascalCase | UserAccountId | Class, type and component names in most languages; React components; exported names in Go; C# methods and properties. |
| snake_case | user_account_id | Variables and functions in Python, Ruby and Rust; database tables and columns; many REST APIs. |
| CONSTANT_CASE | USER_ACCOUNT_ID | Constants and enum values; environment variables such as DATABASE_URL. |
| kebab-case | user-account-id | URLs and slugs, CSS classes, HTML attributes, file names, CLI flags (--dry-run), Kubernetes resource names. |
| Train-Case | User-Account-Id | HTTP header names such as Content-Type. |
| dot.case | user.account.id | Config keys (Java .properties, Spring), logging namespaces, i18n keys. |
| path/case | user/account/id | File paths, URL paths and package paths. |
| Title Case | User Account Id | Headings, page titles and button labels. |
| Sentence case | User account id | UI text, commit messages and documentation headings in many style guides. |
How words are detected
The converter first splits your text into words. It breaks on spaces, underscores, hyphens, dots and slashes, and on case changes inside a word: userAccount becomes user + account. Runs of capitals are treated as one acronym, so XMLHttpRequest becomes XML + Http + Request. Apostrophes are dropped (don't → dont), and letters with accents and other alphabets are kept as they are.
Numbers stay attached to the word before them by default (base64Encode → base64_encode). Tick Split numbers into words if you want them separated (base_64_encode).
Acronyms in camelCase and PascalCase
Style guides disagree on acronyms. Google's Java and JavaScript guides and Microsoft's .NET guidelines treat them as normal words (parseXmlData, userId). Go and many older Java APIs keep them in capitals (parseXMLData, userID). Pick whichever your codebase uses with the Keep acronyms option. In snake_case, kebab-case and similar styles every word is lowercased anyway.