Extract Phone Numbers
Pull phone numbers out of text. Handles US, international, and most common formats.
0 phone numbers found
About Extract Phone Numbers
The phone-number extractor scans text for patterns that look like phone numbers: 7–15 digits with optional parentheses, dots, hyphens, or spaces as separators, and an optional country-code prefix. It's tuned to catch common US, UK, and international formats without grabbing every random digit sequence.
When to use it
- Pulling contact numbers out of a copy-pasted directory
- Auditing a document for PII before sharing
- Building a phone list from chat transcripts or emails
How it works
Phone-shaped sequences are matched and then filtered by digit count — anything with fewer than 7 or more than 15 digits is dropped (matching the E.164 international phone number length range).
Examples
Call (415) 555-0100 or +44 20 7946 0958 for support.
(415) 555-0100 +44 20 7946 0958
Frequently asked questions
- How accurate is the matching?
- Good for the common cases but not foolproof — long ID numbers or formatted dates can be mistaken for phone numbers. Review the output for false positives.
- Does it parse to E.164?
- No — it returns numbers in their original form. For canonical E.164 parsing (e.g., +14155550100), use a dedicated library like libphonenumber.
- Are extensions handled?
- Extensions written as separate text ('x1234', 'ext. 5') are not part of the match. Only the main number is extracted.