Extract Numbers From Text
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free tool to extract numbers from text. Pull every number out of a document, email or log, including decimals, negatives and 1,000 separators, then sum them.
- Numbers found
- 0
- Sum
- 0
- Average
- 0
- Smallest
- 0
- Largest
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to extract numbers from text
- Paste your text: an email, invoice, report, chat log, web page or any mixed text.
- Choose how to list the numbers: one per line, or comma separated.
- Keep "Keep decimals together" ticked so 1,250.50 is extracted as one number. Untick it to split numbers at the decimal point.
- Keep "Treat a leading minus as negative" ticked so "-20" becomes −20.
- Copy the list of numbers. The tool also shows how many it found, their sum, average, smallest and largest.
Everything runs in your browser, so the text you paste never leaves your device.
What the tool picks out
The tool finds every number in the text and handles the common ways numbers are written:
- Whole numbers: 3, 42, 2026.
- Decimals: 12.5, 0.75.
- Thousands separators: 1,250 and 1,250,000 are read as single numbers (1250 and 1250000), using the comma as a thousands separator.
- Negative numbers: -20 or −20 (with a true minus sign) become negative, but a hyphen inside a code like "A-12" isn't treated as a minus sign, so you get 12.
- Numbers next to symbols: $1,250.50, 45%, £30 and 3kg all give the number on its own.
For example, "Paid $1,250.50 on 3 May, refund -20 and item A-12" gives 1250.5, 3, −20 and 12, with a sum of 1,245.5.
Common uses
- Adding up amounts from an email, receipt or chat, without retyping them.
- Pulling figures out of reports to paste into a spreadsheet.
- Extracting order numbers, IDs or phone digits from logs and exports.
- Analysing data copied from web pages or PDFs.
- Checking totals: the sum lets you compare with a stated total.
- Cleaning survey or form responses that mix text and numbers.
Totals and statistics
The tool shows the count, sum, average, smallest and largest number found. For more statistics, paste the extracted list into the mean median mode calculator or the average calculator. To format the results with thousands separators for a report, use add commas to numbers.
Things to watch out for
Dates and times. "3 May 2026" contains the numbers 3 and 2026; "10:30" gives 10 and 30. If you only want amounts, check the list and remove dates, or edit the text first with find and replace.
Numbers in words. "Twelve" isn't a digit, so it isn't extracted. The number to words converter goes the other way.
Different decimal conventions. In much of Europe, "1.250,50" means one thousand two hundred and fifty, with a comma as the decimal mark. This tool uses the comma as a thousands separator and the full stop as the decimal point (the convention in the US, UK and many other countries), so convert European-style numbers first, or untick "Keep decimals together" and check the results.
Phone numbers and codes with spaces. "020 7946 0018" is extracted as three numbers. That's usually what you want for codes, but bear it in mind when summing.
Version numbers and IP addresses. "1.2.3" may be read as 1.2 and 3.
Extracting other things from text
- Email addresses: the email extractor pulls every email address from text.
- Links: the URL extractor finds every web address.
- Removing numbers instead: the remove numbers from text tool strips digits and keeps the words.
- Custom patterns: the regex tester lets you write your own pattern for specific formats.
Getting numbers into a spreadsheet
The most common reason to extract numbers from text is to analyse them in a spreadsheet. With "One per line" selected, the extracted list pastes straight into a single column in Excel or Google Sheets. With "Comma separated", it pastes into a single cell, which you can split with Data > Split text to columns.
Once the numbers are in a spreadsheet, you can sum, sort, chart or compare them. If you also need the labels that went with each number (for example, product names), it's usually better to export the original data as CSV from its source, rather than extracting numbers from text.
Cleaning up before extracting
A little preparation gives cleaner results:
- Remove dates you don't need with find and replace, or check the list and delete them afterwards.
- Watch for numbered lists: "1. Coffee 3.50" contains both a list number (1) and a price (3.50).
- Watch for units with numbers: "2x", "3kg" or "4G" all contain numbers you may not want.
- Separate columns of figures in copied tables may run together if there were no spaces between them.
When you extract numbers from text that came from a PDF, check the result carefully: PDFs sometimes lose spaces between columns, so two numbers can merge into one.
Extracting numbers from emails and receipts
Freelancers, accountants and small business owners often need to pull amounts out of emails, receipts and statements. Paste the text, extract numbers from it, and check the sum against the stated total. If they don't match, look for a number that was counted twice (like a subtotal) or one that's actually a reference number.
For receipts with tax, the VAT calculator and sales tax calculator help split totals into net and tax.
Phone numbers and IDs
To pull out IDs, order numbers or phone numbers, it's often better to keep each one together. Phone numbers with spaces ("020 7946 0018") are split into separate numbers by this tool, and leading zeros are lost when numbers are read as numbers (0018 becomes 18). For those, the regex tester lets you write a pattern that matches the exact format and keeps the text as it is.
Privacy
Text from emails and documents can contain personal or financial information. Because this tool runs entirely in your browser, nothing you paste is uploaded or stored. You can extract numbers from text containing sensitive data without it leaving your device.
Checking extracted numbers
After you extract numbers from text, compare the count with what you expected. If you expected 12 amounts and the tool found 15, look for dates, reference numbers or quantities that were also picked up. If it found fewer, check for numbers written as words or numbers that ran into other characters. A quick review takes seconds and ensures the sum you rely on is correct.
Quick tips
- Remove dates and reference numbers you don't want to sum.
- Use one-per-line output for spreadsheets.
- Compare the sum with any stated total.
- Check European-style decimals before extracting.
These simple checks make it safe to extract numbers from text for calculations.
Who uses a tool to extract numbers from text
Freelancers and accountants use it to total amounts from emails and receipts. Analysts use it to pull figures from reports, and administrators use it to collect order or reference numbers from exports and logs.
In summary
Paste any text and get every number in a clean list, with the count, sum, average, smallest and largest values. Check for dates or reference numbers you don't want, and copy the list straight into a spreadsheet.
A worked example
A freelancer receives a long email from a client listing extra work: "Design changes 250, two extra banners at 75 each (150), copy edits 120.50, minus our agreed discount: -20." She wants to check the total before invoicing.
She pastes the email into the tool to extract numbers from text. It finds 250, 75, 150, 120.5 and −20, with a sum of 575.5. She notices that both "75 each" and the subtotal "150" were extracted, so she removes the 75 from the list: the correct total is 500.50, which matches what she expected.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.
Sources and further reading
- Decimal separator on Wikipedia: how different countries write decimals and thousands, which affects how numbers in text should be read.
Frequently asked questions
How do I extract all numbers from text?
Paste the text into the tool, choose how to list the numbers, and copy the result. It finds whole numbers, decimals, negatives and numbers with thousands separators.
Does it handle currency symbols?
Yes. $1,250.50 is extracted as 1250.5, without the symbol.
Will it treat hyphens as minus signs?
Only when the minus is at the start of a number. In codes like "A-12", the hyphen is ignored.
Can I add up the numbers?
Yes. The tool shows the sum, average, smallest and largest number.
Does it extract numbers written as words?
No. Only digits are extracted.
Is it free to extract numbers from text here?
Yes. It's free, needs no sign-up, and your text stays in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.