Case Converter

Paste a word, a phrase or a list of identifiers, one per line, and see it in every common naming convention at once: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case, Title Case and more. Words are split on spaces, punctuation and changes of case.

Naming conventions by language

ConventionExampleTypical use
camelCaseuserProfilePictureJavaScript, Java and C# variables and methods; JSON keys
PascalCaseUserProfilePictureClasses, types, React components, C# methods
snake_caseuser_profile_picturePython, Ruby, Rust variables; SQL columns
CONSTANT_CASEUSER_PROFILE_PICTUREConstants and environment variables
kebab-caseuser-profile-pictureURLs, CSS classes, file names, CLI flags
dot.caseuser.profile.pictureConfig keys, translation keys

Frequently asked questions

What is the difference between camelCase and PascalCase?

Both join words without spaces and capitalise each word, but camelCase starts with a lower-case letter (userName) and PascalCase starts with a capital (UserName). JavaScript uses camelCase for variables and functions and PascalCase for classes and React components.

When should I use snake_case or kebab-case?

snake_case is standard for Python variables and functions, Ruby, and most SQL column names. kebab-case is used for URLs, CSS class names, HTML attributes and file names, but cannot be used for variable names in most languages because the hyphen means minus.

How does the converter split words?

It splits on spaces, underscores, hyphens, dots and slashes, and on case changes inside a word, so "parseHTTPResponse" becomes parse, HTTP and Response. Acronyms stay together as one word.

Related tools