Remove Numbers from Text – Strip Digits Instantly
Paste any text and strip every numeric digit from it in one click. Optionally remove decimals, thousand separators, and English number words like one, two, three — or preserve phone numbers and dates while cleaning the rest. Free, private, and runs entirely in your browser.
Input & options
Paste text, tweak, stripOutput
Cleaned textWhat does this tool do?
This free online tool removes every numeric digit from a piece of text. Paste in a paragraph, a list, an email, a spreadsheet column, or anything else, and the tool will strip out 0 through 9 in an instant. What's left is pure text — no numbers, no digits, no lingering punctuation from removed numbers.
By default the tool does the simplest possible thing: it deletes each digit it finds and joins the surrounding characters back together. That means "Order 12345 confirmed" becomes "Order confirmed". It's a clean, predictable transformation that works for 90% of use cases.
But numbers aren't always just digits. Real text contains decimals (3.14), thousand separators (1,000), phone numbers, dates, and English number words (one, twenty, million). The options panel on the left gives you fine-grained control over how each of these is treated, so you can tailor the output to whatever you actually need.
Options explained
Every option on the left is independent, so you can stack them however you like. Here's what each one does in practice:
Remove decimal points & thousand separators
When you check this box, the tool also removes . and , characters when they sit between digits. So "The value is 3.14" becomes "The value is" instead of "The value is ." — the punctuation disappears along with the number, which is usually what people want when cleaning text of numeric data.
Remove English number words
This extends the removal to words like zero, one, two, … twenty, thirty, hundred, thousand, million, billion, and trillion. So "I have twenty apples" becomes "I have apples". The match is case-insensitive, so One and ONE are both removed.
Preserve phone numbers
Phone-number-like sequences are common in contact lists, support tickets, and CRM exports. When this is checked, patterns that look like phone numbers — +1 555-123-4567, (555) 123-4567, 555.123.4567 — are protected and left in the output. Every other digit is still removed. If you'd rather strip everything, leave this off.
Preserve dates
Similar idea, but for dates. The tool detects DD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD, and DD.MM.YYYY formats and keeps them intact. This is useful for cleaning logs, invoices, or any document where dates are load-bearing but other numbers aren't.
Only remove standalone numbers
Some words contain digits as part of their identity: mp3, b2b, 3D, COVID19, PS5. Turning this on tells the tool to only remove digit sequences that are surrounded by whitespace or punctuation — the ones that are genuinely standalone numbers, not part of a word. If you want maximum stripping, leave it off.
Collapse extra spaces
When you remove digits, you can easily leave behind double spaces: "hello world" → after removing a digit from the middle → "hello world". This option runs a second pass that collapses runs of spaces into single spaces, giving you clean output. It's on by default because it almost always improves readability.
Common use cases
People strip numbers from text for all sorts of reasons. These are the most common scenarios:
- Anonymising data — Removing order numbers, IDs, prices, and account numbers before sharing text with someone else. The
[redacted]replacement option makes the redaction visible. - Cleaning scraped text — Web scrapes often come with prices, quantities, and reference codes glued to every sentence. Stripping the digits gives you the prose alone.
- Preparing word lists — Building a vocabulary list from a corpus means removing digits first so they don't get counted as words.
- Testing — Developers use this tool to generate test strings with digits removed so they can verify that downstream parsers handle such input.
- Language learning — Stripping numbers makes text easier to read for beginners who can't yet parse large numbers fluently.
- Readability experiments — Removing all digits and seeing how much of the text remains is one way to measure how number-heavy a document is.
How removal works step by step
The tool runs a small pipeline on your input. Here's what happens, in order:
- Protect preserved patterns. If you enabled "Preserve phone numbers" or "Preserve dates", those matches are swapped out for placeholder tokens that won't be affected by later steps.
- Remove number words (optional). If "Remove English number words" is on, the tool replaces word-boundary matches with the chosen replacement string.
- Remove decimal and thousand separators (optional). Punctuation between digits is stripped at the same time as the digits themselves.
- Remove digits. All remaining
0–9characters are replaced with your chosen replacement (nothing, space, underscore, X, #, or[redacted]). - Collapse spaces (optional). Runs of two or more spaces are compressed to a single space.
- Restore preserved patterns. The placeholder tokens are swapped back for the original phone numbers and dates.
Because everything runs in JavaScript and operates on the string in memory, the whole thing completes in well under a second for texts of any reasonable size.
Examples
A couple of before-and-after cases to show the different modes in action.
| Input | Options | Output |
|---|---|---|
| Order 12345 confirmed | Defaults | Order confirmed |
| Value: 3.14 | Defaults | Value: . |
| Value: 3.14 | + decimals removed | Value: |
| Call +1 555-123-4567 | Defaults | Call + - |
| Call +1 555-123-4567 | + preserve phones | Call +1 555-123-4567 |
| Meeting on 12/05/2025 | Defaults | Meeting on // |
| Meeting on 12/05/2025 | + preserve dates | Meeting on 12/05/2025 |
| I have twenty apples | Defaults | I have twenty apples |
| I have twenty apples | + remove words | I have apples |
| Buy an mp3 player | Defaults | Buy an mp player |
| Buy an mp3 player | + standalone only | Buy an mp3 player |