Extract Phone Numbers

Pull phone numbers, including international formats, out of a block of text.

Text
Phone numbers
Runs locally in your browser

About the Extract Phone Numbers

Copy a supplier directory, a conference programme or a page of branch listings and the phone numbers sit mixed in with everything else. This tool finds them, drops the repeats and lists the unique ones, so building a contact sheet takes a paste rather than an afternoon.

Matching is format-tolerant, because phone numbers have no single format. An optional leading plus, then a digit, then at least seven more characters drawn from digits, spaces, dots, hyphens and round brackets, ending on a digit. That covers +1 (312) 847-1928, +44 20 7946 0958, 0800 123 4567 and the dotted style common in France.

Tolerance costs precision, and this is the part to check. Anything with the right shape matches: a 16-digit card number, an ISBN, a long reference code, a bank account, even a date range written with dots. Two short numbers separated by nothing but spaces can also be swallowed as one long one. Read the list before you use it, and never treat what comes out as validated.

Nothing is uploaded, which matters when the source is a customer list. Pull the addresses out of the same text with Extract Email Addresses, and put the results in order with Sort Lines.

How to use

  1. Paste the text.
  2. Copy the list of numbers.
  3. Review for any false positives, since phone formats vary.

Common questions

Does it handle international numbers?
Yes, numbers with a leading + and country code are matched, as are national formats with brackets and separators.
Might it catch things that are not phone numbers?
Possibly, since long digit groups can look like numbers. Review the results.
Are duplicates removed?
Yes, each unique number appears once.