Generate a test Hong Kong HKID
A Hong Kong identity card number is a letter, six digits, and a check character (a digit or A). These test values carry a valid check character but are synthetic.
Synthetic Β· not collision-guaranteed Validate a number β
Q059926A
Synthetic HKID with a valid check character. Not a real issued number.
Format specification
| Identifier | HKID |
|---|---|
| Country | ππ° Hong Kong |
| Format | A000000A |
| Length | 8 characters |
| Checksum | MOD 11 |
| Example | S2913633 |
| Safe strategy | Synthetic |
| Data quality | Verified against sources |
Validation regex
Matches the canonical value β strip separators and uppercase first: value.replace(/[^A-Za-z0-9]/g, '').toUpperCase()
^[A-Z]\d{6}[0-9A]$ References
Common questions
Will these pass my validation?
Yes β they are well-formed HKID values (A000000A) and pass standard format checks, including the MOD 11 checksum.
Could one belong to a real person?
These are synthetic values. They are format-valid but not drawn from a guaranteed reserved range, so use them only for testing.
Can I generate many at once?
Increase the count, or use the free API and CSV/JSON export for large datasets.
For software testing only. These numbers are synthetic and must never be used
for real-world identification, applications, or to impersonate anyone.