Case Converter

Type or paste once and see every style side by side, each with its own Copy button. Text styles act on the whole text, code styles treat each line as a name, and the result of any style can become the new input in one click.

Runs in your browser Everyday utilities

Text styles

UPPER CASE

 

lower case

 

Title Case

 

Sentence case

 

Capitalize Each Word

 

aLtErNaTiNg cAsE

 

iNVERTED cASE

 

Code styles — one name per line

camelCase

 

PascalCase

 

snake_case

 

CONSTANT_CASE

 

kebab-case

 

Train-Case

 

dot.case

 

path/case

 

Width

Full-width (全角)

 

Half-width (半角)

 

Title Case keeps short words such as a, of and the in lower case unless they start or end the title or follow a colon.

Code styles split on spaces, punctuation and existing camelCase, and treat each line as its own name.

Full-width turns ASCII letters, digits and punctuation into the wide forms used in Chinese, Japanese and Korean typesetting; half-width reverses it.

Upper and lower case follow Unicode rules, so ß becomes SS in upper case and Greek and accented letters convert correctly.

Everything is converted in this tab; your text is not sent or saved.

How to use

  1. Type or paste text into the box, or press Load sample to see a sentence and two code names converted.
  2. Look through the three groups: text styles such as Title Case and Sentence case, code styles such as camelCase and snake_case, and full-width or half-width forms.
  3. Tick Keep ALL-CAPS words if acronyms like NASA should survive Title and Sentence case.
  4. Press Copy on the style you want, or Use as input to chain another conversion, for example from camelCase straight to snake_case.

Frequently asked questions

How does Title Case decide which words stay lower case?

Short words such as a, an, the, of, in, to and or stay in lower case unless they are the first or last word or follow a colon or a sentence end. Everything else gets a capital first letter. Style guides differ on the details, so check the result against the one you must follow.

How are code names split into words?

On spaces, punctuation and existing camelCase boundaries, and runs of capitals are handled sensibly, so HTTPServerError becomes http_server_error. Each line is its own name, so you can paste a whole list of field names and convert them together.

What are full-width and half-width forms for?

Chinese, Japanese and Korean typesetting uses wide versions of Latin letters, digits and punctuation, such as ABC123. Full-width converts ASCII to those forms, including the space, and half-width converts them back, which is handy for cleaning data copied from such documents.

Related tools