Number Extractor

Pull every number out of a block of text, with an optional running total, average and ability to strip thousands separators.

5Numbers found
89,741.75Sum
17,948.35Average
88,213Largest

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Number Extractor does

The number extractor on this page will pull every number out of a block of text, with an optional running total, average and ability to strip thousands separators. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for totalling figures scattered through an email or invoice. For a second version of this number extractor, see FreeToolsWorld.org.

How to use it

  1. Paste the text containing numbers.
  2. Thousands separators are stripped automatically, so 1,250.00 becomes 1250.00.
  3. The sum, average and largest value appear above.
  4. Copy the extracted list.

How it works

Numbers are matched including an optional leading minus sign, embedded commas as thousands separators, and a decimal part. Commas are removed from the output so the values can be pasted straight into a spreadsheet or a calculation.

The running total and average are calculated over everything found, which includes figures you may not want in the sum — invoice numbers, dates, reference codes. Check the extracted list before trusting the total.

When to use it

  • Totalling figures scattered through an email or invoice.
  • Pulling measurements out of a specification paragraph.
  • Preparing a column of numbers for a spreadsheet.

Common mistakes to avoid

  • Trusting the automatic sum when the text contains reference numbers, years or page numbers that are not part of the total.
  • Using it on text with European decimal commas, where 1,5 means one and a half rather than fifteen.

Frequently asked questions

Does it handle negative numbers?

Yes, a leading minus sign is included. A hyphen used as a dash between words is not treated as a minus.

What about numbers written as words?

Only digits are matched. "Twenty-five" is not detected, because reliably parsing number words across languages and formats is a much larger problem than it appears.

Related tools

See all text & writing tools →