How digit stripping works
The pass is a single regex replacement: /\d+/g matches every run of one or more ASCII digits and replaces it with an empty string. The \d class in JavaScript matches only U+0030 to U+0039, so digits from Arabic-Indic, Devanagari, or other scripts are not touched. The + quantifier means a run of 50 digits collapses to nothing in one match, no quadratic blowup.
Surrounding context is preserved exactly. "Order #4821" becomes "Order #": the hash, the space, and the order text all survive. "$1.99" becomes "$.": the dollar sign and the period survive even though they sit next to digits. To also strip the punctuation, follow with remove punctuation in a second pass.
Output is computed in your browser on every keystroke as a single regex call. Nothing leaves the page, no log of the input is kept on our servers, and the input status bar shows live counts so you can see how many characters survived. To do the inverse and keep only digits, use extract numbers.
How to use remove numbers from text
- 1Paste text containing digits into the input panel on the left.
- 2Read the result with every digit stripped on the right.
- 3Inspect surrounding punctuation, which stays in place.
- 4Click Copy to take the digit-free text.
- 5Run remove punctuation after if leftover symbols also need to go.
Keyboard shortcuts
Drive TextResult without touching the mouse.
| Shortcut | Action |
|---|---|
| Ctrl F | Open the find & replace panel inside the input Plus |
| Ctrl Z | Undo the last input change |
| Ctrl Shift Z | Redo |
| Ctrl Shift Enter | Toggle fullscreen focus on the editor Plus |
| Esc | Close find & replace, or exit fullscreen |
| Ctrl K | Open the command palette to jump to any tool Plus |
| Ctrl S | Save current workflow draft Plus |
| Ctrl P | Run a saved workflow Plus |
What this tool actually does
Strips ASCII digits 0 to 9 only
The match is /\d+/g in JavaScript, which targets U+0030 through U+0039. Digits from Arabic-Indic (٠١٢), Devanagari (०१२), or other scripts are not touched. Use find and replace with explicit ranges if you need them removed.
Greedy: runs collapse in one match
The + quantifier means consecutive digits are matched in one go. "version12345" becomes "version" in a single replacement, not five. Large numeric IDs and long timestamps are stripped in a single linear pass.
Surrounding characters preserved
Letters, punctuation, whitespace, accented characters, and emojis pass through verbatim. "Order #4821 - 2x widgets" becomes "Order # - x widgets": the hash, dashes, and lowercase x all survive.
No options, predictable output
The transform has no toggles. Every digit goes, every non-digit stays. Pair with other tools when you need finer control: extract numbers for the inverse, remove punctuation for cleanup.
Single browser-side regex pass
Implemented as s.replace(/\d+/g, ''), evaluated locally on every keystroke. Linear time even on large inputs. No upload, no log of the text, output panel updates with no network call.
Worked example
Every digit run is stripped; the hash, hyphens, colon, and period all survive. Run remove punctuation after if those should go too.
Order #4821 ships on 2024-03-15 at 09:45.
Order # ships on -- at :.
Settings reference
| Behaviour | Effect on output |
|---|---|
| ASCII digits 0 to 9 | Stripped via /\d+/g. Each run replaced with an empty string. |
| Letters, punctuation, whitespace | Pass through unchanged. |
| Unicode digits in other scripts | Pass through. \d in JavaScript only matches Latin digits. |
| Decimal points and grouping commas | Pass through. Strip them with remove punctuation. |
| Currency symbols and units | Pass through. $, £, kg all survive. |
| Line endings | Untouched. Input LF or CRLF passes through as-is. |
FAQ
Will it remove digits in non-English scripts?
\d regex class matches only ASCII digits 0 to 9 (U+0030 to U+0039). Arabic-Indic digits (٠١٢), Devanagari digits (०१२), and others pass through. Use find and replace with explicit codepoint ranges if you need them stripped.Does it remove decimal points or commas in numbers?
"3.14" becomes ".", "1,000" becomes ",". Run remove punctuation as a follow-up if those marks should also disappear.How is this different from extract numbers?
Will currency symbols be removed too?
$, €, £, and other currency symbols are not digits, so they pass through. To strip them as well, use find and replace or remove non-ASCII for non-Latin currency marks.