台灣身分證號碼校驗

Share:

免費台灣身分證號碼與統一證號校驗工具。1 個字母(區域碼)+ 9 位數字,內含檢查碼;舊式統一證號(2 個字母 + 8 位數字)也能校驗。本工具完全在瀏覽器中執行,資料不上傳。

RT-CHN-067 · Converters & Units
你的瀏覽器版本過舊,此工具的互動功能無法運作。請更新至 Safari 13.1、Chrome 或 Edge 80、Firefox 74 或以上版本。

台灣身分證號碼校驗

Advertisement
After results · AD-W1Responsive

使用方法

輸入號碼

1 個英文字母 + 9 位數字,例如 A123456789。可含空格、連字號或全形字元。舊式統一證號為 2 個英文字母 + 8 位數字。

字母轉 2 位代碼

每個字母對應 10 到 35 的代碼,但不按字母順序:A=10 … H=17,接著 J=18 … V=29,再是 X=30、Y=31、W=32、Z=33、I=34、O=35。10 到 35 沒有任何空號。

加權求和

按權重 [1,9,8,7,6,5,4,3,2,1,1] 計算字母代碼 2 位 + 9 位數字的加權和。舊式統一證號的第 2 碼字母只取其代碼的個位數。

對 10 取模

加權和必須能被 10 整除才算校驗通過。第 2 碼是性別碼:國民 1=男、2=女;2021 年起的統一證號 8=男、9=女(舊式 A、C=男,B、D=女)。

台灣身分證號碼 — 公開的檢查碼規則

台灣國民身分證統一編號由 1 個英文字母和 9 位數字組成。內政部《國民身分證及戶口名簿格式內容製發相片影像檔建置管理辦法》第 3 條規定其結構:首碼字母代表直轄市、縣(市),第 2 碼是性別碼,第 10 碼是檢查碼。中間 7 位是流水號,內政部說明它「並不具任何意義」。對國民而言,字母記錄的是號碼首次配賦的縣市,日後遷居也不會改變。

26 個字母:22 個現行縣市與 4 個已不存在的單位

A=臺北市、B=臺中市、C=基隆市、D=臺南市、E=高雄市、F=新北市、G=宜蘭縣、H=桃園市、I=嘉義市、J=新竹縣、K=苗栗縣、M=南投縣、N=彰化縣、O=新竹市、P=雲林縣、Q=嘉義縣、T=屏東縣、U=花蓮縣、V=臺東縣、W=金門縣、X=澎湖縣、Z=連江縣。L、R、S、Y 所代表的單位已不存在:臺中縣、臺南縣、高雄縣(2010 年 12 月 25 日併入直轄市)與陽明山;已配賦的號碼照舊有效。完整對照與沿革見台灣 22 縣市指南(英文)。

「十個字元分四段:字母、性別碼、七位流水號、檢查碼。」

檢查碼擋得住什麼,擋不住什麼

檢查規則完整刊載於 2009 年的《行政院公報》(一份全民健保申報格式說明)。我們用本工具的規則把所有可能的錯誤逐一試過:把第 2 至第 10 碼中某一位打錯,810 種中有 80 種仍能通過,約十分之一;最後兩位互換則一律通過,因為兩者權重都是 1。其餘相鄰兩位互換都會被擋下。所以「校驗通過」只代表格式正確,不代表號碼沒打錯。

統一證號(居留證號)

自 2021 年 1 月 2 日起,內政部移民署核發的新式統一證號沿用身分證格式,第 2 碼 8=男、9=女。統一證號核發給外國人、無戶籍國民、香港澳門居民及大陸地區人民;字母代表申請地區,而非籍貫。此前核發的舊式統一證號為 2 個英文字母 + 8 位數字,可換發至 2030 年 12 月 31 日,2031 年 1 月 1 日起停止使用。本工具兩種格式都能校驗。

隱私保護

本工具完全在瀏覽器內執行,號碼從不上傳、不記錄、不儲存。台灣個人資料保護法第 2 條把國民身分證統一編號列為個人資料;它不屬於第 6 條的特種個資(病歷、醫療、基因、性生活、健康檢查及犯罪前科),但同樣受該法保護。國家發展委員會 2014 年要求各機關遮蓋身分證號的後 4 碼;由於檢查碼由其餘各碼決定,這 4 個星號的 10,000 種填法中只有 1,000 種能通過檢查,所以遮蓋實際只藏住了 3 位數字的資訊量。

Advertisement
After how-to · AD-W2Responsive

首字母記的是初次設籍地,之後不會變

