Boneyard Tools

Extract Phone Numbers From Text

Paste a block of text, an email thread or a scraped page and the extractor lists every phone number it contains, one per line. It recognises common US and international shapes and only keeps candidates that hold between 7 and 15 digits, so years and long ID codes are ignored. Duplicates are collapsed by their digits by default, and you can sort the list before copying.

How to extract phone numbers

  1. Paste text, a contact list, an email or a web page into the Your text box.
  2. Leave Remove duplicates ticked to keep only one copy of each number.
  3. Tick Sort by digits if you want the results ordered rather than left in reading order.
  4. Read the running found count shown above the results box.
  5. Click Copy to grab the clean list, one number per line.

Examples

Pull a US and an international number from a note

Call (212) 555-0143 or +44 20 7946 0958 today.
(212) 555-0143
+44 20 7946 0958

Collapse the same number written two ways

Reception 555-123-4567, direct 555.123.4567.
555-123-4567

Skip a year and a long ID code

Founded 1998, hotline 800-555-0199, ref 123456789012345678.
800-555-0199

Frequently asked questions

Which phone formats are detected?

Common shapes such as a leading + country code, (123) 456-7890, 123-456-7890, 123.456.7890, a plain 10-digit run and international numbers written with spaces. Digits may be separated by spaces, dots, hyphens or parentheses.

How does it avoid matching years or ID numbers?

After finding a candidate the extractor counts its digits and only keeps runs of 7 to 15 digits. A four-digit year like 1998 is too short and an 18-digit reference code is too long, so both are dropped.

Can it remove duplicate numbers?

Yes, and Remove duplicates is on by default. Two numbers are treated as the same when their digits match, so 555-123-4567 and 555.123.4567 count once. The first spelling you pasted is the one that is kept.

Does it change how a number is written?

No. Whatever formatting you pasted, including brackets, dots, spaces and the plus sign, is preserved in the output. The digit-only form is used internally only for de-duplicating and sorting.

What does sorting by digits do?

It reorders the list by comparing the stripped digit strings, so numbers starting with a lower digit come first. With sorting off, numbers appear in the order they were found in your text.

Will it validate that a number is real or dialable?

No. This is a pattern extractor, not a validator. It has no idea whether an area code exists or a line is in service, so treat the results as candidates to review rather than verified contacts.

Can it pull extensions or numbers split across lines?

An extension written after separators can be joined into the match when it sits inside the same run of digits and separators. A number broken across two lines by a hard line break is treated as two fragments, so rejoin the text first if that happens.

Is there a limit on how much text I can paste?

There is no fixed cap. The scan runs in your browser, so the practical ceiling is your device memory, and even long pages are processed almost instantly.

Is my text private?

Yes. Everything runs locally in your browser and nothing is uploaded to a server, so contact lists and message logs never leave your device.

Learn more

Related tools