Case Converter

Paste text into this case converter and get it in twelve styles at once, from UPPER CASE and Title Case to camelCase and snake_case. It also counts characters, words, and lines.

Updated
Runs in your browser. Your text is not uploaded.

UPPER CASE
–
lower case
–
Title Case (AP style)
–
Sentence case
–
camelCase
–
PascalCase
–
snake_case
–
kebab-case
–
CONSTANT_CASE
–
dot.case
–
aLtErNaTiNg cAsE
–
iNVERSE cASE
–

How to use the Case Converter

  1. Type or paste your text into Text.
  2. Every case updates as you type.
  3. Press the copy button next to the style you want.

How it works

For the programming cases, the text is first split into words at spaces, punctuation, and changes of case. "HTMLParser" becomes "HTML" and "Parser", and "userId2" becomes "user", "Id2". The words are then joined with the style's separator: nothing for camelCase, "_" for snake_case, "-" for kebab-case.

Title Case follows AP style: every word starts with a capital, except articles, short conjunctions, and prepositions of three letters or fewer (a, and, of, the, to...), unless they are the first or last word.

Examples

  • "the lord of the rings" → Title Case: The Lord of the Rings.
  • "user id" → camelCase: userId; CONSTANT_CASE: USER_ID.
  • "HTMLParser" → snake_case: html_parser.
  • "Hello" → iNVERSE: hELLO.

Where each case is used

CaseExampleCommon use
camelCaseorderTotalJavaScript and Java variables
PascalCaseOrderTotalClass and component names
snake_caseorder_totalPython, Ruby, database columns
kebab-caseorder-totalURLs, CSS classes, file names
CONSTANT_CASEORDER_TOTALConstants and environment variables
dot.caseorder.totalConfig keys and translation keys
Title CaseOrder TotalHeadlines and titles
Sentence caseOrder totalButtons, labels, and body text

Title Case or Sentence case?

Headlines in many US publications use Title Case. Most modern interfaces and style guides, including Google's and Microsoft's, prefer Sentence case for headings and buttons because it is easier to read. Whichever you choose, use it consistently.

Limitations

  • Title Case can't know proper nouns inside a sentence, so check names after Sentence case.
  • Acronyms are kept in Title Case when the input has mixed case; all-caps input is lowered first.

Frequently asked questions

What is the difference between camelCase and PascalCase?

camelCase starts with a lower-case letter (orderTotal); PascalCase starts with a capital (OrderTotal).

Which words stay lower case in Title Case?

In AP style: a, an, the, and, but, or, nor, for, so, yet, and prepositions of three letters or fewer, unless they start or end the title.

Does it work with accented letters?

Yes. Upper and lower case use the Unicode rules, so é becomes É and ß becomes SS.

Often used together with the Case Converter.