Text tools

Extract Numbers From Text

Extract Numbers From Text

Pull every number out of text, with decimals, negatives, thousands separators and percentages, plus sum and average.

About this tool

About Extract Numbers From Text

Pull the figures out of a bank statement, a receipt, an email, a report or a chat and add them up without retyping anything. Every number is found as it was written: whole numbers, decimals, negatives (including the typographic minus sign), numbers with thousands separators such as 1,25,000 or 12,500.75, scientific notation and percentages. Numbers that are part of words or codes are left out, so a product code like A4 or a version like v2 doesn't pollute the list. Turn off Remove duplicates to keep every occurrence, which is what you want when totalling, or keep it on to list distinct values. Sort orders them by value, not alphabetically. Under the list you get the sum, average, minimum and maximum instantly, formatted for your locale. Copy the numbers one per line to paste into a spreadsheet column, or comma-separated for a formula or a query. Everything runs in your browser, so financial text stays private.

Built and maintained by Abhi JainUpdated

How to Extract Numbers From Text

  1. 1

    Paste the text

    Paste a statement, receipt or report into the Text box.

  2. 2

    Choose duplicates

    Numbers is selected. Untick Remove duplicates to keep every occurrence for totals, and tick Sort to order by value.

  3. 3

    Copy or read the totals

    Read the Sum, Average, Min and Max, then Copy or Download the numbers.

Extract Numbers From Text: questions and answers

Are currency amounts included?

Yes, the number part is: ₹1,250.50 gives 1,250.50. Currency symbols are not part of the result, so mixed currencies are added together; check before totalling.

How are commas treated?

Commas between groups of digits are read as thousands separators (Indian 1,25,000 and Western 125,000 both work). Numbers using a comma as the decimal mark are not supported: 12,5 is read as 12 and the 5 after the comma is dropped.

Why is the sum different from my calculator?

Usually because duplicates were removed. Untick Remove duplicates to include every occurrence, then check the count.

Can I extract numbers from a PDF statement?

Get the text with PDF to TXT (or OCR PDF for scans), then paste it here.