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 |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準