Extract Numbers from Text
Pull every number out of text with count and sum.
Extract all numbers from text instantly. Free number extractor with sums and counts — no uploads.
Calculator Inputs
About Extract Numbers
Pull every number out of text with count and sum.
Paste text to capture integers and decimals (including negatives) in order found. Toggle unique to dedupe repeats. The sum helps verify totals without spreadsheet gymnastics.
Thousands separators (1,000) are not parsed — strip commas first if needed. Everything runs in your browser.
Where it is used
Scraping prices from paste, auditing data dumps, extracting IDs and totals.
How to use the Extract Numbers
- Text — enter the value (e.g. Order 42 items for $19.99).
- Unique numbers only — enter the value.
- Calculate — press the Calculate button to see the result instantly above.
Formula
Regex -?\d+(\.\d+)? with optional Set dedupe.
Examples
Example
inputText:Order 42 items for $19.99
unique:false
Result: 42, 19.99 (count 2)
Frequently Asked Questions
- Does it catch 1,000 style numbers?
- Currently no — commas split the match. Remove commas beforehand for those.
- Negative numbers?
- Yes, leading minus is captured.