01

台灣國民身分證於 1947 年 5 月首次發行;自 1969 年 7 月起,統一編號(即身分證字號)在出生登記時即配賦。

02

檢查碼以公開的加權求和規則算出,2009 年的《行政院公報》即刊有完整算法,因此格式可以完全離線校驗。

03

對國民而言,字母反映號碼首次配賦的縣市,即使後來搬遷也不變;統一證號的字母則是申請地區。

04

L、R、S 原屬臺中縣、臺南縣、高雄縣;三縣於 2010 年 12 月 25 日併入直轄市,已配賦的號碼照舊有效。I(嘉義市)和 O(新竹市)則是現行城市。

05

性別碼是字母後的第 1 位數字:國民 1=男、2=女,統一證號 8=男、9=女。號碼原則上終身沿用;辦理性別變更登記時,戶政事務所會重新配賦新號碼。

06

真正可變的只有字母、性別碼和 7 位流水號:26 × 2 × 10⁷ = 5.2 億種國民號碼,檢查碼不增加組合。

07

「數位身分證 New eID」原定 2021 年換發,行政院已於 2021 年 1 月 21 日宣布暫緩;內政部 2024 年 7 月 31 日表示,須待個人資料保護委員會成立後再推動,而設立該會的條文施行日期尚未確定。現行身分證與號碼照常使用。

08

自 2021 年 1 月 2 日起,新式統一證號比照身分證編碼:1 個字母 + 9 位數字,第 2 碼 8=男、9=女,核發給外國人、無戶籍國民、香港澳門居民及大陸地區人民。舊式(2 個字母 + 8 位數字)2031 年 1 月 1 日起停止使用。

09

台灣個資法第 6 條的特種個資只有病歷、醫療、基因、性生活、健康檢查及犯罪前科 — 身分證號是第 2 條的一般個資,不在其列。

📅 研究資料截至 2026年10月2日 · 來源: Ministry of the Interior, 國民身分證及戶口名簿格式內容製發相片影像檔建置管理辦法, Article 3 (structure); Executive Yuan Gazette vol. 15 no. 149, 5 Aug 2009, p. 23808 (check-digit rule for both formats); National Immigration Agency questions and answers on the resident certificate number (2021 format; old format usable until 31 Dec 2030); National Development Council letter of 31 Dec 2014 (masking the last 4 characters); Taipei Zhongzheng District Household Registration Office (change of sex); Taiwan Personal Data Protection Act, Articles 2 and 6; Executive Yuan (21 Jan 2021) and Ministry of the Interior (31 Jul 2024) on New eID. Validation runs in your browser; no network calls.
標準、已發表的公式與參考資料會隨時間修訂 — 依據這些數字行動前,請對照現行的權威來源確認。

常見問題

  • 不。校驗完全在瀏覽器內執行,號碼從不上傳、不記錄、不儲存。

  • 不。只表示號碼符合格式與檢查碼規則,不能證明它曾經核發,也看不出持有人。內政部戶政司提供「國民身分證領補換資料查詢」(需輸入證件的發證資料);統一證號可用移民署的「新舊統一證號申請結果查詢」。

  • 對國民而言,是號碼首次配賦的縣市,例如 A=臺北市、E=高雄市、F=新北市;即使後來搬到其他縣市,字母也不變。統一證號的字母則代表申請地區。

  • 它們代表已不存在的單位:L=臺中縣、R=臺南縣、S=高雄縣(三縣於 2010 年 12 月 25 日併入直轄市),Y=陽明山。以這些字母開頭的號碼仍然有效。I(嘉義市)和 O(新竹市)則是現行城市。

  • 可以,兩種格式都行。2021 年 1 月 2 日起的新式統一證號比照身分證編碼,第 2 碼為 8(男)或 9(女),核發給外國人、無戶籍國民、香港澳門居民及大陸地區人民。舊式(2 個字母 + 8 位數字,第 2 碼為 A、B、C 或 D)用同一規則校驗,第 2 碼字母取其代碼的個位數;移民署公告舊式統一證號 2031 年 1 月 1 日起停止使用。

  • 可以,看第 2 碼:國民 1=男、2=女;2021 年起的統一證號 8=男、9=女。辦理性別變更登記時,戶政事務所會重新配賦新號碼(臺北市中正區戶政事務所)。

  • 不。台灣身分證不含出生日期(與中國大陸不同)。年齡需另查戶籍資料。

  • New eID 目前沒有換發:行政院於 2021 年 1 月 21 日宣布暫緩;內政部 2024 年 7 月 31 日表示,須待個人資料保護委員會成立後再推動,而設立該會的條文施行日期尚未確定。現行身分證與號碼照常使用。

  • 此頁一次一個 — 為了隱私。批次場景請複製本頁 JavaScript 演算法到自己的應用程式。

  • 是。RECATOOLS 所有工具完全免費,廣告支持。無註冊,無付費牆。

