String Case Converter

Paste any identifier or phrase — see every case format at once. camelCase, snake_case, kebab-case, PascalCase and more.

camelCase
—
PascalCase
—
snake_case
—
SCREAMING_SNAKE_CASE
—
kebab-case
—
Train-Case
—
dot.case
—
path/case
—
CONSTANT_CASE
—
Title Case
—
Sentence case
—
lower case
—
UPPER CASE
—

The String Case Converter instantly rewrites any identifier or phrase into every common programming case — camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, dot.case and Title Case — from a single input. Paste an API field name, variable, or database column and copy it in the exact format your language or style guide expects.

  • ✓Detects word boundaries from any input format automatically
  • ✓Handles acronyms like URL and ID correctly
  • ✓One-click copy for all 13 case styles
  • ✓100% private — runs entirely in your browser

Case Formats Explained

CaseExampleCommon Use
camelCaseuserProfileImageJS/TS variables, JSON keys
PascalCaseUserProfileImageClasses, React components, types
snake_caseuser_profile_imagePython, Ruby, SQL columns
SCREAMING_SNAKE_CASEUSER_PROFILE_IMAGEConstants, env variables
kebab-caseuser-profile-imageURLs, CSS classes, file names
dot.caseuser.profile.imageConfig keys, namespaces
Title CaseUser Profile ImageHeadings, labels

How Word Detection Works

The converter splits your input into words no matter how it's written — it recognizes camelCase/PascalCase boundaries, underscores, hyphens, dots, slashes and spaces. Those words are then re-joined in every target case, so you can paste an API field name in one format and copy it in any other.

Where Case Conversion Comes Up

  • ▸Crossing a language boundary — Convert a JavaScript API's camelCase field names to the snake_case a Python or Ruby backend expects, or vice versa.
  • ▸Renaming a database column or API field — Check what a field looks like in every convention before deciding on a name that reads well as a variable, a column and a URL segment.
  • ▸Writing environment variables — Turn a config key like apiTimeout into the SCREAMING_SNAKE_CASE convention expected in a .env file or CI secret.
  • ▸Generating CSS class names — Convert a component or variable name into kebab-case for a class name or file name that follows web conventions.

Frequently Asked Questions

Paste your camelCase text into the input. The snake_case card updates instantly — click Copy to grab it. Word boundaries are detected automatically from the capital letters.

Yes. Consecutive capitals such as 'URL' in 'imageURL' are treated as a single word group, so you get image_url rather than image_u_r_l.

No. All conversion happens locally in your browser using JavaScript. Nothing is sent to a server.

They use the same underscore separator, but CONSTANT_CASE (a.k.a. SCREAMING_SNAKE_CASE) is fully uppercase and is conventionally used for constants and environment variables.

Related Tools