Extract Numbers from Text finds every number in your text and lists each one on its own line. Paste your text, click the button and copy the result. It is free and runs in your browser.
I really want to work for 5 hours, but I am too tired.
5
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool finds the numbers in your text and puts each one on its own line, in the order they appear. All the other words and symbols are removed from the result.
Whole numbers, decimals such as 3.5, numbers with thousands commas such as 1,234.50, and negative numbers such as -12 are each returned as one number. Digits joined to letters, as in abc123, are found too. A hyphen between two numbers, as in 2020-2021, counts as a range, not a minus sign.
Use it to pull the amounts out of an invoice, the figures out of a report, or the digits out of a messy string. Tick Remove duplicate numbers to list each number once.
Each example shows the text before and after extracting. Duplicates are kept unless the option is ticked.
| Case | Before | After |
|---|---|---|
| Example sentence | I really want to work for 5 hours, but I am too tired. | 5 |
| Several numbers | Order 66 shipped 3 items on 12 May 2026 | 66 3 12 2026 |
| Decimals and thousands commas | Total: 1,234.50 plus 3.5 tax | 1,234.50 3.5 |
| Negative numbers and ranges | Fell to -12 from 5, years 2020-2021 | -12 5 2020 2021 |
| Numbers inside words | abc123def45 | 123 45 |
| Duplicates kept (default) | 1 2 1 2 | 1 2 1 2 |
| Duplicates removed (option on) | 1 2 1 2 | 1 2 |
Pulling amounts, quantities and figures out of invoices, reports, logs and messy strings, and building a clean list to sum, sort or import into a spreadsheet.
Every group of digits counts as a number, so dates, times and phone numbers are split into their parts (10:30 gives 10 and 30). Numbers are returned as written and are not added up. The result replaces your text, so use Undo if you need the original.
To delete the numbers instead try Remove Numbers From Text. To split text and numbers try Separate Numbers from Text.
It finds every number in your text and puts each one on its own line. All the other words and symbols are removed from the result.
Paste or type your text, or import a text file, then click Extract Numbers. The numbers replace the text in the box. Click Copy to use them, or Undo to go back.
Yes. A number such as 3.5 is returned as one number, and a number with a minus sign right before it, such as -12, keeps the minus. A hyphen between two numbers, as in 2020-2021, is treated as a range, so you get 2020 and 2021.
A number written with thousands commas is returned as one number and keeps its commas, so 1,234.50 stays 1,234.50.
Yes. Every group of digits is returned, even when it is joined to letters. In abc123def45 you get 123 and 45.
Not by default, so every number is listed in the order it appears. Tick Remove duplicate numbers to list each number only once.
The text is left as it is and you see the message No numbers found.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 9 November 2026