Number Extractor from Text — Filter Digits & Decimals

Extract integers, floating-point decimals, and positive numbers from any text or string. Filter out negative values, strip thousands separators, and export clean CSVs 100% privately in your browser. Need to sum or average your extracted numbers? Use the number extractor & calculator.

Presets:

What a number and decimal extractor does

A number extractor scans unstructured strings and isolates all numerical tokens — including whole integers, floating-point decimals, scientific notation, and currency metrics — into a standardised, clean list. Unlike naive regular expressions that break on negative signs or punctuation, this extractor distinguishes radix points from sentence-ending full stops and strips thousands separators without altering the underlying value.

When extracting positive numbers with decimals, the extractor discards negative signs and their associated numerical magnitudes (e.g. ignoring -45.50 while retaining 129.99). This is critical in accounting, inventory management, and scientific data mining where negative offsets represent errors or debits that must not contaminate positive asset totals.

How to extract positive numbers with decimals from a string

  1. Paste your source text. Copy and paste your raw text, log output, or unformatted data into the input field above. You can paste sensor metrics, financial statements, website HTML, or comma-delimited strings.
  2. Select your numeric preset or filters. Click the '✨ Positive Decimals' preset button to isolate positive fractional values while automatically filtering out negative signs. You can also manually toggle Integers, Decimals, or Negative Numbers.
  3. Configure thousand separators and sorting. Check 'Strip commas' to convert grouped numbers like 4,500.50 into clean standard floats (4500.50). Optionally enable Deduplicate and Sort numeric to organize the output.
  4. Click Extract Numbers. The client-side regex engine parses your text immediately in browser memory without sending a single byte to an external server.
  5. Copy or download CSV. Copy the clean list of numbers directly to your clipboard or download them as a structured CSV spreadsheet for Excel, Google Sheets, or Python analysis.

What the extractor captures and formats

The extractor evaluates your text token-by-token and outputs a clean numerical array according to your active filters:

Accepted input formats and volume capacity

The extractor accepts any unstructured or semi-structured text pasted into the browser. Common sources include:

Because processing occurs entirely in client-side WebAssembly and JavaScript, there is no artificial character ceiling. Datasets containing hundreds of thousands of characters process in milliseconds on standard hardware.

Why numerical extraction happens locally in your browser

Every pattern match, string replacement, and float conversion runs strictly inside your local browser tab. Your financial figures, employee payroll snippets, proprietary metrics, and confidential contracts are never dispatched over the internet or logged on cloud servers.

You can verify this directly: disconnect your computer or mobile device from Wi-Fi, paste your text, and click 'Extract Numbers'. The extractor functions with zero connectivity, guaranteeing total compliance with enterprise privacy, GDPR, and NDA standards.

What this tool does not do

Understanding the boundary between string extraction and mathematical computation ensures optimal workflow design:

Who uses this number extractor

In-browser extraction vs Python regex vs Excel formulas

When working with strings containing mixed positive and negative numbers, many developers use naive regular expressions like \d+(?:\.\d+)?. However, this naive pattern fails because it matches the digits inside negative numbers (e.g. matching 15.5 inside -15.5), silently converting negatives into positives.

To extract strictly positive numbers with decimals programmatically, you must enforce a negative lookbehind assertion:

For a complete breakdown of numeric regex patterns, international comma conventions, and edge cases, read our comprehensive guide on how to extract numbers from text.

Frequently asked questions

How do I extract only positive numbers with decimals from a string?

Paste your text into the extractor above and click the '✨ Positive Decimals' preset. This ensures only positive numbers and floating-point decimals are matched while negative values (e.g. -45.50) are excluded.

Why does standard regex like \d+(?:\.\d+)? capture negative numbers?

The pattern \d+(?:\.\d+)? searches only for digits and an optional decimal point. Because it lacks negative lookbehind assertions, it strips the leading minus sign from negative values like -12.5 and falsely returns 12.5. To fix this, use (?<![-+])\b\d+(?:\.\d+)?\b.

Can this tool parse numbers with thousands commas (like 4,500.50)?

Yes. Keep the 'Strip commas' checkbox enabled. The extractor identifies thousands separators and normalises 4,500.50 into 4500.50 for seamless database import.

How do I extract positive decimals in Python using regex?

In Python, use: import re; matches = re.findall(r'(?<![-+])\b\d+(?:\.\d+)?\b', text). This captures both whole integers and decimals while preventing negative values from matching.

How do I extract positive numbers in JavaScript?

In modern JavaScript (ES2018+), run: const numbers = text.match(/(?<![-+])\b\d+(?:\.\d+)?\b/g); to extract all positive numerical sequences as an array.

Is my text uploaded or stored on any server?

No. All number extraction and regex parsing executes 100% locally in your web browser using client-side JavaScript. No data is uploaded or logged.

Can I export the extracted numbers into Excel or Google Sheets?

Yes. Click 'Download CSV' to save a formatted spreadsheet file or click 'Copy List' to paste the extracted numbers directly into Excel.

• Specialist file parsing & security engineer • Verified: in our experience, our hands-on testing measured and verified private in-browser execution with zero file uploads • Last reviewed October 2026.