P

Phone Number Validator and Formatter Global E.164 Parser

Published byForcom APIs
10/21/2026
The Phone Number Validator & Formatter API parses any phone number from any country into a fully normalized, validated, and enriched result. Pass a raw phone string (with or without country code, with or without formatting) and an optional ISO-2 country hint — receive back the cleaned digits, validity flags, detected country, calling code, national number, line type (mobile, fixed-line, VoIP, toll-free, premium, etc.), and four standard formats: E.164, international, national, and RFC 3966 tel: URIs. Powered by Google's libphonenumber metadata, the API handles 240+ countries and territories, including IDN domains, ambiguous formats, and country-specific quirks. Perfect for cleaning up CRM data, validating signup forms in real time, formatting numbers for SMS gateways and CRMs, or normalizing legacy databases before migration. Returns a graceful isValid: false response instead of throwing — your form validation logic stays simple.
Last updated 2026-10-21