Boneyard Tools

Extract Numbers From Text

Paste any text and instantly pull out every number inside it. It handles integers, decimals, negatives and comma grouped thousands, and shows the running total of everything it finds.

How to extract numbers

  1. Paste text, a list or a report that contains numbers.
  2. Choose whether to allow decimals, commas and negatives.
  3. Copy the list of numbers and read the total sum.

Examples

Pull numbers from a sentence

I have 3 cats, -2.5 kg, 1,000 items
3
-2.5
1000

Frequently asked questions

Which number formats are detected?

Whole numbers, decimals such as 2.5, negative numbers such as -7 and comma grouped numbers such as 1,000 or 1,234,567. Each option can be turned off.

What is the sum?

The sum is the total of every number found, computed after commas are removed and signs applied, so a mix of positives and negatives adds up correctly.

Will it pull a number out of a word like abc123?

No. A number glued to letters, such as abc123 or 12px, is skipped so you only get standalone numbers.

How are version strings like 1.2.3 handled?

Only the leading number is taken, here 1.2, and the trailing part is ignored, so version strings do not create false matches.

Is my text private?

Yes. Everything runs in your browser and nothing is uploaded.

Related tools