How it works
In “whole numbers” mode, patterns like 42, -3.5, +7 and 1,250,000 are removed as a unit, so separators and decimal points go with them. In “every digit” mode, each digit character is removed wherever it appears, including inside codes like AB12. Leftover double spaces are collapsed.
Rules this tool follows
- Whole-number mode recognizes the digits 0–9 with an optional sign, comma thousands separators and a decimal point.
- Every-digit mode removes decimal digits in any script, such as Arabic-Indic and Devanagari digits.
- Punctuation around numbers, such as the dashes in a date, is left behind.
Example
Input
Order 1,250 units at 3.5 each.
Output
Order units at each.
Common uses
- Removing prices, quantities or IDs before analysing text.
- Stripping line numbers or page numbers from copied text.
- Anonymizing numeric data in samples.
Limitations and notes
- Numbers written as words (“twelve”) are not removed.
- European formats that use a comma as the decimal separator (3,5) are read as two numbers.