Number Extractor
Finds the numbers in a block of text and lists them, along with their count, sum, smallest and largest values. Use it to collect figures from a report, receipt or message, or to prepare a clean column of numbers for a spreadsheet.
How to use the Number Extractor
- Paste your text, then select Extract numbers.
- Choose the Number style: 1,234.56 (common in English) or 1.234,56 (common in much of Europe).
- Choose Plain numbers to output values without thousands separators, ready for a spreadsheet.
Rules applied
- Whole, decimal, negative (including the − sign) and scientific numbers such as 6.02e23 are found.
- The status line shows the count, sum, smallest and largest value.
Limitations
- Numbers inside words (COVID19, mp3) are ignored. Numbers written as words are not found.
- Extracted numbers keep every digit. The sum, smallest and largest values use standard double precision, so they are exact only up to about 15 significant digits.
Worked examples
Input
Paid $1,234.56 for 3 items; refund −20.5, rate 6.02e23, code A12.
Result
1,234.56 3 −20.5 6.02e23
Input
Preis: 1.234,56 € und 7,5 kg
Result
1234.56 7.5
Practical uses
-
Pulling amounts from an invoice email
An accounts assistant pastes a message that mentions several prices and extracts the numbers. The status line shows the count and the sum. The assistant uses the sum to cross-check the total on the invoice.
-
Preparing data for a spreadsheet
A student copies measurements from a report and wants them in a spreadsheet. They extract the numbers and choose plain numbers, which leaves out thousands separators. The values can then be pasted straight into a column.
-
Reading European-style figures
A researcher has text with amounts written in the European style, such as 1.234,56. They choose the comma style before extracting. The figures are read correctly instead of being split at the wrong separator.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.