Extract Numbers

Collect the numbers that appear in a paragraph.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

A leading minus sign is kept. Thousands separators are not interpreted as part of the number.

Turn decimals off when you only want whole numbers.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Extract numbers.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Numeric tokens, with a decimal switch

What is pulled out

The page scans the paste for numbers and lists them. Words stay behind. A decimal switch controls whether a point or comma form is part of the number or a separator that ends the token. Turn decimals off when you only want whole numbers, so a version like 1.2 does not become a fractional token you did not mean. The result is the list of tokens, not their sum. This page does not add them. The average and sum tools are calculators you paste values into, not extractors.

Signs, units, and thousands separators

A currency symbol is not part of the number. “$12” yields 12 if the digits match. A unit stuck to the digits, “12px”, may yield 12 and leave the unit, or fail to split the way you expect if the pattern allows only certain neighbors. Thousands separators are ambiguous. “1,000” can be one thousand or two integers, 1 and 000, depending on the decimal mode. Do not extract from accounting text and immediately sum until you have looked at one known row.

Order and duplicates

Numbers stay in the order found. Duplicates stay duplicated, because two identical measurements may both be real. The number sorter can order them afterward, with the usual warning about integers past the safe range. Extraction does not evaluate expressions. “2+2” is two numbers, not 4, unless the plus is not part of the match and you add them elsewhere.

Two interpretations of a comma

In one mode a comma ends a whole number or separates tokens. In the other it can be a decimal mark. Accounting pastes mix both conventions even inside one document. Extract from a single known row and see which reading you got before you extract a page of them. The list is not summed. A later calculator will trust whatever tokens you carry forward.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.