Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. The Java version is optimized for running on smartphones, and is used by the Android framework since 4.0 (Ice Cream Sandwich). libphonenumber gets the type of the number based on the number itself; able to distinguish Fixed-line, Mobile, Toll-free, Premium Rate, Shared Cost, VoIP, Personal Numbers, UAN, Pager, and Voicemail (whenever feasible). Provides valid example numbers for all countries/regions, with the option of specifying which type of example phone number is needed. Quickly guesses whether a number is a possible phone number by using only the length information, much faster than a full validation. To include the Java code in your application, either integrate with Maven (see wiki) or download the latest jars from the Maven repository.

Features

  • Parsing, formatting, and validating phone numbers for all countries/regions of the world
  • Provides full validation of a phone number for a region using length and prefix information
  • Formats phone numbers on-the-fly when users enter each digit
  • Finds numbers in text
  • Provides geographical information related to a phone number
  • Provides carrier information related to a phone number

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow libphonenumber

libphonenumber Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of libphonenumber!

Additional Project Details

Operating Systems

Apple iPhone

Programming Language

C++

Related Categories

C++ Internet Phone Software, C++ Libraries

Registered

2021-05-13