About Extract Numbers
Paste a report, an e-mail or a block copied from a web page and get every number in it, one per line, ready to paste into a spreadsheet. Underneath you see how many there are, their sum and average, and the smallest and largest.
Tell the tool how your text writes numbers (1,234.5 or 1.234,5) and thousands separators are read as part of the number rather than splitting it. The arithmetic is exact, so 0.1 and 0.2 add up to 0.3, not 0.30000000000000004.
How it works
- Numbers are found with their sign, thousands separators, decimal part and an optional exponent (1.5e3). Each is listed in plain form: no grouping, a point for decimals.
- A minus sign counts only where it cannot be a hyphen, so COVID-19 gives 19 and 2020-2021 gives two years. A number glued to the end of a word (Q3, mp3) is skipped; one followed by a unit (12kg, 100%) is kept.
- The sum and average are worked out in exact decimal arithmetic. The average is rounded to ten decimal places.
- Removing repeats compares values, so 1.50 and 1.5 count as the same number; the first spelling is kept.
Questions
Why is 1,5 read as two numbers?
In the 1,234.5 style a comma only joins groups of exactly three digits. If your text uses a comma for decimals, choose the 1.234,5 style instead.
Does it read percentages, prices and units?
It reads the number and drops the symbol: 12.5% gives 12.5, €40 gives 40 and 3kg gives 3. Spaces used as thousands separators (1 234) are not joined, so they give two numbers.
Are numbers written in words or in other digit systems found?
No. Only the digits 0 to 9 are read. "Twelve" and Arabic-Indic or Devanagari digits are left out.
How much text can it take?
Up to 1 MB of text at a time, which can hold hundreds of thousands of numbers. Nothing leaves your browser.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.