Keep only numbers
Extract all digits and remove every other character from text.
Keep only numbers
Remove every character that is not a digit (0–9) from any text instantly and effortlessly. Paste a phone number, an address, a date, a product code, an identification number, or any text with mixed characters and this tool extracts just the numbers in seconds. Everything runs locally in your browser, so your data never leaves your device. No uploads, no tracking, no servers involved.
The tool strips away letters, punctuation, symbols, emoji, accents, and whitespace in a single pass, leaving only the numeric digits zero through nine. This is essential when you need to extract phone numbers from contact info, find numerical sequences in longer text, clean up formatting inconsistencies, or prepare raw data for spreadsheets and databases. By default it collapses the output to a continuous string of digits with no spaces. However, you can enable the "Keep spaces" option to preserve spaces between number sequences, which is helpful if you are processing formatted data like international phone numbers with country codes, postal codes with hyphens, or date formats with slashes.
Copy the result with one click, download it as a plain text file, or seamlessly send it to another tool using TextArray's integrated linking. The live tally displays statistics counting how many characters were in the input and output, plus the total number of characters removed.