About the Number Extractor tool
Numbers buried in text are hard to work with. An invoice email lists amounts between sentences, a report mixes percentages with prose, a log file hides response times among messages. Before you can add them up or paste them into a spreadsheet, you need them on their own.
This extractor finds every number in your text and lists it, one per line by default. It understands decimals, negative numbers written with a hyphen or a true minus sign, and thousand separators, and you tell it which convention your text uses: 1,234.56 as in the US and UK, 1.234,56 as in much of Europe and South America, 1 234,56 with spaces, or no separators at all. A hyphen between two numbers, as in “pages 10-20”, is treated as a range, not a minus sign. Scientific notation such as 6.02E23 can be switched on.
Below the result you see the count, sum, average, minimum and maximum of the numbers found, and “Append sum & average” adds those totals to the output itself. You can keep numbers as written or normalise them to plain 1234.56 form for spreadsheets, restrict to whole numbers, and remove duplicates.
How to use Number Extractor
- Paste your text into the input box, or click “Sample”.
- Set “Number format in your text” to match how thousands and decimals are written.
- Choose options such as “Detect negatives”, “Whole numbers only” or “Scientific notation”.
- Read the count, sum and average under the result, or switch on “Append sum & average”.
- Copy or download the numbers, one per line or separated as you chose.
Features
Locale-aware parsing
Comma, dot or space thousand separators with the matching decimal mark.
Negatives done right
Detects -5 and −5 but reads 10-20 as a range.
Instant statistics
Count, sum, average, minimum and maximum.
Clean output
Normalised numbers ready to paste into Excel or Google Sheets.
Flexible filters
Whole numbers only, dedupe and optional scientific notation.
When to use it
- Total the amounts listed in an invoice or expense email.
- Pull response times out of a log excerpt to calculate an average.
- Extract measurements from a product description into a spreadsheet.
- Collect scores from a pasted results table.
Frequently asked questions
How do I extract only numbers from a string?
Paste the text and every number appears on its own line on the right. Switch on “Whole numbers only” if you do not want decimals.
How does it handle commas in numbers?
It depends on the format you choose. In “1,234.56” mode the comma is a thousands separator; in “1.234,56” mode the comma is the decimal mark. Pick the one that matches your text.
Can it sum the numbers?
Yes. The sum, average, minimum and maximum are always shown under the result, and “Append sum & average” adds them to the output.
Are dates and phone numbers treated as numbers?
Yes, their parts are extracted as separate numbers, for example 12/05/2025 gives 12, 5 and 2025. Remove them from the text first if you do not want them counted.
What about numbers attached to letters, like A4 or COVID19?
Digits directly after a letter are skipped so that codes and model names are not mistaken for quantities. Numbers followed by units, like 12kg, are extracted.