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

CaseExampleTypically used for
camelCaseuserAccountIdVariables and functions in JavaScript, TypeScript, Java, C# and Go (unexported); JSON keys in many APIs.
PascalCaseUserAccountIdClass, type and component names in most languages; React components; exported names in Go; C# methods and properties.
snake_caseuser_account_idVariables and functions in Python, Ruby and Rust; database tables and columns; many REST APIs.
CONSTANT_CASEUSER_ACCOUNT_IDConstants and enum values; environment variables such as DATABASE_URL.
kebab-caseuser-account-idURLs and slugs, CSS classes, HTML attributes, file names, CLI flags (--dry-run), Kubernetes resource names.
Train-CaseUser-Account-IdHTTP header names such as Content-Type.
dot.caseuser.account.idConfig keys (Java .properties, Spring), logging namespaces, i18n keys.
path/caseuser/account/idFile paths, URL paths and package paths.
Title CaseUser Account IdHeadings, page titles and button labels.
Sentence caseUser account idUI 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.