libphonenumber-js
libphonenumber-js: A focused open-source choice for validating phone numbers in web forms. Ranked #25 of 25 in Phone Number Validation Software by our editors (6.8/10); pricing: Free plan; best for open-source web form validation.
At a glance
- Editor score6.8 / 10
- PricingFree plan
- Best forOpen-source web form validation
- Free planYes
- Paid fromFree
- Validation modesApi
- Facts checked20 Sep 2026

Where it wins
- Parses, formats, and validates complete phone numbers
- Formats numbers as users type and detects phone-number types
- Supports selectable or custom metadata sets and TypeScript definitions
Where it doesn't
- No live carrier lookup or carrier data
- No bulk validation workflows or paid plans
- Web-focused library rather than a hosted validation service
Our verdict on libphonenumber-js
libphonenumber-js is an open-source JavaScript/TypeScript library for developers building web forms and other web experiences that handle personal phone numbers. It provides functions to parse complete numbers, check possible and valid numbers, validate length and digits, and format numbers nationally or internationally. It can also find complete phone numbers in text, format input as users type, and provide TypeScript definitions. The package is distributed through npm and can also be included directly in web pages.
Its strongest fit is developer-controlled form validation. As-you-type formatting can help structure input while a user enters a number, while selectable or custom metadata sets give teams control over the information included in the package. With maximum metadata, the library can detect phone-number types. This makes it suitable for web applications that need local parsing, formatting, and validation logic without adopting a hosted service. The open-source model also keeps the core library available without a paid tier.
The scope is deliberately narrower than a full phone-validation platform. libphonenumber-js does not provide live carrier lookup, carrier data, bulk-upload workflows, or paid plans. It is also focused on web use rather than broader platform coverage. Choose it when your team wants an open-source JavaScript/TypeScript library for client-side or application-level phone-number handling and can manage the surrounding application workflow. Consider another option when you need carrier verification, bulk validation, or a hosted service with broader operational features.
Your product? Our editors can test libphonenumber-js in depth and publish a review, labelled as paid · from $149/mo →
libphonenumber-js pricing
libphonenumber-js fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Validation modes | Api |
| Line type data | Yes |
| Carrier data | No |
| Reachability data | Yes |
| Bulk validation | No |
| Monthly lookup limit | Not verified |
| Deployment | Cloud |
| Platforms | Web |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 20 Sep 2026 |
Alternatives to libphonenumber-js
- Neutrino Phone ValidateA budget-friendly API for high-volume phone validation and number enrichment.9.4
- Abstract Phone Validation APIA data-rich phone validation API with broad integrations and a free starting point.9.2
- VeriphoneA practical validator for API workflows, bulk CSV checks, and carrier data.9.0
See all libphonenumber-js alternatives →
Used libphonenumber-js? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used libphonenumber-js for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
libphonenumber-js is listed in our Phone Number Validation Software directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/libphonenumber-js/"><img src="https://www.itechguides.com/best/badge/libphonenumber-js.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update


