Extract Numbers from Text

Find every number in any text, including decimals, negatives, percentages and numbers with thousands separators, and list them one a line.

Processed on your device. Files are not uploaded

How to extract numbers from text

  1. Paste your text

    Paste or type it into the box, or press Try an example. Numbers can be mixed in with anything else.

  2. Tidy the list

    Remove duplicates and sort the list, if you want.

  3. Copy or download

    Copy the list of numbers, one on each line.

Worked example

This is what Extract Numbers from Text gives for its own sample values. Open the tool above and change anything to try your own.

Your text

We sold 1,250 units for 3.5% more than the 1,100 last year.
Remove duplicates
Yes
Sort the list
No

The numbers, one on each line

1,250
3.5%
1,100

Result

Numbers found
3

About Extract Numbers from Text

Pull every number out of a text, including decimals, negative numbers, percentages and numbers written with thousands separators. Sorting orders them by value, not as text.

FAQs

Does it find numbers inside words?

It finds digits wherever they appear, so a1b2 gives 1 and 2.

Does it include numbers in web links?

Yes. Digits in a link are numbers too.

Can I add them up?

Copy the list into Statistics Calculator to get the total and average.

Related tools