ToolZoneX
Blog

Extract Numbers from Text

Extract every numeric substring from text, including decimals and negative numbers, as a clean copyable list.

Numbers found in your text will appear here as you type.


How to extract numbers from text

Paste any text into the box above. This tool scans it live and pulls out every numeric substring it finds — whole numbers, decimals, and negative numbers — and lists them separately, ready to copy or download.

What counts as a number?

The extractor matches sequences of digits, optionally with a decimal point (like 3.14) and an optional leading minus sign (like -12). It does not merge numbers separated by other characters, so a phone number like "555-1234" is extracted as two separate numbers, 555 and 1234.

Example

From the text "Order #4521 shipped 3.5kg with a -12.99 discount" the tool extracts 4521, 3.5, and -12.99.

Common Use Cases

  • Pulling prices, quantities, or measurements out of pasted invoices or receipts.
  • Collecting IDs or reference numbers scattered through a document.
  • Preparing a quick list of numeric values for a spreadsheet import.

FAQs

Does it handle negative numbers and decimals?

Yes — a minus sign directly before a number and a decimal point within a number are both recognized, so values like -45 and 3.14 are extracted correctly.

Does it remove duplicate numbers?

No — every occurrence is listed in the order it appears, including repeats, since duplicate values (like a repeated total) are often meaningful in the source text.

Can it extract numbers formatted with commas, like 1,000?

Thousands separators are treated as a break between numbers, so "1,000" is extracted as 1 and 000. Remove comma separators first if you need thousands to stay intact as a single number.