ラトビア 個人コード 検証器 (Personas Kods)

ラトビアの個人コードを貼り付けて,古い形式のチェック数字と出生日を確認し,32から始まる新しい匿名コードを認識します.

ブラウザ内で動作します。ファイルは端末の外に出ません。 確認方法を見る

…

使い方

  1. 1
    コードを貼る

    ラインごとに 1 つのパーソナコード

  2. 2
    形式 を 見る

    古いコードと新しい32のコードを区別する

  3. 3
    誕生日を読む

    古いコードは誕生日を示しています

  4. 4
    古いコードを修正

    失敗のチェック桁を期待します

  5. 5
    輸出

    CSVとして結果をダウンロードします.

このツールについて

Latvia has two formats of personal code (personas kods). Codes issued until 30 June 2017 have the form DDMMYY-CNNNC: the date of birth, a century digit (0 for the 1800s, 1 for the 1900s, 2 for the 2000s), a serial and a check digit. Since 1 July 2017, new codes start with 32 and carry no information about the person; people with old codes could request a new one. Many systems built before 2017 still try to read a date of birth from every code and reject the new ones. This validator handles both formats.

Who this is for

Developers, HR and payroll staff, banks and public services handling Latvian identity codes.

The old format

- DDMMYY: date of birth. - C: century, 0 for 1800-1899, 1 for 1900-1999, 2 for 2000-2099. - NNN: serial. - Last digit: check digit.

The check digit is calculated as (1101 minus the weighted sum of the first ten digits with weights 1, 6, 3, 7, 9, 10, 5, 8, 4, 2) modulo 11. For 161175-1999, the check digit is 7: 161175-19997 belongs to someone born on 16 November 1975.

The new format

New codes have eleven digits, start with 32 and contain no date of birth or other personal data. They are written as 32XXXX-XXXXX. The validator recognises them by the prefix and checks only the length, as the official format does not let you derive anything else.

Why it matters

Systems that compute age from the personal code fail for new codes, and systems that reject codes without a valid date block people from services. When building forms, accept both formats, and ask for the date of birth separately if you need it.

Privacy

Old codes reveal date of birth; all codes are personal data. Latvian law encouraged the new format partly for privacy. This tool works locally.

Batch use

Paste one code per line, with or without the hyphen. Each line shows the format, and old codes show the date of birth or the reason for failure. Export as CSV.

Worked example

161175-19997 is a valid old code (born 16 November 1975). 321010-25036 is a new-format code that carries no date of birth.

Forms and software

When a form asks for a personal code, accept both formats and do not compute age or sex from it. If you need the date of birth, ask for it in a separate field.

Limits

The tool does not confirm that a code was issued. The Population Register is the authority.

計算例

161175-19997は旧形式のコードで (1975年11月16日生まれ) 321010-25036は誕生日付のない新しいフォーマットコードです.

ポイント

よくある質問

ラトビアの個人コードには2つの形式がありますか?

旧コードは出生日 (2017年6月まで) と 32から始まる新しい匿名コード

古いチェック数字は どう計算されるの?

(1101 マイナス最初の10桁の加重和) モジュール11で,体重は1,6,3,7,9,10,5,8,4,2

新しいコードから誕生日を読み取れるか?

違う 新しいコードには個人情報がない

改行できるのか?

古いコードを持つ人は 新しい形式のコードを申請できます

古いコードでは7桁は何を表すのか?

誕生世紀: 0, 1 または 2

コードがアップロードされたか?

ブラウザでチェックした

完全無料料金なし、登録なし
ファイルはプライベートすべてブラウザ内で動作します
あなたの言語で使いやすく多くの言語に対応