Home / How-to guides / Phone Number Validator (bulk, offline)

How to validate and format phone numbers in bulk

Validate and normalise phone numbers in bulk: E.164, country, line type, carrier and time zones, with no external calls.

Open on Apify ↗Actor page

Updated 2026-11-24

The problem

A CRM export mixes formats: "+34 612 345 678", "(415) 555-2671", numbers with no country code. Dialers and SMS tools want E.164, and duplicates hide behind different spellings of the same number.

Steps

  1. Open the Actor on Apify. Create a free Apify account if you do not have one. Every account gets free monthly credit, enough to try this on real data. Phone Number Validator (bulk, offline) ↗
  2. Fill in the input. The input is a small JSON. These are the first fields and example values:
input.json
{
  "numbers": [
    "+34 612 345 678",
    "(415) 555-2671"
  ],
  "csvUrl": "https://example.com/leads.csv",
  "defaultCountry": "ES"
}
  1. Run it. Press Start in the console, or call it from the API, a schedule, n8n, Make or Zapier. See the run guide for code you can copy. Run guide (API, n8n, Make, MCP)
  2. Take the results. Open the Output tab to preview the dataset and download it as JSON, CSV or Excel. Through the API you read the same dataset items.

A tip for this Actor

Set defaultCountry to the country most of your numbers come from, so numbers written without + are read correctly. Valid means a correct length and an existing numbering range, not that the line is active.

Input fields

FieldTypeDescription
numbersarrayPhone numbers in any format.
csvUrlstringOptional URL of a CSV or text file with numbers.
defaultCountrystringISO country for numbers written without +.
onlyValidbooleanReturn only valid numbers.

Real output sample

First item of 5 from a real run, shortened for display. The full sample is a download on the Actor page.

phone-number-validator.json
{
  "input": "+34 612 345 678",
  "valid": true,
  "reason": null,
  "e164": "+34612345678",
  "type": "MOBILE",
  "country": "ES",
  "countryCallingCode": "34",
  "nationalFormat": "612 34 56 78",
  "internationalFormat": "+34 612 34 56 78",
  "location": null,
  "carrier": "Syma",
  "timezones": [
    "Europe/Madrid"
  ],
  "checkedAt": "2026-11-26T05:14:55.737Z"
}

What it costs

Pay per event: number is charged $0.00 each. Apify platform usage is billed separately and is usually a few cents per run.

ResultsResult events
100$0.07
1,000$0.70
10,000$7
100,000$70

Limits you should know

  • It does not tell whether a number is active: valid means a correct length and an existing numbering range, not that the line is connected.
  • The carrier is the original allocation: number portability is not taken into account.
  • It does not check WhatsApp or Telegram and makes no calls to third parties.
  • Phone numbers can be personal data: you need a lawful basis (GDPR, CCPA, TCPA) for the lists you process.

Questions

Does it tell me if a number is active?

No. Valid means a correct length and an existing numbering range, not that the line is connected.

Does it check WhatsApp?

No, that would break the messaging app's terms.

Where does the data come from?

Google libphonenumber metadata bundled in the Actor; no external calls.

Rate it on Apify

Used it? A rating or review on Apify helps other people judge it, and tells us what to fix.

Rate it on Apify ↗

More guides