Bulk Phone Number Validator & Formatter (Offline, 240+) avatar

Bulk Phone Number Validator & Formatter (Offline, 240+)

Pricing

from $1.00 / 1,000 number validateds

Go to Apify Store
Bulk Phone Number Validator & Formatter (Offline, 240+)

Bulk Phone Number Validator & Formatter (Offline, 240+)

Validate and format thousands of phone numbers offline using libphonenumber. Get validity, line type (mobile, landline, VoIP, toll-free), country, E.164, international, national and RFC3966 formats, failure reasons and duplicates.

Pricing

from $1.00 / 1,000 number validateds

Rating

0.0

(0)

Developer

Beryline Pastel

Beryline Pastel

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 hours ago

Last modified

Features

Limited permissions

Share

Clean a phone list in minutes. Paste numbers (or a CSV column) and get, for every row: is it valid, is it possible, which country, which line type (mobile, landline, toll-free, VoIP...), and the number rewritten as E.164, international, national and RFC3966 (tel:) — plus the exact reason when a number fails and a flag for duplicates.

It runs on Google's open-source phone metadata (the libphonenumber rules) completely offline: no API keys, no third-party calls, no personal data leaves the run. 100,000 numbers are processed in seconds of compute.

Why use it

  • Fix messy lists before you import them into a CRM, dialer, SMS tool or database: one consistent E.164 column.
  • Format-level validation across 240+ countries and regions, using each country's numbering plan (length and prefix rules).
  • Line type (MOBILE, FIXED_LINE, FIXED_LINE_OR_MOBILE, TOLL_FREE, VOIP, PREMIUM_RATE, PERSONAL_NUMBER...) where the numbering plan distinguishes them.
  • Clear failure reasons: TOO_SHORT, TOO_LONG, INVALID_COUNTRY, NOT_A_NUMBER, INVALID_LENGTH, INVALID_NUMBER.
  • Local numbers made easy: set a default country (e.g. VN) and 0912345678 becomes +84912345678.
  • Extensions (ext. 45, x45) are parsed into their own field.
  • Duplicate flagging: different notations of the same number (0912 345 678 vs +84 912 345 678) are detected.
  • One row per input, same order as your list, so it is easy to join back to your spreadsheet.

What it does NOT do

This is a numbering-plan check, not a live check. It tells you a number is well-formed and plausible for its country. It does not tell you whether the number is currently connected, who owns it, which carrier it is on, whether it has WhatsApp/Telegram, or whether it is on a do-not-call list. type comes from numbering-plan ranges; for some countries (e.g. the US) mobile and landline share ranges and the result is FIXED_LINE_OR_MOBILE, and numbers that were ported between carriers or types cannot be detected offline.

Input

FieldDescription
phoneNumbersList of numbers, one per item.
textBlobOptional pasted text/CSV, one number per line. For CSV/TSV lines the first cell containing a digit is used.
skipFirstLineIgnore the first line of textBlob (CSV header).
defaultCountryISO-2 code (US, GB, VN, DE...) used for numbers without a + prefix.
outputFormatall (default), e164, international, national or rfc3966. E.164 is always present.
dedupeFlag later duplicates (valid numbers only) in duplicateOf.

Blank lines and empty items are ignored (and never charged).

{ "phoneNumbers": ["0912345678", "+44 20 7946 0958", "12345"], "defaultCountry": "VN", "dedupe": true }

Output (one row per input)

{
"input": "0912345678",
"isValid": true,
"isPossible": true,
"country": "VN",
"countryCallingCode": "84",
"nationalNumber": "912345678",
"extension": null,
"type": "MOBILE",
"E164": "+84912345678",
"international": "+84 912 345 678",
"national": "0912 345 678",
"RFC3966": "tel:+84912345678",
"reason": null,
"duplicateOf": null
}

An invalid row keeps whatever could be parsed, e.g. "input": "12345" with "isValid": false, "reason": "TOO_SHORT". Text that is not a number gives "reason": "NOT_A_NUMBER" and null formats. A run summary (counts of valid/invalid/duplicates, by line type and country) is saved to the key-value store as SUMMARY.

Pricing

Pay per event: $0.001 per number validated ($1 per 1,000; $100 per 100,000). Every non-empty input row is one billable event, valid or invalid — the check itself is the service. Duplicates flagged by dedupe are still processed and billed. Set Max cost per run to cap spending; the actor stops cleanly when the limit is reached.

FAQ

How many numbers can I run at once? Tested with 100,000 numbers on the default 256 MB memory. Larger lists work in several runs.

Why does a number I know is real show isValid: false? The numbering plan may not yet cover a recently allocated range, or the number was typed with a wrong digit count. isPossible and reason show whether the length is at least plausible.

Why FIXED_LINE_OR_MOBILE? In some countries (US, Canada...) the numbering plan does not separate landlines from mobiles, so offline data cannot tell them apart.

Do vanity numbers like 1-800-FLOWERS work? Letters in a valid pattern are converted to digits as the telephone keypad does; random words give NOT_A_NUMBER.

Is any data sent to a third party? No. Validation uses metadata bundled with the actor.

Data and rules come from the open-source libphonenumber metadata via the libphonenumber-js package. The actor does not call any external service or scrape any website.

Use with AI agents (MCP)

This Actor works as a tool for Claude, ChatGPT, Cursor and other MCP clients through the Apify MCP server:

https://mcp.apify.com?tools=beryline_pastel/bulk-phone-number-validator

Example prompt: "Validate this list of phone numbers, convert them to E.164 and mark mobile vs landline."