libphonenumber-csharp
twcclegg/libphonenumber-csharp · Public GitHub repository
Offical C# port of https://github.com/googlei18n/libphonenumber
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
The original Apache License 2.0 was preserved.
Try the interactive demo → — parse, format, validate, and find phone numbers in your browser. No install required; runs entirely via WebAssembly. Browse the API reference → — generated from this library's XML doc comments.
Phone number metadata is updated in the Google repo approximately every two weeks. This library is automatically updated by a scheduled github action to include the latest metadata, usually within a day. See Metadata updates for how that works and how to run it manually.
- Parsing/formatting/validating phone numbers for all countries/regions of the world.
- GetNumberType - gets the type of the number based on the number itself; able to distinguish Fixed-line, Mobile, Toll-free, Premium Rate, Shared Cost, VoIP and Personal Numbers (whenever feasible).
- IsNumberMatch - gets a confidence level on whether two numbers could be the same.
- GetExampleNumber/GetExampleNumberByType - provides valid example numbers for 218 countries/regions, with the option of specifying which type of example phone number is needed.
- IsPossibleNumber - quickly guessing whether a number is a possible phone number by using only the length information, much faster than a full validation.
Requirements and intended audience
The original Apache License 2.0 was preserved.
- Account · Required
The push and PR authenticate as the dedicated libphonenumber-csharp-bot account (via the BOTACCESSTOKEN secret) rather than the default GITHUBTOKEN, since GitHub requires a maintainer to manually approve workflow runs on PRs opened with GITHUBTOKEN.
Not recorded: external api key, paid service, self-hosting. Missing information does not mean there are no requirements.
Statements extracted from the author’s documentation · Checked 2026-10-18. Source: https://github.com/twcclegg/libphonenumber-csharp/blob/main/README.md
Recorded maintenance information
Last recorded source update: 2026-11-13. Saved release: v9.0.41 · 2026-10-08. These dates do not guarantee ongoing maintenance.
- Technologies
- C#
- Licence
- Apache-2.0. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
- Demo check
- A public page loaded on 2026-11-20. This does not test every feature.
Browse related categories
More projects to explore
iptv
iptv-org/iptv
Collection of publicly available IPTV channels from all over the world
HowToLiveBetter
eternity4719/HowToLiveBetter
高性价比人生指南: 长寿防病、急救、省钱理财、法律红线、失业与工伤、医保社保、恋爱婚育、怀孕育儿、创业与做平台合规、出国与技能。每条写明成本、收益、证据等级和原始出处,只引期刊论文与官方文件。
OpenManus
FoundationAgents/OpenManus
No fortress, purely open ground. OpenManus is Coming.
JavaScript30
wesbos/JavaScript30
30 Day Vanilla JS Challenge