Phone Number Extractor

Pull phone numbers out of emails, documents and web pages in one go. Recognises spaces, dots, hyphens, brackets and country codes. Free and private.

Phone numbers are written in an endless number of ways. +1 (415) 555-0132, 020 7946 0958, 07700 900123, 415.555.0199: all are phone numbers, and none of them look alike. That makes finding them in a long text by eye slow and by simple search nearly impossible. This tool recognises the common patterns and lists them.

Paste any text and each number found appears on its own line.

How it decides

A phone number, as far as the tool is concerned, is a group of digits split by spaces, dots or hyphens, optionally starting with a plus and a country code, and optionally with the area code in brackets. It then checks the total number of digits. Anything with 7 to 15 digits is kept, which is the range from a short local number to the longest international format. Anything with fewer is probably a year, a price or a code; anything with more is probably an ID.

Date formats written like 2026-10-21 are specifically excluded, as they would otherwise pass for a phone number.

What it can miss, and what it can wrongly find

Because the rules look at digits and separators only, a few things need a look before you rely on the list.

A long unbroken run of digits, such as 4155550132, is not recognised, since it has no separators to mark it as a phone number, and could just as well be an order number or a timestamp. Numbers written with letters, like 1-800-FLOWERS, are not found. Written-out forms (“four one five…”) are not found.

On the other side, anything shaped like a number can be mistaken for one: a part number such as 12 345 678, a time and date together, or a sequence of prices. The tool cannot see what a number means, only its shape. Skim the output.

Cleaning up

Remove repeats is on by default, which is useful for email signatures and footers repeated across a long thread. You can sort the list, and choose between lines and a single comma-separated line. To make the numbers consistent, use find and replace afterwards: find and replace with a regular expression can strip the spaces and brackets from each number, so that you end with plain digits.

A word on privacy

Everything runs in your browser, so you can paste a customer export or a contact sheet without it leaving your machine. If you are collecting phone numbers for contact, bear in mind that rules on calling and texting people, such as those against unsolicited marketing, are strict in many countries.

Other details can be extracted from the same text with the email extractor and the URL extractor. To pick out all numbers rather than only phone numbers, use the number extractor.

Frequently asked questions

Why was a ten-digit number with no spaces not found?

Without spaces, dots or hyphens, a long run of digits could be an order number, an ID or a timestamp, so the tool does not treat it as a phone number. Add separators or use the number extractor.

Does it work for international numbers?

Yes, when they use separators. A leading plus with a country code is accepted, as are brackets around an area code.

Why did I get something that is not a phone number?

The tool looks only at the shape of the digits. Part numbers and other groups of 7 to 15 digits separated by spaces can look the same. Check the list before using it.