Phone Number Validator & Formatter (Bulk, CSV, Dataset)
Pricing
from $0.80 / 1,000 number validateds
Phone Number Validator & Formatter (Bulk, CSV, Dataset)
Validate and format phone numbers in bulk from a list, free text, CSV, Excel, Google Sheets or any Apify dataset. Get valid/invalid, line type, E.164 and national formats, country, city, time zone and risk flags, with duplicates removed. No API key needed.
Pricing
from $0.80 / 1,000 number validateds
Rating
0.0
(0)
Developer
Ocrad
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Phone Number Validator & Formatter (Bulk, CSV, Dataset)
Clean a phone list in one run. Paste numbers, drop in a CSV, Excel file or Google Sheet, paste raw text, or point it at the results of any other Apify Actor, and get every number back validated, formatted and labelled:
- Valid or not, and why not (
TOO_SHORT,TOO_LONG,INVALID_NUMBER…). - Ready-to-use formats: E.164 (
+15148720311) for CRMs and SMS tools, national, international andtel:links. - Line type: mobile, landline, toll-free, premium rate, VoIP, shared cost, pager …
- Where it is: country, city, province or state, area code and time zones, so you call at the right hour.
- Original carrier for mobile ranges, where published.
- Risk flags before you dial or import: premium rate, toll-free, VoIP, fictional 555 numbers, a number from another country than your list, duplicates.
The same number written five different ways (514-872-0311, (514) 872 0311, +1 514 872 0311 …) is recognised as one number: duplicates are removed and never charged.
Everything runs inside the Actor from the official numbering-plan data of 240+ countries: no API key, no external service, nothing to set up. It handles tens of thousands of numbers per minute.
📋 Example Output
Input 514 872-0311 with default country CA:
{"input": "514 872-0311","valid": true,"possible": true,"invalidReason": null,"e164": "+15148720311","international": "+1 514-872-0311","national": "(514) 872-0311","rfc3966": "tel:+1-514-872-0311","digitsOnly": "15148720311","extension": null,"callingCode": 1,"nationalNumber": "5148720311","areaCode": "514","countryCode": "CA","countryName": "Canada","lineType": "FIXED_LINE_OR_MOBILE","isMobile": true,"location": "Montreal, QC","city": "Montreal","region": "QC","originalCarrier": null,"timeZones": ["America/Toronto"],"flags": [],"isDuplicate": false,"duplicateOf": null,"countrySource": "default","sourceType": "list","source": "phoneNumbers","row": 1,"field": null,"validatedAt": "2026-11-07T20:59:16.416446+00:00"}
A French mobile comes back as "lineType": "MOBILE", "originalCarrier": "SFR", "national": "06 12 34 56 78". An invalid entry keeps the same columns, with "valid": false and the reason in invalidReason and flags.
In the US, Canada and the other +1 countries, mobile and landline numbers share the same ranges, so they are reported as FIXED_LINE_OR_MOBILE. Toll-free and premium-rate numbers are still told apart.
Files you also get
| File | What it is |
|---|---|
valid-numbers.csv | Valid, unique numbers only, ready for Excel or a CRM import (E.164, national, international, type, location, time zone, flags, source row) |
SUMMARY | Counts: valid, invalid, duplicates, and breakdowns by country, line type, flag and source |
Both are in the run's key-value store, linked from the Output tab.
🚩 Flags
| Flag | Meaning |
|---|---|
TOLL_FREE | 1-800, 0800 … free to call, usually a business switchboard |
PREMIUM_RATE | 1-900, 0899 … expensive for the caller |
VOIP | Internet-based number range |
SHARED_COST, PERSONAL_NUMBER, PAGER, UAN, VOICEMAIL | Special-purpose ranges |
FICTIONAL | 555-0100 to 555-0199, reserved for films and examples in North America |
OTHER_COUNTRY | Written without a country code but belongs to another country than your default (for example an 876 Jamaica number in a US list) |
DUPLICATE | Same number seen earlier (only when Remove duplicates is off) |
TOO_SHORT, TOO_LONG, INVALID_LENGTH, INVALID_NUMBER, INVALID_COUNTRY_CODE, NO_COUNTRY, NOT_A_NUMBER | Why a number is invalid |
📥 Inputs you can mix in one run
- Phone numbers: a list, one per line, in any format. A line holding several numbers (
514 555 1234; 438 555 9876) is split. - Free text: paste emails, notes or a page of text. Every phone number inside is found.
- Files and pages: CSV or TSV (comma, semicolon, tab), Excel
.xlsx, JSON, TXT, a Google Sheet shared as "Anyone with the link", or a web page (itstel:links and visible numbers). - Apify datasets: the dataset ID of another Actor's run, for example a real-estate, jobs or business-directory scraper. Phone fields are found automatically, including nested ones such as
agent.phones.
Phone columns are detected by name in English and French (phone, tel, mobile, cell, fax, WhatsApp, téléphone, cellulaire, portable …). If your column has another name, list it in Phone fields.
Country. A number written with + or 00 is placed by its own country code. Otherwise the row's own country column is used (country, countryCode or pays: an ISO code, a name such as Canada or France, or a calling code such as +33), and then the Default country.
⚙️ Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
phoneNumbers | Array | [] | Numbers to validate, one per line. |
text | String | Free text to search for numbers. | |
fileUrls | Array | [] | Links to CSV, TSV, XLSX, JSON or TXT files, Google Sheets or web pages. Up to 50 MB each. |
datasetIds | Array | [] | Apify dataset IDs to read numbers from. |
phoneFields | Array | auto | Columns or fields holding the numbers. Dot paths work: contact.mobile. |
countryField | String | auto | Column or field with each row's country. |
defaultCountry | String | US | Country for numbers written without +: a 2-letter code (CA, GB, FR, MA …) or a name. |
locale | String | en | Language of country, city and carrier names: en or fr. |
deduplicate | Boolean | true | Keep each number once. Off = repeats are output with a DUPLICATE flag, free of charge. |
includeInvalid | Boolean | true | Also output invalid numbers with the reason. Off = valid numbers only. |
keepSourceRecord | Boolean | false | Attach the original row or dataset item to each result, to merge back into your list. |
maxNumbers | Integer | 0 | Stop after this many unique numbers. 0 = no limit. |
At least one of phoneNumbers, text, fileUrls or datasetIds is needed.
Example Input
{"fileUrls": [{ "url": "https://docs.google.com/spreadsheets/d/your-sheet-id/edit#gid=0" }],"datasetIds": ["your-scraper-dataset-id"],"defaultCountry": "CA","locale": "fr","includeInvalid": true,"keepSourceRecord": true}
💰 Pricing
Pay only for what you get:
| Event | Price | When |
|---|---|---|
| Run start | $0.002 | Once per run |
| Number validated | $0.0008 | Each unique number delivered, valid or invalid |
Duplicates, blank cells and invalid numbers you chose to skip (includeInvalid off) are free.
| Example | Cost |
|---|---|
| 100 numbers | $0.082 |
| 1,000-row CSV | $0.802 |
| 10,000-lead list | $8.002 |
Set a maximum cost per run in the run options: the Actor stops cleanly at that limit and keeps everything validated so far.
Use it from the API, MCP and AI agents
Call it from any language with the Apify API, schedule it after your scrapers, or chain it with an integration so every new scraper run is cleaned automatically: pass the scraper's defaultDatasetId in datasetIds. It also works as a tool for AI agents through the Apify MCP server.
Good to know
- Validation checks that a number can exist under its country's numbering plan (right length, real area code and range, line type). It does not call the number, so it cannot tell whether a line is currently switched on.
originalCarrieris the operator the range was first given to. Numbers can be moved to another operator since.
💬 Support and Feedback
Reach out via Apify support channels or leave feedback on the Actor's page.
Is it legal to validate phone numbers?
Checking the format and numbering plan of a number is legal, and nothing is sent to the number or any third party. Phone numbers of individuals are personal data: process them only with a legitimate reason, and follow the privacy and anti-spam rules that apply to you (GDPR, PIPEDA, Quebec's Law 25, TCPA, CASL …). Consult your legal advisor if unsure.