• Free forever
  • No sign-up
  • Private — runs in your browser

camelCase Converter

Turn phrases into camelCase variable names — or PascalCase, snake_case, kebab-case and CONSTANT_CASE. Converts each line separately.

Text
Code

Programming case styles

StyleExampleTypical use
camelCaseuserProfileImageUrlJavaScript, Java and C# variables and functions
PascalCaseUserProfileImageUrlClasses, types, React components
snake_caseuser_profile_image_urlPython, Ruby, database columns
kebab-caseuser-profile-image-urlURLs, CSS classes, file names
CONSTANT_CASEMAX_RETRY_COUNTConstants and environment variables

Converting between styles

The converter first splits text into words — at spaces, punctuation, underscores, hyphens and existing camelCase boundaries — so userID, user_id and “user id” all convert cleanly. Each line is converted separately, so you can paste a whole list of names.

Acronyms

Style guides differ on acronyms: Google's Java style writes XmlHttpRequest, while many codebases keep XMLHttpRequest. The converter treats acronyms as normal words (Url, Id), which most modern guides recommend for readability.

Related

← Back to the full Case Converter