Enjoying AllTool.io? Support us with a coffee ☕
AllTool.io
For testing only

Global ID Generator for Testing and Development

Create mock identification numbers that follow country-specific formats and checksum rules for forms, QA flows, and sample datasets.

Your ID number 1
——
1

This ID generator creates sample identification numbers for multiple countries and regions, including Taiwan, Hong Kong, China, Japan, Korea, the United States, and more. The output is meant for software testing, demo environments, QA workflows, and development tasks where realistic-looking placeholder data is more useful than plain dummy text.

Why use this ID generator?

1

Country-aware formats

Each option follows a recognizable local structure, so your test data looks much closer to what real users would type into regional forms.

2

Useful for QA and sample data

Generated values help with signup flows, validation states, demo records, staging environments, and other non-production data needs.

3

Private and fast

The generator runs on the page and gives you a result immediately, without turning a simple testing task into a long workflow.

Common use cases

Software testing and QA

Use sample IDs to test onboarding forms, customer profiles, identity fields, validation messages, and edge cases in staging or local environments.

Demo data and database seeding

Populate internal demos or development datasets with realistic placeholders instead of exposing real personal data during product reviews.

Sandbox and workflow verification

Check how your system handles country-specific formats before connecting any production-grade verification or regulated identity flow.

How some supported formats work

Different countries use different structures. Some formats include letters, region codes, birth-date segments, or checksum digits. Here are a few examples available on this page.

Taiwan ID number

A Taiwan ID number uses one leading letter plus nine digits. The final digit is derived from the letter mapping and a weighted checksum calculation.

China Resident ID

The China format uses 18 characters and commonly includes a region code, birth date, sequence segment, and a final checksum character.

United States SSN-style format

US sample output follows the familiar nine-digit pattern AAA-GG-SSSS, which is useful when testing form layouts and masked inputs.

Hong Kong HKID-style format

Hong Kong ID formatting can include one or two prefix letters, six digits, and a checksum character shown in parentheses.

Frequently asked questions

Are these sample ID numbers?

No. These are sample values for testing and development. They are not government-issued identifiers and should never be used for banking, KYC, identity fraud, or any real transaction.

How are the numbers generated?

Each generator follows the visible country format and, where applicable, common checksum or validation rules that many forms and test suites expect.

Do you store generated IDs or visitor data?

No. We do not store any of your data. Generated values remain in your current browser session and are not kept by this tool.

Why would a generated number fail on some websites?

Some systems do more than format validation. They may also check live government databases, internal customer records, or other business rules beyond checksum logic.

How Taiwan ID verification works

A Taiwan ID number uses one leading letter followed by nine digits. The letter encodes the original place of registration, and the final digit is a checksum that validates the whole number. Here is how to verify one.

Letter to area code mapping

A Taipei City
B Taichung City
C Keelung City
D Tainan City
E Kaohsiung City
F New Taipei City
G Yilan County
H Taoyuan City
I Chiayi City
J Hsinchu County
K Miaoli County
L Taichung County (merged)
M Nantou County
N Changhua County
O Hsinchu City
P Yunlin County
Q Chiayi County
R Tainan County (merged)
S Kaohsiung County (merged)
T Pingtung County
U Hualien County
V Taitung County
W Kinmen County
X Penghu County
Y Yangmingshan (historical)
Z Lienchiang County

Weighted checksum formula

L1×1 + L2×9 + D1×8 + D2×7 + D3×6 + D4×5 + D5×4 + D6×3 + D7×2 + D8×1 + C×1 ≡ 0 (mod 10)

  • L1 · L2 The two digits of the letter’s numeric code (for example A → 10, so L1 = 1 and L2 = 0).
  • D1 Gender digit (1 = male, 2 = female).
  • D2–D8 The seven-digit serial number.
  • C The check digit.

Example: for A123456789, the letter A maps to 10, so the weighted sum is 1×1 + 0×9 + 1×8 + 2×7 + 3×6 + 4×5 + 5×4 + 6×3 + 7×2 + 8×1 + 9×1 = 130, which is divisible by 10, so the number passes the checksum.

Regex form validation rules for developers

A regular expression is a fast first line of defence for forms, but a valid format does not prove a number is real. Validate the shape with a regex first, then run the checksum (where one exists) separately.

Taiwan ID

^[A-Z][12]\d{8}$

One uppercase letter, a gender digit (1 or 2), then eight digits. After the format check, run the weighted checksum above.

China Resident ID

^\d{17}[\dXx]$

Seventeen digits followed by a digit or X. Consider also validating the birth-date segment and region code.

Hong Kong HKID

^[A-Z]{1,2}\d{6}\([0-9A]\)$

One or two letters, six digits, then a check character inside parentheses.

US SSN-style format

^\d{3}-\d{2}-\d{4}$

Nine digits grouped as AAA-GG-SSSS with hyphens.

Best practices

  • Check the format with a regex first, then verify the checksum in code — keep the two steps separate for easier maintenance.
  • For China IDs, always allow the final X (both cases), not just digits.
  • Never treat a regex match as proof that an ID exists; format-valid is not the same as a real identity.
  • For Taiwan IDs, restricting the second character to 1 or 2 makes the pattern stricter and catches common typos.

Random Name Generator by Country

Need realistic names for testing forms, database seeding, or UI demos? This tool generates culturally accurate random names across 20+ countries and regions, including Taiwan, Hong Kong, Japan, Korea, the US, UK, and Europe.

Fake Name Generator

We do not store any of your data.