Case Converter

Change text to UPPER, lower, Title or Sentence case, or to camelCase, snake_case and kebab-case.

Runs in your browser. Nothing is uploaded.

Updated

Your textProcessed in your browser
Your text stays on this device. No upload required.

How to use Case Converter

  1. Type or paste the text.
  2. Pick the case; the result updates at once.
  3. Copy or download it.

Case Converter at a glance

Typical use: Fix a heading typed in capitals, or turn column names into snake_case.

Runs in your browser; nothing is uploaded. Programming cases work line by line and follow lodash, the usual JavaScript library.

When to use Case Converter

Fix text typed with Caps Lock on, give headings consistent Title Case, turn a shouted paragraph into normal sentences, or rename columns and variables to camelCase or snake_case for code and spreadsheets.

The cases

  • Sentence case: a capital at the start of each sentence and line; “I” stays capital. Names lose their capitals, so check them after.
  • Title Case: capitals for each word except short words such as of, the, and, in, to and a (unless they come first or last). Words like iPhone and NASA are kept.
  • Capitalize Each Word: a capital for every word, small ones too.
  • camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case: for code. Each line becomes one name: spaces and punctuation go, accents are removed (café → cafe), and capital letters inside words start a new word (XMLHttpRequest → xml_http_request).

Case Converter example

the lord of the rings   → Title Case → The Lord of the Rings
First Name              → snake_case → first_name
user id                 → camelCase  → userId
WHERE IS IT? HERE.      → Sentence   → Where is it? Here.

Prefer the terminal?

Upper and lower case on the command line:

tr '[:lower:]' '[:upper:]' < in.txt     # UPPER CASE
python3 -c "import sys; print(sys.stdin.read().title())" < in.txt

tr handles only one-byte characters in many setups, and Python’s title() capitalizes every word, including “of” and “the”. This page’s Title Case follows the usual style rules.

Frequently asked questions

How do I change capital letters to lower case?

Paste the text and choose lower case, or Sentence case to keep a capital at the start of each sentence. Copy the result with the button below it.

Does it work with other languages?

UPPER, lower, Title and Sentence case work with any language that has capital letters, such as French, German, Russian or Greek (ß becomes SS). Languages without capitals, such as Urdu or Chinese, stay as they are.

Which words stay small in Title Case?

Articles, short conjunctions and short prepositions: a, an, the, and, but, or, nor, for, of, in, on, at, to, by, up, as, via, vs, from, into, onto, with, over. They are capitalized when they start or end the title or follow a colon.

How are camelCase and snake_case made?

With the same rules as lodash, the most used JavaScript library for this, so results match what your code would produce. Each line is converted on its own.