npm
npmjs.com › package › libphonenumber-js
libphonenumber-js - npm
2 weeks ago - A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript. Latest version: 1.12.41, last published: 5 days ago. Start using libphonenumber-js in your project by running `npm i libphonenumber-js`. There are 3934 ...
» npm install libphonenumber-js
Published Mar 28, 2026
Version 1.12.41
Author catamphetamine
Js
libphonenumbers.js.org › docs › getNumberType
getNumberType | libphonenumbers
const phoneUtil = require('libphonenumbers').PhoneNumberUtil.getInstance(); // Parse number with US country code and keep raw input · const number = phoneUtil.parseAndKeepRawInput('202-456-2121', 'US'); // Get type of phone number · console.log(phoneUtil.getNumberType(number)); // 2 // FIXED_LINE_OR_MOBILE ·
Phone number formatting (libphonenumber) for Enhanced conversions GAs
Yes, you can transform it with a custom javascript variable More on reddit.com
What happened to libphonenumber-js?
The author released an article explaining what happened: https://medium.com/@catamphetamine/how-github-blocked-me-and-all-my-libraries-c32c61f061d3 libphonenumber-js lives on at GitLab: https://gitlab.com/catamphetamine/libphonenumber-js More on reddit.com
International Phone Input with React Hook Form
hey bro did you found a solution ? More on reddit.com
react-native-intl-phone-field: Simple TextInput that validates international Phone Numbers
Hey! Looks very nice, is there maybe also a dropdown for selecting the country code? Btw, https://www.npmjs.com/package/libphonenumber-js is a much smaller library than the google version. More on reddit.com
CDNJS
cdnjs.com
cdnjs - The #1 free and open source CDN built to make life easier for developers
Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving over 200 billion requests each month, powered by Cloudflare. We make it faster and easier to load library files on your websites.
GitHub
github.com › telefonicaid › libphonenumber-js › blob › master › README.md
libphonenumber-js/README.md at master · telefonicaid/libphonenumber-js
Builds a compact javascript version of libphonenumber without requiring to use Closure - telefonicaid/libphonenumber-js
Author telefonicaid
Catamphetamine
catamphetamine.github.io › libphonenumber-js
libphonenumber-js
A simpler and smaller rewrite of Google Android's libphonenumber library.
GitHub
github.com › google › libphonenumber › blob › master › FAQ.md
libphonenumber/FAQ.md at master · google/libphonenumber
Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. - google/libphonenumber
Author google
npm
npmjs.com › package › @telefonica › libphonenumber
@telefonica/libphonenumber - npm
November 12, 2025 - Wrapper around a custom compilation of Google's libphonenumber.
» npm install @telefonica/libphonenumber
Published Nov 12, 2025
Version 2.9.1
CodeSandbox
codesandbox.io › s › react-demo-libphonenumber-js-max-j25qj
react-demo-libphonenumber-js-max - CodeSandbox
September 25, 2021 - react-demo-libphonenumber-js-max by famgrs using @material-ui/core, react, react-dom, react-phone-number-input, react-scripts
cdnjs
cdnjs.com › home › libraries › libphonenumber-js › 1.9.50
libphonenumber-js - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
libphonenumber-js · 1.9.50 · A simpler (and smaller) rewrite of Google Android's popular libphonenumber library · 3k · GitHub · package · MIT licensed · https://halt-hammerzeit.github.io/libphonenumber-js/ Tags: javascript, telephone, ...
GitHub
github.com › google › libphonenumber
google/libphonenumber: Google's common Java, C++ and ...
Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. - google/libphonenumber
Starred by 17.9K users
Forked by 2.2K users
Languages C++ 53.4% | Java 29.9% | JavaScript 15.8% | CMake 0.4% | C 0.2% | Closure Templates 0.1%
GitHub
github.com › alex1704 › LibphonenumberStandaloneJS
GitHub - alex1704/LibphonenumberStandaloneJS · GitHub
libphonenumber.js encapsulate Google's libphonenumber functionality in standalone javascript file. It exposes several libphonenumber's interfaces on which more functionality can be built up.
Author alex1704
GitHub
github.com › iziz › libphonenumber-ios
GitHub - iziz/libPhoneNumber-iOS: iOS port from libphonenumber (Google's phone number handling library) · GitHub
You can check phone number validation using below link. https://rawgit.com/googlei18n/libphonenumber/master/javascript/i18n/phonenumbers/demo-compiled.html
Starred by 2.4K users
Forked by 478 users
Languages Objective-C 56.3% | Wolfram Language 38.2% | Swift 4.3% | Shell 0.5% | Ruby 0.5% | C 0.2%
Reddit
reddit.com › r/ppc › phone number formatting (libphonenumber) for enhanced conversions gas
r/PPC on Reddit: Phone number formatting (libphonenumber) for Enhanced conversions GAs
November 24, 2025 -
For google ads lead gen, if users want to submit their phone number through a form, how do you handle the regularization of the formatting of phone numbers? Does libphonenumber need to be integrated within the form itself? Or can it be done via GTM custom html tags?
For Example: Custom html tag collects first party data from form and places it in the local storage, can the same tag do the regularization in the localstorage before pushing the data to the datalayer or is this unwanted?
Top answer 1 of 2
1
Yes, you can transform it with a custom javascript variable
2 of 2
1
You don’t have to integrate libphonenumber into the form itself—what matters for Enhanced Conversions is that the phone is normalized consistently (ideally E.164) before Google hashes it. You can absolutely do the normalization in GTM: read the raw value (from the form, dataLayer, or localStorage), run it through libphonenumber or a custom JS function in a Custom JS variable / Custom HTML tag, and then pass the cleaned version into your EC tag. Just try to avoid storing raw PII in localStorage longer than necessary—normalize it in memory, push the cleaned value to the dataLayer, and let the EC tag handle hashing. If you have a backend/CRM in the flow, another option is to normalize server-side and send phone via the Enhanced Conversions API in a single, controlled place.
GitHub
github.com › grantila › awesome-phonenumber
GitHub - grantila/awesome-phonenumber: Google's libphonenumber pre-compiled with the closure compiler · GitHub
Among all the popular phone number using Google's libphonenumber (or mimicing it), only this one, google-libphonenumber and libphonenumber-js have decent README's with examples.
Starred by 704 users
Forked by 59 users
Languages JavaScript 92.8% | TypeScript 6.3% | Shell 0.9%
npm
npmjs.com › package › awesome-phonenumber
awesome-phonenumber - npm
February 18, 2026 - This library is a pre-compiled version of Google's libphonenumber, with a slightly simpler interface.
» npm install awesome-phonenumber
Published Feb 18, 2026
Version 7.8.0
Author Gustaf Räntilä
Js
libphonenumbers.js.org
libphonenumbers: Introduction
If you are not redirected automatically, follow this link
GitHub
github.com › calcom › cal.com
GitHub - calcom/cal.com: Scheduling infrastructure for absolutely everyone. · GitHub
Starred by 41.1K users
Forked by 12.5K users
Languages TypeScript 97.7% | CSS 1.3% | HTML 0.5% | JavaScript 0.2% | PLpgSQL 0.2% | Mermaid 0.1%