Home β€Ί πŸ‡­πŸ‡° Hong Kong β€Ί HKID

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

IdentifierHKID
CountryπŸ‡­πŸ‡° Hong Kong
FormatA000000A
Length8 characters
ChecksumMOD 11
ExampleS2913633
Safe strategy Synthetic
Data qualityVerified 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

  1. en.wikipedia.org/wiki/Hong_Kong_identity_card

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.

Validate an existing number β†’

For software testing only. These numbers are synthetic and must never be used for real-world identification, applications, or to impersonate anyone.