Passport Validator

📐 工作原理与说明
输入去空白并转大写后,逐一用各国护照号正则(CN / US / GB / DE / FR / JP / IN / AU / CA / BR / RU / KR / SG / MX 及 ICAO 9303)做整串匹配;命中则列出国家、代码与格式说明,全部未命中判为不匹配;同时输出输入串长度(字符数)

Validate passport number length, letter prefix and digit pattern against per-country regular expressions; returns the matching country or a format warning. Format-only check, no online authenticity lookup, not a substitute for border inspection, and check digits are not computed or verified.

等待输入...

📚 深度解析:护照号码格式验证

💡 常见使用场景

  • 值机前自查
  • 签证填表核对
  • 多国格式识别
中国电子护照
输入「E12345678」(E+8 位数字)匹配中国电子护照格式,提示有效;旧版「G1234567」(G+8 位)亦识别。
格式错误
输入「1234」位数不足或无字母前缀,过滤后无匹配,提示不符合任一已知格式需核对。

❓ 常见问题(FAQ)

验证权威吗?
仅按各国号码正则做格式校验,不联网查真伪,不能替代边检。
支持哪些国?
内置常见国家/地区格式表,未列出的可能误报不符。

Formula & Standard References

Item Formula Source-Standard
MRZ structure The machine readable zone defines fields by line and character position ICAO. Doc 9303, Machine Readable Travel Documents, Part 3: Machine Readable Official Travel Documents, 8th ed., 2021
Check digit Check digits use the weighted 7-3-1 algorithm over field characters ICAO. Doc 9303, Machine Readable Travel Documents, Part 3: Machine Readable Official Travel Documents, 8th ed., 2021
Validation note A format check passing does not prove the document is genuine ICAO. Doc 9303, Machine Readable Travel Documents, Part 3: Machine Readable Official Travel Documents, 8th ed., 2021
⚠️ 使用说明与注意事项