Extract phone numbers from text

Paste any text and get the phone numbers it contains. Filter international or Spanish numbers, write them with or without spaces, or in international format, and remove repeats.

  • Free
  • No sign-up
  • Runs in your browser
extract-phone-numbers

100% private — your text is processed in your browser and never sent to any server.

How it works

Paste your text

A contact list, an email, a document, a page of a directory or an export.

Choose the filter and format

All numbers, international only or Spanish only; as written, digits only or +34 style.

Copy the list

One number per line, or separated by commas or semicolons.

Phone numbers hidden in ordinary text

Phone numbers are written in a dozen ways: 612 34 56 78, 612-345-678, (+34) 91 234 56 78, 0034 600 000 000, +44 20 7946 0958. They appear in the middle of sentences, in email signatures, in directories and in exports where they share a cell with names and notes. A simple search for digits either misses formats or drags in dates and other numbers. This tool recognises the common shapes of a phone number and gives you back a clean list.

How it decides that something is a phone number

It looks for a run of digits that can be separated by spaces, dots, dashes, slashes or brackets, optionally starting with a plus sign or a double zero, and it keeps it if it has between 7 and 15 digits, which is the range that covers national numbers and the international standard. Things that look like dates, such as 12/05/2024 or 2024-05-12, and decimal numbers are left out.

Filter and format

  • International only keeps the numbers that start with a plus sign or 00, which are the ones that state their country.
  • Spanish only keeps numbers with nine digits that start with 6, 7, 8 or 9, with or without the +34 or 0034 prefix: mobile and landline numbers.
  • Digits only removes spaces, dots, dashes and brackets, which is the form you need for a spreadsheet, a database or a lookup.
  • International format writes Spanish numbers with the +34 prefix and keeps other international numbers as they are, using the plus sign followed by digits only.

Repeats

Repeated numbers are removed by comparing only the digits, so 612 34 56 78 and 612-345-678 are recognised as the same number.

What it does not do

The tool works by shape: it cannot tell whether a number is in service, who it belongs to, or whether a long number is really a phone number and not an order number or an identifier that has the same length. Check the list before using it. Numbers without a prefix from countries other than Spain appear only with the "All" filter, and are not converted to international format because the country is unknown.

Frequently asked questions

How do I extract phone numbers from a text?
Paste the text and the phone numbers appear in the results box. Copy them or choose a different format.
Which formats does it recognise?
Numbers written with spaces, dots, dashes, slashes or brackets, with or without a + or 00 prefix, as long as they have between 7 and 15 digits.
Can I keep only Spanish numbers?
Yes. Choose "Only Spanish numbers". It keeps nine-digit numbers starting with 6, 7, 8 or 9, with or without +34.
How do I get the numbers without spaces?
Choose "Digits only" under "Write them as". Spaces, dashes and brackets are removed.
Does it confuse dates with phone numbers?
It excludes the usual date shapes, such as 12/05/2024 and 2024-05-12, and decimal numbers. Always review the list.
Are my texts uploaded anywhere?
No. Everything happens in your browser.