台湾身分证号码校验

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