InputTestHub

Extract Numbers from Text

Finds every number in a block of text and lists them, with totals, averages and an option to keep decimals and negatives.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Paste something on the left to see the result.
In short Extracting numbers finds every number in a block of text and returns them as a list, with a total and an average, and with options for whether decimals and negative signs count as part of the number. Those options are not cosmetic. "−12.5" is one number if the minus sign and the decimal point are included and three separate things if they are not, and the total changes accordingly. The usual jobs are pulling figures out of a report or an email to add up, extracting prices or quantities from a pasted table, and getting a column back from text that lost its structure. A few cases need care. A thousands separator splits a number in two under the default rules, so "1,250" becomes 1 and 250 — check whether your text uses commas or spaces for grouping before trusting the total. Dates give three numbers each. Phone numbers and reference codes are extracted as numbers even though they are identifiers that should never be summed, which is worth looking at before reading the total as meaningful.

How to use the Extract Numbers from Text

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Extract Numbers from Text

The Extract Numbers from Text finds every number in a block of text and lists them, with totals, averages and an option to keep decimals and negatives. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Getting a column of figures out of a pasted email.
  • Summing values scattered through a paragraph.
  • Building a quick dataset from a report.

Frequently asked questions

Do I need an account to use the Extract Numbers from Text?
There is no cost and no cap. The Extract Numbers from Text is not a demo of a paid product, so nothing is held back or watermarked.
Does anything I enter leave my computer?
No. The Extract Numbers from Text runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
What problem does the Extract Numbers from Text solve?
Typical uses: getting a column of figures out of a pasted email. Summing values scattered through a paragraph. Building a quick dataset from a report. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Can I use the Extract Numbers from Text on mobile?
Yes. The page is responsive and the utility works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Case Converter

Converts text between twelve cases: UPPER, lower, Title, Sentence, camelCase, PascalCase…

02

Uppercase Converter

Converts any text to UPPERCASE instantly, keeping numbers, punctuation and line breaks exactly…

03

Lowercase Converter

Converts any text to lowercase, including text that was typed with Caps Lock on by mistake.

04

Title Case Converter

Converts headings to proper Title Case using AP and Chicago rules, keeping short words like…

05

Sentence Case Converter

Rewrites text in sentence case: first letter of each sentence capitalised, the rest lowercase…

06

camelCase Converter

Turns any phrase into camelCase for JavaScript, Java and JSON keys, stripping spaces, hyphens…

07

PascalCase Converter

Converts phrases to PascalCase (UpperCamelCase) for class names, React components and type…

08

snake_case Converter

Converts text to snake_case for Python variables, database columns and file names.

09

kebab-case Converter

Converts text to kebab-case for URLs, CSS class names and HTML attributes.

10

CONSTANT_CASE Converter

Converts text to SCREAMING_SNAKE_CASE for environment variables, constants and configuration…