Test Vectors
Reference fixtures used by our own Playwright round-trip suite. Each row is an input the generator accepts → an expected substring(s) the decoded output must contain. Use these to write your own validators or reproduce parity tests.
Source: tests/fixtures.json in our repo. Fetched live from this site so it's always in sync.
| Type | Input fields | Expected substring(s) | Format |
|---|---|---|---|
| Loading… | |||
How to use these
Generate any row's payload using the generator — fill the named fields with the input values, click Generate, scan the result with any reader. The decoded text must contain every "Expected substring." If it doesn't, file an issue.
Round-trip vs unit-test parity
These fixtures are the ground truth for our tests/roundtrip.mjs harness, which generates each code in headless Chromium, decodes it back via BarcodeDetector, and asserts the substring match. The harness also runs a mutation pass (empty / huge / control / unicode inputs) per fixture to catch encoder crashes.
Standards references
- QR Code: ISO/IEC 18004:2024
- Micro QR: ISO/IEC 18004:2024 Annex M
- rMQR: ISO/IEC 23941:2022
- Data Matrix: ISO/IEC 16022:2006 (ECC 200)
- Aztec: ISO/IEC 24778:2008
- PDF417: ISO/IEC 15438:2015
- AAMVA driver-license: AAMVA Card Design Standard v8 (PDF417 2D barcode on the back)
- Code 128: ISO/IEC 15417:2007
- Code 39: ISO/IEC 16388:2007
- EAN-13 / UPC-A: GS1 General Specifications
- vCard: RFC 6350 (vCard 4.0)
- WiFi QR: Java/iOS de facto:
WIFI:S:<ssid>;T:<auth>;P:<pw>;; - TOTP: RFC 6238 (otpauth URI: Google Authenticator de facto)
- HOTP: RFC 4226
- SwissQR: Swiss Implementation Guidelines for the QR-bill, SIX Group
- SEPA: EPC069-12 v3.0
- EMVCo merchant: EMV QR Code Specification for Payment Systems v1.1
- Bitcoin: BIP-21
- Lightning: BOLT-11
- eSIM: SGP.22 Section 4.1.1 (LPA activation code)
- iCalendar (events): RFC 5545
- geo: URI: RFC 5870
- SSH (ssh-uri): RFC 4250 / Termius URI scheme
- OpenPGP: RFC 9580
- SIP URI: RFC 3261
- magnet: URI: Magnet URI scheme (BEP 9)
- GS1 Digital Link: GS1 Digital Link Standard v1.4