All free tools

Phone number formatter

Paste a list of phone numbers or upload a CSV. Every number comes back in one format: E.164, international, national, dashes, or dots, with the country code worked out and bad numbers flagged.

Published Updated

Example: +14158675309

Country for numbers without a country code

Check the phone number on every form fill, not just its format.

GoodInbound is a form backend and lead screen for any form. It:

  • Screens every submission for bots, fake sign-ups, and unsolicited sales pitches, whether a person or an AI wrote them.
  • Labels each one lead, review, spam, junk, or bot, with a one-line reason.
  • Enriches real leads and notifies you by email, Slack, or Telegram.
  • Sends only real leads on to your CRM, workflows, and ad platforms.
See pricing

How to use the phone number formatter

  1. Paste your numbers into the box, one per line, or select Upload CSV to load a file. For a CSV, the formatter takes the first column that looks like a phone number.
  2. Pick the output format: E.164, international, national, dashes, dots, or a tel: link.
  3. Choose the country for numbers written without a country code. It starts on the country your browser is set to.
  4. Turn on Remove duplicates if the same number may appear more than once in different formats.
  5. Select Copy formatted to paste the column back into your sheet, or Download CSV for the input, the result, and the country side by side.

Formatting runs in your browser as you type. Nothing is uploaded, and you can format up to 10,000 numbers at a time.

Phone number formats explained

The same number can be written half a dozen ways. Here is one US number and one UK number in each format the tool outputs:

  • E.164: +14158675309 and +442079460958. A plus sign, the country code, and the number, with no spaces or punctuation. This is the format to store.
  • International: +1 415 867 5309 and +44 20 7946 0958. E.164 with spaces, for display to readers in other countries.
  • National: (415) 867-5309 and 020 7946 0958. How people in that country write the number, including the leading 0 the UK uses for calls inside the country.
  • Dashes: 415-867-5309 and 020-7946-0958. The national format with dashes between the groups, common in US forms and documents.
  • Dots: 415.867.5309 and 020.7946.0958. The same with dots, a style many designers prefer on websites and business cards.
  • tel: link: tel:+14158675309. The value to put in an HTML link, so a tap on a phone starts the call.

Why E.164 is the format to store

E.164 is the international numbering standard from the ITU. Every number in it is unique worldwide and at most 15 digits, so two people typing the same number in different styles end up with identical values. Phone APIs such as Twilio and most SMS platforms expect E.164, and so do the ad platforms: Google Ads enhanced conversions ask for numbers in E.164 before hashing, and Meta's Conversions API wants the same digits with the country code included.

Store E.164 and format for display at the last moment. Converting from E.164 to any national or international style is reliable. Going the other way means guessing the country, which is where most formatting errors come from.

How the formatter reads each number

  • Country code: a number starting with + or with an international prefix such as 00 or 011 is read from its own country code. Anything else is read as a number from the country you picked.
  • Trunk prefix: the national 0 that the UK, Australia, Germany, and many other countries use is dropped in international and E.164 formats, so 020 7946 0958 becomes +44 20 7946 0958. Italy is the main exception: its landline numbers keep the 0 after +39.
  • Punctuation and spacing: brackets, dashes, dots, and spaces are ignored when reading the number, then added back in the style you chose.
  • Extensions: written as ext, x, or #, extensions are kept as "ext." in the national, international, dashes, and dots formats. E.164 has no extension, so it's left off there.
  • Validity: each number is checked against its country's numbering plan, including length and the digits it can start with. A number that fails is marked "Couldn't read this number" and copied back unchanged.

How to format phone numbers in Excel and Google Sheets

For a column of 10-digit US or Canadian numbers in Excel, select the cells, open Format Cells, and choose Special, then Phone Number. Excel shows each one as (415) 867-5309. That changes only how the number looks. The cell still holds 4158675309.

To convert the same column to E.164 in Excel 365, use ="+1"&RIGHT(CONCAT(IFERROR(MID(A2,SEQUENCE(LEN(A2)),1)*1,"")),10). In Google Sheets, use ="+1"&RIGHT(REGEXREPLACE(TO_TEXT(A2),"\D",""),10). Both strip everything but digits and add +1, so they only work when every number in the column is from the US or Canada.

Two spreadsheet habits break phone numbers. Excel drops a leading zero from anything it reads as a number, so 07911 123456 turns into 7911123456, and it shows long numbers in scientific notation, like 4.42E+11. Format the column as Text before pasting, or keep the numbers in E.164 with the plus sign, which Excel leaves alone. For lists with more than one country, paste the column into this formatter instead of a formula.

Why consistent formatting matters in a CRM

  • Duplicates: (415) 867-5309 and +1 415-867-5309 look like two different contacts to most CRMs and import tools. Matching on E.164 catches them.
  • Click-to-call and SMS: dialers and texting tools need the country code. A national number without it fails, or calls the wrong country.
  • Ad platform matching: offline conversion imports and customer lists match on hashed phone numbers. A number hashed with spaces or without its country code never matches the platform's record, so the conversion is lost.
  • Sync errors: HubSpot, Salesforce, and their integrations reject or rewrite numbers they can't parse, which is how one contact ends up with three versions of the same number.

Formatting phone numbers in code

This tool uses libphonenumber-js, the JavaScript port of Google's libphonenumber, the library Android uses. In your own code, parsePhoneNumber("020 7946 0958", "GB").format("E.164") returns +442079460958, and the same call with "NATIONAL" or "INTERNATIONAL" returns the other styles. Python has the phonenumbers package, built on the same metadata.

To check the number on every form submission, not only format it, use the GoodInbound phone validation API. It returns the number in E.164 with its country, line type, and fake-number flags, plus the carrier for US and Canadian numbers.

Questions

Only real leads reach your team and your ad platforms

Talk to sales