About this tool
Phone number validation and carrier routing is a critical verification gateway across authentication forms, SMS OTP fraud prevention, e-commerce checkout delivery, and CRM data hygiene. Chinese mobile numbers strictly conform to an 11-digit national numbering plan partitioned across China Mobile, China Unicom, China Telecom, China Broadnet, and virtual network operators (MVNO). This tool delivers client-side regex structural validation, privacy masking, and carrier lookup locally without network latency.
How to Use This Tool (Step-by-Step)
Enter Phone Number
Type your 11-digit phone number into the input field. International prefixes (`+86`) and spaces are automatically sanitized.
Instant Carrier & Format Lookup
The engine runs regular expressions against official carrier allocation dictionaries to verify format and carrier identity.
Inspect Privacy Mask & Copy
Outputs readable 3-4-4 spacing formatting and standard privacy-masked strings (`138****5678`). Copy clean numbers with one click.
Full 4-Carrier & Broadnet 192 Support
Fully updated to support China Broadnet 192, Telecom 199/191, Mobile 198/195, and Unicom 166 without falsely rejecting new subscribers.
MVNO Virtual Carrier Detection
Detects 170/171 MVNO virtual carrier blocks commonly monitored by enterprise risk engines to mitigate bot registration fraud.
100% Client-Side Air-Gapped
All regex matching runs 100% inside your local browser memory. Personal phone records are never transmitted or logged.
Phone Validation Best Practices & Anti-Fraud Tips
- •Mobile Number Portability (MNP) caveats: Prefix digits reflect the initial issuing network. Live network routing requires carrier API lookups.
- •Protect SMS OTP endpoints from billing exhaustion attacks: Pair regex phone validation with slider CAPTCHAs before triggering backend SMS gateways.
- •Sanitize non-digits before validating: Copied phone numbers contain hyphens and non-breaking spaces. Strip non-digits via `.replace(/\D/g, '')`.
Code & Transformation Examples
Chinese Mobile Carrier Allocation Cheat Sheet
• 中国移动 (China Mobile) : 134-139, 147, 150-152, 157-159, 178, 182-184, 187-188, 195, 198
• 中国联通 (China Unicom) : 130-132, 145, 155-156, 166, 175-176, 185-186, 196
• 中国电信 (China Telecom): 133, 149, 153, 173, 177, 180-181, 189, 190, 191, 199
• 中国广电 (China Broadnet): 192 (最新第四大运营商专属号段)
• 虚拟运营商 (MVNO) : 170, 171/^(?:\+?86)?1[3-9]\d{9}$/* Second digits now span 3 through 9. Legacy `1[358]` patterns falsely reject millions of legitimate modern subscribers.
JavaScript Formatting & Privacy Masking Snippet
function maskPhone(phone) {
// 中间四位替换为星号
return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
}
console.log(maskPhone("13812345678")); // "138****5678"function formatPhone(phone) {
return phone.replace(/(\d{3})(\d{4})(\d{4})/, '$1 $2 $3');
}
console.log(formatPhone("13812345678")); // "138 1234 5678"* 3-4-4 spacing matches human short-term working memory chunks, improving reading comprehension.
Frequently Asked Questions
Q: Why do Chinese mobile phone numbers strictly have 11 digits?
A: 11 digits accommodate China's population: 3 digits for Network Code, 4 digits for Regional HLR Code, and 4 digits for subscriber assignment.
Q: Can inputs with +86 or 0086 international prefixes be validated?
A: Yes. An integrated normalization filter strips `+86`, `0086`, or hyphenated country codes before running strict structural checks.
Q: Does this tool validate international phone numbers?
A: This module specializes in Chinese carrier routing. For 200+ countries, complementary international models leverage Google's `libphonenumber`.