Previous release15 stable releases behind. The latest is 1.13.15.See 1.13.15
JavaScript library · stable
libphonenumber-js 1.13.0
Released 8 May 2026. 1 days after 1.12.43. The package is 1.3 MB larger than 1.12.43.
Install this version
v1.13.0
npm install libphonenumber-js@1.13.0yarn add libphonenumber-js@1.13.0pnpm add libphonenumber-js@1.13.0<script src="https://cdn.jsdelivr.net/npm/libphonenumber-js@1.13.0/bundle/libphonenumber-max.js"></script>At a glance
- Released
- 8 May 2026
- Unpacked size
- 9.6 MB
- Files
- 922
- Runtime dependencies
- none
Install 1.13.0
sh
npm install libphonenumber-js@1.13.0sh
yarn add libphonenumber-js@1.13.0sh
pnpm add libphonenumber-js@1.13.0html
<script src="https://cdn.jsdelivr.net/npm/libphonenumber-js@1.13.0/bundle/libphonenumber-max.js"></script>Download
- libphonenumber-js-1.13.0.tgznpm package · 922 files · 9.6 MB unpackedDownload
- Checksumssha512-N12qmdu0BM1wVNkMKYOoJ…
- libphonenumber-min.jsBrowser bundle, min data (smallest) · jsDelivr CDNOpen
- libphonenumber-max.jsBrowser bundle, max data (all number types) · jsDelivr CDNOpen
- libphonenumber-mobile.jsBrowser bundle, mobile numbers only · jsDelivr CDNOpen
- Browse every filejsDelivr file browser for 1.13.0Browse
- v1.13.0 on GitLabReleaseViewSource .zip
We do not host these files. The links go to the official npm registry and public CDNs.
What changed in 1.13.0
- Merged a [pull request](https://gitlab.com/catamphetamine/libphonenumber-js/-/merge_requests/29) by [Matt d'Entremont](https://gitlab.com/mdentremont) that adds ES6-only versions of
min/max/mobile/coreexports. - The new exports are:
min—libphonenumber-js/min/es6max—libphonenumber-js/max/es6mobile—libphonenumber-js/mobile/es6- "custom" —
libphonenumber-js/core/es6 - The bundle size reduction is roughly
37 KBraw and3.8-4.1 KBgzipped. ``| legacy raw | modern raw | legacy gzip | modern gzip min | 177,666 B | 140,563 B | 42,081 B | 38,223 B max | 251,327 B | 214,224 B | 62,690 B | 58,750 B mobile | 193,117 B | 156,014 B | 46,712 B | 42,682 B core | 93,076 B | 56,158 B | 22,308 B | 18,223 B`` - Updated
libphonenumber-metadata-generatorpackage. No functional changes, just cosmetics: renamed some API methods and parameters. - (TypeScript) Added a new exported type
PhoneNumberType, which is same as the old exportedNumberTypetype (which is now considered deprecated) except forundefinedvalue. - (TypeScript) Added comments and absent properties in
MetadataJsoninterface.
Use it in your browser
14 tools built on libphonenumber-js
Each one runs this library in your browser. Nothing you type is uploaded.
- Phone Number ValidatorCheck any phone number, see its country and line type, and copy it as E.164, international or national.
- Phone Number FormatterFormat phone numbers as E.164, international, national or RFC 3966 tel: links. Paste one number or a list.
- E.164 ConverterConvert phone numbers in any style to clean E.164 format for APIs, databases and SMS.
- Phone Number ParserBreak a phone number into country, calling code, national number, extension and line type.
- Bulk Phone ValidatorValidate a list of phone numbers at once and export the valid ones as E.164 or CSV.
- WhatsApp Link GeneratorCreate a wa.me click-to-chat link for any number, with an optional pre-filled message.
- Country Code LookupSearch the international calling code, exit code and trunk prefix of every country.
- Phone Number Length by CountryHow many digits a phone number has in every country, with and without the country code.
- Phone Number Type CheckerCheck whether a number is mobile, landline, VoIP, toll-free or premium rate.
- Phone Number ExtractorPull every phone number out of any text and get a clean E.164 list.
- Phone Number Country CheckerFind out which country a phone number is from, with its flag and calling code.
- Click-to-Call Link GeneratorMake a tel: link and an HTML snippet that starts a call when tapped.
- Phone Number Regex GeneratorCopy a phone number validation regex for any country, with code for JavaScript, Python and PHP.
- libphonenumber-js PlaygroundTry libphonenumber-js online. Type a number and see the exact object it returns, with the code that produces it.
Guides
How to install libphonenumber-jsInstall libphonenumber-js with npm, yarn or a CDN. Compare the min, max and mobile builds with measured bundle sizes, and see TypeScript and import examples.Read the guide libphonenumber-js vs Google libphonenumberHow libphonenumber-js differs from Google's libphonenumber and its ports for Java, Python, PHP, C# and Go. What each one includes and which to pick.Read the guide Format a phone number as the user typesUse the AsYouType class in libphonenumber-js to format phone numbers while typing. Includes a live demo, default country handling and cursor tips.Read the guide