The quick answer
Paste text and every number lands on its own line: 42, -7, 3.14. Duplicates are dropped and both counts reported (3 unique of 5 total, say). The caveat to know first: 1,000 splits into 1 and 000, because the comma ends the match. Nothing uploads.
The problem this page solves
One job defines this page: pulling the numbers out of raw text and lining them up, one per line, instantly, entirely in your browser, with no signup and no upload. You arrive, paste, and the answer is already computed. The rest of the page is documentation: the exact pattern, worked examples you can check, the edge cases that surprise people, and the questions searchers ask most.
What counts as a number here?
A number counts when it fits one shape: an optional leading minus, one or more digits, and optionally a dot followed by more digits. That is integers (42), negatives (-7) and decimals (3.14), and nothing else. Only ASCII digits match, so full-width digits like 123 and spelled-out numbers like forty-two are invisible to the pattern.
The whole operation runs in your browser as plain JavaScript, recomputing on every keystroke. There is no run button, no upload, and no network request while you work. Closing the tab ends the session, and the numbers you pasted exist nowhere else.
Pulling numbers out, step by step
The workflow is short on purpose; follow it top to bottom.
Paste your text
Paste your source into the input box. Matches appear the instant the text lands, and the panel recomputes on every keystroke. The page's own Load example sample carries no digits, so the counter reads 0 unique numbers found, 0 total until real text arrives.
There are no knobs to set
The pattern is fixed: optional minus, digits, optional decimal. Emails, URLs and phone numbers each have a sibling extractor with its own pattern, linked below.
Read the output panel
One number per line, in order of first appearance, with a note reporting both counts: unique matches and total matches.
Copy, download or continue
Copy puts the list on your clipboard; Download saves it as numbers.txt; and Use as input pipes the output straight back in for a second transformation.
Clear when done
Clear wipes the input instantly. Processing is local, so there is no history and no residue.
The regex behind the results
Two behaviors in the first example deserve attention. Duplicates are dropped: the two 7s in the input yield one 7 in the output, and the note reports both counts (3 unique of 4 total) so nothing is silently lost. And the thousands separator ends a match: 1,000 comes out as 1 and 000, because the comma is not part of the pattern. Strip commas from the input first (Find and Replace is the right tool) whenever the full value matters.
Input
Sold 7 units. Then 7 more. Total: 1,000.
Output
7 1 000
Input
Room 12 holds 40 people; net was -42.00 on 3.14 million after a 7% cut.
Output
12 40 -42.00 3.14 7
The match rule is one regular expression: an optional leading minus, one or more digits, then optionally a dot and more digits. In running text it finds 42, -7 and 3.14. It skips bare decimals like .5 (no leading digit), spelled-out numbers like forty, and full-width digits like 123. Everything else in the sentence stays where it was; only the matches are lifted out, one per line.
Who pulls numbers out of text (and why)
Numbers scatter through prose written for humans, not machines. These are the people who need them as one clean list.
Bookkeepers and accountants: a supplier email says we invoiced 3 shipments at 1250.50 each, plus 89.99 shipping. The extractor turns that sentence into a list to check against the ledger, with no transcription step in between.
Data analysts: figures buried in a pasted report or a changelog become a clean column, one number per line, ready to paste into a spreadsheet. The regex never fat-fingers a digit; retyping by hand sometimes does.
Journalists and students: fact-checking starts with collecting every figure in a press release, then checking each against the original claim. Extraction is the collection step, done in seconds.
Support agents: a ticket thread arrives with order numbers, version strings and timestamps scattered through the prose. One pass gathers the numeric ones into a list for a lookup or a bug report.
Edge cases: commas, notation and other traps
The caveats below are part of the answer, not a footnote to it. Each trap is real, and each has a fix.
- Thousands separators split matches: 1,000 extracts as 1 and 000. Remove commas (or dots, in European formats) from the input before extracting when the full value matters.
- Dates split into signed numbers: 2026-11-21 extracts as 2026, -11 and -21, because the hyphens sit directly against the digits. Extract dates knowingly, or pre-clean them.
- Scientific notation breaks apart: 1e6 yields 1 and 6, and 2.5e-3 yields 2.5 and -3. Convert scientific notation to plain decimals first.
- Percent and currency context is lost: 12% extracts as 12, and $1,250.50 as 1 and 250.50. The symbols are not part of the match, and the comma splits the amount.
- Hyphenated tokens donate their digits: COVID-19 yields -19, because the minus sitting against the digits is part of the match.
- Bare decimals are skipped: .5 has no leading digit, so it never matches. Write 0.5 and it extracts cleanly.
Your numbers stay in the tab
All computation happens on your device: the paste exists in the page's memory and disappears when the tab closes. The inputs people bring here, invoices, ticket threads, financial figures, health numbers, are exactly the categories that should not cross a network boundary just to be reformatted. On this page they cannot: there is no server component that could see them.
The test is easy to run yourself: load the page, switch off Wi-Fi, and extraction still works, because the pattern ships with the page as plain JavaScript. The network panel stays silent the whole time.
Extraction by hand, spreadsheet, or this page
There are honest alternatives, and the table below shows where each one wins.
| Alternative | Why people pick this page instead |
|---|---|
| Copying by hand | Works for 3 numbers, fails at 30, and transcription errors are exactly the mistake extraction exists to prevent. |
| Spreadsheet FIND()/MID() chains | Digging digits out of cells with formula chains fights every format variation; the pattern covers the whole block in one paste, with no formulas to debug. |
| Command-line grep | grep with a digit pattern does the same job, if you have a terminal open and the text in a file. For paste-in, paste-out work, this page is faster to reach. |
When the output surprises you
When something behaves unexpectedly, the cause is almost always one of these:
- The output shows 1 and 000 instead of 1,000: the comma ends the match. Strip commas from the input first, or merge the pair afterwards.
- A negative number is missing: the minus must sit directly against the digits (-42, not minus 42); spelled-out minus signs do not attach.
- Nothing extracted at all: the numbers may be spelled out (forty-two) or full-width (123); only ASCII digits match.
- Fewer results than you counted: duplicates were dropped. The output keeps one copy of each value and reports both counts, so 7, 7, 7 yields a single 7.
Frequently asked questions
What number formats does the extractor recognize?
Integers (42), negatives (-7) and decimals (3.14): an optional minus sign, a run of digits, and an optional dot followed by more digits. Anything else (comma thousands, scientific notation, spelled-out numbers) needs pre-cleaning; the edge-cases section above shows each trap with an example.
Can the team see what I paste into Extract Numbers from Text?
No. The matching runs as JavaScript in your browser tab, so your text never leaves the device. Refreshing the page clears everything irrecoverably.
Does the Extract Numbers from Text work on mobile?
Yes. The page reflows to phone screens, works with touch input, and runs in current mobile and desktop browsers with nothing to install.
Do you store what I enter into the Extract Numbers from Text?
No. Inputs stay in the browser: nothing is transmitted or retained server-side, and a refresh resets everything to blank.
Is the Extract Numbers from Text free to use?
Completely free, and deliberately so: no signup, no gate, no metered free tier. The tool runs entirely in your browser, so each extra use costs this site nothing and costs you nothing either.
How reliable are the results from Extract Numbers from Text?
The pattern match is exact and deterministic: the same input always yields the same list, and the worked examples on this page were produced by running the code the tool ships. Where it can mislead you is format, not arithmetic: 1,000 splits, 1e6 breaks apart, and .5 never matches.
The rest of the extraction kit
- Extract Emails from Text: the same engine with the email pattern; pull every address out of a thread or a signup export.
- Extract URLs from Text: lifts http and www links out of prose, one per line.
- Extract Phone Numbers: US-style 10-digit numbers, with or without the +1 prefix, deduplicated.
- Remove Numbers from Text: the mirror image, deleting digit runs from the text instead of listing them.
Extraction is a family: the same paste-and-pull workflow covers emails, URLs and phone numbers, and the number tools run in both directions, pulling the digits out or stripping them away.
Sources and further reading
The references behind the claims on this page: what a regular expression can promise, and where the boundaries of digit actually sit.
Sources and further reading
- MDN Web Docs: JavaScript regular expressions reference(developer.mozilla.org)
- Wikipedia: Regular expression(en.wikipedia.org)
- Unicode Character Database, where digit properties are defined(unicode.org)
- Wikipedia: Decimal separator, comma and dot conventions(en.wikipedia.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.