Extract Numbers from Text
Pull every number out of a block of text, with instant count, sum, minimum, maximum and average.
- Count
- 0
- Sum
- 0
- Minimum
- —
- Maximum
- —
- Average
- —
Paste some text above to pull the numbers out of it.
How it works
Paste any text — an invoice, a log file, a spreadsheet column, a paragraph of notes — and
this tool scans it for every number and lists them on their own. It understands decimals
(3.50), negative values (-5) and thousands separators
(1,234,567.89 becomes 1234567.89), and it can keep only whole
numbers, only decimals, drop duplicates, or sort the results from lowest to highest.
Alongside the extracted list you get the count, sum, minimum, maximum and average, so you
can total a column of figures without opening a spreadsheet. Copy the numbers to your
clipboard or download them as a plain .txt file. Everything runs in your
browser with plain JavaScript — no upload, no server, no ads — so pasting confidential
invoices or logs is safe.
Frequently asked questions
How do I extract numbers from text?
Paste your text into the box above and the numbers appear in the output field straight away — there is no button to press. You can then keep only whole numbers or only decimals, remove duplicates, sort the results, and copy or download the list as a .txt file.
Does it handle decimals, negative numbers and thousands separators?
Yes. Decimals like 3.50 stay intact, a leading minus sign is preserved while "Keep minus signs" is on, and comma thousands separators are joined so 1,234,567.89 comes out as 1234567.89. Turn that option off if you would rather read 1,234 as two separate numbers.
Can it add up the numbers it finds?
It does that automatically. Under the output box you get the count, sum, minimum, maximum and average of every number extracted, so you can total a column of figures without opening a spreadsheet.