Extract Numbers from Text
Paste any text and get every number in it as a clean list, with the count, the exact sum, the average, the smallest and the largest. Choose how your numbers are written: 1,234.56, 1.234,56, 1 234,56, 12,34,567.89 or 1'234.56, so that each one stays a single number. The tool finds the 10 in 10km and the 50 in 50%, keeps a sign when it is a sign, skips versions such as 1.2.3, and reads digits from other scripts, such as Arabic and fullwidth digits.
Related Tools
[4 suggestions]Extract Emails from Text
Find and extract every email address from a block of text with one-click copy.
Text ExtractionExtract URLs from Text
Pull every link (http, https, ftp and www) out of a block of text into a clean list.
Text ExtractionExtract Phone Numbers from Text
Find phone numbers in common formats with country codes, dashes, and parentheses.
Text ExtractionMean, Median and Mode Calculator
Find the mean, median, mode, range, quartiles, variance and standard deviation of a list of numbers, with exact decimal arithmetic.
Math & MoneyGuides for the Extract Numbers from Text
- How to Write Numbers in Words: Rules, Checks and Examples
Learn how to write numbers in words: hyphens, the word and, check amounts, ordinals and lakh and crore. Rules tested on 29,794 numbers. (November 13, 2026)
- Mean Median and Mode: How to Calculate Each, With Worked Examples
Learn how to find the mean median and mode of a list of numbers, when each is the right average, and how sample and population standard deviation differ. (November 12, 2026)
- How to Extract Numbers From Text, Including 1,234.56 and 1.234,56
Learn how to extract numbers from text without splitting 1,234.56, losing 10km or adding up dates. Reads US, European, Indian and Swiss number formats. (November 5, 2026)
- How to Extract Phone Numbers From Text Without Catching Dates and IDs
How to extract phone numbers from text: the formats to match, why dates, IP addresses and IDs fool a simple regex, and results tested on 245 countries. (November 3, 2026)
About the Extract Numbers from Text
Extracting numbers sounds like a job for a one-line pattern, but real text is full of cases that a simple pattern gets wrong: 1,234 is one number in some countries and two in others, 5-3 is not 5 and minus 3, and 1.2.3 is a version, not a number. This tool scans your text one character at a time and uses the format you pick. Comma groups with a dot decimal (1,234.56) are used in the US, UK, Japan and China. Dot groups with a comma decimal (1.234,56) are used in Germany, Italy, Spain and Brazil. A space between groups with a comma decimal (1 234,56) is used in France, Russia and Poland, and the space can be any width. This style also reads the SI form that groups the digits after the decimal mark as well, such as 43 279.168 29. India writes 12,34,567.89, with groups of two after the last three digits. Switzerland uses an apostrophe (1'234.56). With no grouping, a comma always separates numbers, which is the safe choice for a list such as 100,200,300. A sign counts only when it does not follow a word or a digit. Units, percent signs and ordinals do not hide a number, so 10km, 50% and 3rd give 10, 50 and 3, but a number that is part of a code or word, such as A4, H2O or item_5, is skipped. Dates and times can be skipped with one box. Each number is listed with its separators removed, or as written, and leading zeros stay, so 007 is not turned into 7. The sum is exact decimal arithmetic, so 0.1 plus 0.2 plus 0.3 is 0.6; it becomes approximate only when a number has more than 15 digits or an exponent. Everything runs in your browser.
Why is 1,234 read as one number and not two?▾
Because the default format treats a comma between groups of exactly three digits as a thousands separator. If your text uses commas to separate separate numbers, such as 100,200,300, choose the option with no grouping. If your numbers use a decimal comma, such as 12,5, choose dot groups or space groups instead.
Does it find the number in 10km or 50%?▾
Yes. Units, percent signs and ordinals after a number don't hide it, so 10km gives 10, 50% gives 50 and 3rd gives 3. A number that comes right after a letter, as in A4, H2O or mp3, is treated as part of a code and skipped.
Are dates, times and version numbers included?▾
Versions and IP addresses such as 1.2.3 are never counted as numbers. A date such as 2026-10-09 or a time such as 12:30 gives its parts as separate numbers unless you tick the box to skip dates and times.
Why does the sum say approximate?▾
A JavaScript number is exact only up to 15 digits. When a number is longer, or is written with an exponent such as 1.5e3, the sum is approximate. The list still shows every digit exactly as written.
Are negative numbers found?▾
Yes. A minus or plus sign counts when it comes right before a number and does not follow a word, a digit or a closing bracket. In 5-3 and x-5 the dash is not a sign, and in a -5 and (-5) it is.