Extract Numbers From Text

Pull every number out of prose, logs, or CSV-ish text into a clean list — filter, de-duplicate, sort, and total them. Runs in your browser; nothing is uploaded.

Try:
Extracted numbers

About this tool

Extract Numbers From Text scans any block of text — prose, a log file, a pasted spreadsheet column, an invoice — and pulls out every number into a clean list. It recognises:

Then it lets you shape the result:

Everything runs locally in your browser via WebAssembly — your text is never uploaded.

Handy for

Example (command line)

The same engine is available through the gizza CLI:

gizza tool extract-numbers-from-text text='Order 42 shipped for $1,299.99; weight 3.5kg' stats=true

returns the joined list (42, 1,299.99, 3.5) plus a summary with the count, sum, min, max, and average.

Limitations

FAQ

Does it understand numbers with commas like 1,000,000?

Yes. Thousands-separated numbers such as 1,000, 1,299.99, and 1,000,000 are recognised as single values, and the commas are kept in the extracted token exactly as they appeared. When you turn on Remove duplicate values or Append summary, the commas are stripped internally so 1,000 counts as the same value as 1000 and totals add up correctly.

How are dates and negative numbers told apart?

A - or + only counts as a sign when the character before it is not a letter or digit. So in -7 and +5 the sign is kept, but in a date like 2024-01-15 the hyphens are read as separators and you get 2024, 01, and 15 — not negatives. The same rule means a-5 and 5-3 yield plain positive numbers.

Can I get only whole numbers or only decimals?

Yes — use the Keep option. Integers only returns tokens with no decimal point (this includes scientific notation without a dot, like 5e2), Decimals only returns tokens that contain a decimal point (like 2.5 or 4.0), and All numbers returns everything.

What does the summary block include?

With Append summary enabled, the output ends with the count of numbers returned, plus the sum, min, max, and average of their values. Whole-number results are shown without a trailing .0, and the statistics are computed after any filtering and de-duplication you applied.

Is my text uploaded anywhere?

No. The extraction runs entirely in your browser through WebAssembly — the text you paste never leaves your device, so it is safe to use on logs, invoices, or other private content.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool extract-numbers-from-text "Paste prose, a log, or CSV rows to pull numbers from…"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/extract-numbers-from-text/?text=Paste%20prose%2C%20a%20log%2C%20or%20CSV%20rows%20to%20pull%20numbers%20from%E2%80%A6&mode=all&unique=true&sort=original&delimiter=newline&stats=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.