Extract every number from text, with sum, min, max and average

Paste any text and the tool lists every number in it, one per line, and shows how many it found with their sum, smallest, largest and average.

Live demo · real result from this tool
Numbers found5
Sum
1,252,036.5
Smallest
-4
Largest
1,250,000
Average
250,407.3

One per line

12.5 1,250,000 2025 3 -4

Processed on your device — nothing is uploaded.

How to use the number extractor

  1. Paste your text into Your text. Reports, invoices, chat logs and web page copy all work.
  2. Keep Read 1,250,000 as one number ticked if the text uses commas as thousands separators. Untick it when commas separate values, as in “100,200,300”.
  3. Tick Remove duplicates if each value should appear only once.
  4. Read the stats (Numbers found, Sum, Smallest, Largest, Average) and copy the list under One per line.

What it does and when to use it

Numbers buried in prose are hard to work with. This tool pulls them out so you can paste them into a spreadsheet, check a total, or spot the highest and lowest value without reading every line.

Good uses:

  • Totalling amounts quoted in an email or a meeting note.
  • Collecting measurements from lab notes or a product description.
  • Pulling order or ticket numbers out of a log.

For other things hidden in text, the email extractor and URL extractor work the same way. To delete the numbers instead of collecting them, use remove numbers.

How it works

The tool scans the text with a pattern that matches:

  • whole numbers and decimals with a dot, such as 3 and 12.5;
  • a leading minus sign, but only when no letter or digit is right before it;
  • with the thousands option on, groups such as 1,250,000, where every group after the first has exactly three digits.

Symbols such as $, % and °C are ignored, so $1,250,000 gives 1,250,000. Digits joined to letters are still found, so “A12” gives 12. For the stats, commas are removed and each value is read as a number. The list keeps the numbers as they were written. Everything happens in your browser.

Worked examples

These outputs come from the tool’s own function.

A business sentence. “Revenue rose 12.5% to $1,250,000 in 2025, with 3 new offices and -4 °C winters.” gives five numbers: 12.5, 1,250,000, 2025, 3 and -4. The tool reports Sum: 1,252,036.5, smallest -4, largest 1,250,000 and an average of 250,407.3.

Duplicates removed. “Rooms 101, 102, 101 and 205” with Remove duplicates ticked gives 101, 102, 205, with a sum of 408.

Dates. “Dates: 2024-01-05, temp -3” gives 2024, 01, 05 and -3. The hyphens inside the date are not read as minus signs, but -3 after a space is.

Limits and tips

  • Leading zeros stay in the list (01), but count as 1 in the sum.
  • Fractions like 3/4 come out as 3 and 4.
  • Scientific notation such as 1e6 is read as 1 and 6.

Frequently asked questions

How do I add up all the numbers in a paragraph?
Paste the text and read the Sum figure above the list. In "12.5% to $1,250,000 in 2025, with 3 offices and -4 °C" the sum is 1,252,036.5.
Why is 1,250,000 shown as three numbers?
The option "Read 1,250,000 as one number" is probably off. With it off, commas always separate numbers, so 1,250,000 becomes 1, 250 and 000. Turn it on for amounts written with thousands separators.
Does it handle numbers written the European way, like 1.234,56?
No. A dot is always read as the decimal point and a comma as a thousands separator or a list comma, so 1.234,56 comes out as 1.234 and 56. Change the format first with find and replace.
Is the minus sign in a date or phone number read as negative?
No. A hyphen counts as a minus sign only when no letter or digit comes right before it. In 2024-01-05 you get 2024, 01 and 05, and 555-0199 gives 555 and 0199.
Can it read numbers written as words?
Not this tool. Use words to number for text like "forty-two" or "2.5 million".

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close