Extract Phone Numbers From Any Text

Extracting phone numbers is mostly a filtering problem: a pattern loose enough to catch every format also catches dates, invoice numbers and order ids. Paste your text below to get the real numbers, each shown as written and converted to international format. Matching runs in your browser, so nothing you paste is uploaded.

Why extracting phone numbers is harder than extracting emails

An email address has an unmistakable structure: something, an @, a domain, a dot, a top-level domain. A phone number has none. It is a run of digits with optional spaces, dots, hyphens, brackets and a leading plus — which is also an exact description of an invoice number, an order id, a date and a product code.

So a pattern alone is not enough. This tool matches loosely, then validates each candidate against the rules real numbers follow: the ITU standard caps a full international number at 15 digits and no national number is shorter than about 7, so anything outside that range is rejected. Repeated-digit runs like 0000000 go, and anything matching a date layout goes with them.

How to extract phone numbers from text

  1. Paste your text. Any source works: a web page, an email thread, a directory listing, a CRM export or a spreadsheet column.
  2. Set the country to assume. Numbers written without a country code are ambiguous. Choosing a country lets the tool convert them to international format. Numbers already starting with + are left as they are.
  3. Click Extract. Candidates are matched, then filtered — anything outside 7 to 15 digits, any repeated-digit run, and anything shaped like a date is discarded.
  4. Copy or download. Copy the list, or download it as a .txt of numbers or a .csv holding the original text, the digit count and the international form.

What comes out

Formats it recognises

Numbers written in any common style are matched: +44 20 7946 0018, (415) 555-0132, 0207.946.0018, +971 4 123 4567, 91-98765-43210. Separators may be spaces, hyphens, en dashes, dots or brackets in any combination.

Conversion to international format follows the normal rule: a leading zero is a national trunk prefix and is dropped before the country code is added, so 020 7946 0018 with the UK selected becomes +442079460018. Numbers that already begin with + keep their own country code regardless of the setting. There is no limit on how much text you can paste.

Why the text is never uploaded

Matching and validation run as JavaScript inside your browser tab, so nothing you paste is transmitted. Load the page, disconnect from the network, and extraction still works.

Phone numbers are personal data under GDPR and similar laws. Pasting a customer list into a website that processes it server-side means a third party now holds that list — a disclosure you would have to account for. Local extraction removes the question entirely.

Where it gets things wrong

No phone extractor is perfect, and it is better to know the failure modes than to trust the output blindly:

Always check the digit count column before importing anywhere that matters.

Who extracts phone numbers

Phone numbers compared with other values in the same text

A contact block usually holds more than one kind of value. Run the same text through the email and URL extractor to pull the addresses and links, and this tool for the numbers — two passes over one paste gives you a complete contact record.

If the numbers are trapped in a document rather than in plain text, extract the text first: use the PDF text extractor for a PDF, the DOCX text extractor for a Word file, or image to text OCR for a screenshot or scan. For a pattern this tool does not cover, the regex extractor lets you write your own.

Phone number formats and known parsing edge cases

ITU-T E.164 defines international format: a leading + sign, a country code of 1–3 digits, and a subscriber number for a combined maximum of 15 digits. National formats vary: the UK writes 07700 900000 locally, which in E.164 is +447700900000 — the leading 0 is a national trunk prefix discarded in international dialling. US numbers are ten digits; the 1 country code is optional in local context.

Three edge cases: (a) five-digit US zip codes and four-digit PINs look like phone fragments, so the tool requires at least seven consecutive digits after any country-code prefix before treating a string as a phone number; (b) numbers written with full stops as separators (1.800.555.0199) are matched alongside hyphen- and space-separated formats in the same pass; (c) extensions written as x1234 or ext 1234 after a number are captured as a suffix rather than as a standalone number.

Frequently asked questions

How do I extract phone numbers from a block of text?

Paste the text above, choose the country to assume for numbers without a country code, and click Extract. Results appear as written and in international format.

Is my text uploaded to a server?

No. Matching happens entirely in your browser. Nothing you paste is sent, stored or logged.

What is E.164 format?

The international standard for phone numbers: a plus sign, the country code, then the national number, with no spaces or punctuation — for example +442079460018. It is what most CRMs and SMS services require.

Why were some numbers skipped?

Anything under 7 or over 15 digits is rejected, since that is outside the ITU range for real numbers. Repeated digits and date-shaped runs are filtered too. That trade-off avoids flooding the results with order numbers.

Why did an order number come through as a phone number?

A reference number of plausible phone length cannot be distinguished from a phone number without context. Check the digit count column, which makes odd entries obvious.

Does it handle extensions?

The main number is extracted; the extension is not kept as a separate field. Search the source text if you need extensions.

Can it verify that a number is real?

No. Validation is structural only — the format and length are checked, not whether anyone answers. That needs a carrier lookup service.

Can I extract numbers from a PDF or an image?

Not directly. Extract the text first with the PDF text extractor or image to text OCR, then paste the result here.

• Specialist file parsing & security engineer • Verified: in our experience, our hands-on testing measured and verified private in-browser execution with zero file uploads • Last reviewed July 2026.