How to extract phone numbers from text
Put text into Input text or load a file with Upload. The phone number extractor places each accepted match on its own line in Output text and updates the number count below it. Region supplies context for local-looking numbers, while Standardize to controls the displayed format.
How to use the phone number extractor
- Paste text into Input text, or choose Upload and select a
.txt,.csv,.log, or.mdfile. - Choose Region for local-looking numbers. Type a country name, code, or dial code into Search regions to narrow the list.
- Choose an option in Standardize to, then check Output text and the number count.
- Choose Copy to put the newline-separated results on the clipboard, or choose Download to save them.
How to standardize phone numbers
Region supplies the dial code for local-looking values. Search regions filters the country list by name, code, or dial code and keeps the active region selected. Standardize to includes As found, E.164 (+1XXXXXXXXXX), (XXX) XXX-XXXX, International (+X XXX XXX), XXX-XXX-XXXX, XXX.XXX.XXXX, and Digits only.
Call 800-555-0199 today.
E.164 output with United States selected:
+18005550199
As found returns the trimmed match with its punctuation. E.164 keeps a leading plus when one is present, or adds the selected region's dial code when the value needs local context. National, International, dashed, and dotted formats regroup the digits. Digits only removes punctuation.
What Unique only changes
Unique only is checked when the page opens. It compares normalized values, so the same number with different punctuation is counted once. Clear Unique only when each occurrence should remain in Output text.
Call (800) 555-0199 or 800-555-0199.
Unique only on:
(800) 555-0199
Which phone numbers are detected
The extractor accepts a leading plus or a digit sequence with spaces, parentheses, periods, or hyphens. After punctuation is removed, a candidate needs at least seven digits and no more than 15. Regional normalization can also skip a value when the normalized total exceeds 15 digits.
The pattern can also match text that resembles a phone number. The script does not check whether a number belongs to a real subscriber. Review the matches, especially local numbers whose meaning depends on Region.
Examples for call logs and text exports
Paste a call log into Input text, leave Unique only checked, and download the resulting list for a follow-up queue. For a text export, choose the relevant Region and E.164 in Standardize to before copying the output into a contact sheet.
Keep As found when the source punctuation needs review. Switch to Digits only when another text tool needs values without punctuation.
When another text extractor fits better
Use the Text Parsing & Data Extraction category to choose another extractor. The Address Extractor handles US-style street addresses and PO boxes. Choose Extract Emails from Text for email addresses, or Custom Regex Extractor for a pattern that is not a phone number.
Frequently asked questions
Can I extract phone numbers from a text file?
Yes. Choose Upload and select a .txt, .csv, .log, or .md file. The file text is placed into Input text for extraction.
How do I standardize phone numbers to E.164?
Choose the relevant Region, then select E.164 (+1XXXXXXXXXX) in Standardize to. Region supplies the country context for local-looking values.
Why are repeated phone numbers missing?
Unique only removes repeated normalized values by default. Clear Unique only to keep each detected occurrence in Output text.
Does the phone number extractor process text in the browser?
Yes. The extraction and formatting code runs in the browser with JavaScript. The page code does not send entered text with fetch, XMLHttpRequest, sendBeacon, or a form submission.