方法與來源

計算方式

One letter and nine digits. The letter maps to a two-digit code from 10 to 35, none skipped but not in alphabetical order (I = 34, O = 35, W = 32, X = 30, Y = 31, Z = 33); weights 1, 9 on that code and 8, 7, 6, 5, 4, 3, 2, 1, 1 on the digits; valid when the sum is divisible by 10. An old-format resident certificate number (two letters + eight digits, issued before 2 January 2021) uses the same rule with the second letter counted as the last digit of its code.

本工具採用的標準

  • Second digit is the sex code: 1 = male and 2 = female for citizens; 8 = male and 9 = female on the resident certificate number (統一證號) issued since 2 January 2021 to foreign nationals, nationals without household registration, and residents of Hong Kong, Macau and the mainland (National Immigration Agency). On a resident number the letter is the place of application.
  • The 2021 resident number deliberately copies the ID-card layout, so the same checksum applies. Old two-letter numbers (second letter A/B or C/D) use the same rule with the second letter counted as the last digit of its code, as the 2009 Executive Yuan Gazette prints; they can be exchanged until 31 December 2030 and stop being used on 1 January 2031, and this tool checks them.
  • The weighted-sum rule is public: the Executive Yuan Gazette printed it in full in 2009, with the worked example A123456789, which this tool reproduces. No Ministry of the Interior or National Immigration Agency page checked sets it out; the Agency's own Q&A names the 10th digit only as the check code.

資料來源

  • National Immigration Agency (Taiwan). 外來人口統一證號 — Q&A (format: 1 letter + 9 digits, 8 = male, 9 = female). https://www.immigration.gov.tw/5385/12162/238449/CP_QA?alias=QACl…
  • National Immigration Agency (Taiwan), 新住民全球新聞網. 新式外來人口統一證號換發介紹 (from 2 January 2021). https://news.immigration.gov.tw/EasyPack/Detail/6fa938aa-2427-423…
  • Executive Yuan Gazette (行政院公報), vol. 15 no. 149, 5 August 2009, Health and Labour section, p. 23808: Bureau of National Health Insurance announcement 健保醫字第0980091115號 (31 July 2009), attachment 住院醫療服務點數清單媒體申報格式及填表說明, which prints 「檢查號碼計算規則」 in full — the leading letter converted to two digits, each digit multiplied by 1987654321, the units digits summed, and the check digit 10 minus the last digit (0 when it is 0) — with the worked example A123456789. https://gazette.nat.gov.tw/EG_FileManager/eguploadpub/eg015149/ch…
  • Ministry of the Interior (Taiwan). 國民身分證及戶口名簿格式內容製發相片影像檔建置管理辦法, Article 3 (amended 18 October 2024): the unified number is ten characters, the first a letter for the special municipality, county or city, the second the sex code and the tenth the check code. https://law.moj.gov.tw/LawClass/LawAll.aspx?pcode=D0030030
  • National Immigration Agency (Taiwan). 統一證號與國民身分證字號有無差異? (Q&A, updated 3 December 2024): the unified number is used by foreign nationals, nationals without household registration, Hong Kong and Macau residents and mainland residents; the new format since 2 January 2021 is one letter + nine digits with 8 = male and 9 = female. https://www.immigration.gov.tw/5385/12162/238449/382804/
  • National Immigration Agency (Taiwan). 請問舊式統號會停止使用嗎? (Q&A, 6 February 2023): old-format numbers can be exchanged from 2 January 2021 to 31 December 2030 and stop being used on 1 January 2031. https://www.immigration.gov.tw/5385/12162/238449/243723/
  • National Development Council (Taiwan). Letter 發資字第1031501471號, 31 December 2014: agencies mask the last four characters of a national ID number with *. https://security.ndhu.edu.tw/var/file/102/1102/img/2680/30463647.pdf
  • Taipei City Zhongzheng District Household Registration Office. 性別變更登記 (Q1: a change of sex is registered by assigning a new unified number). https://zzhr.gov.taipei/cp.aspx?n=703A72BF52DE9F09

已節錄——本工具的完整審閱紀錄長於上列。

Advertisement
Pre-footer · AD-W3 728 × 90