# Barcodes and QR Codes Generate QR, Code 128 and EAN-13 SVG barcodes, QR capacity, check digits and Wi-Fi or vCard payloads. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://barcode-qr.x402tookit.com/openapi.json - x402 manifest: https://barcode-qr.x402tookit.com/.well-known/x402 - Catalog (free): https://barcode-qr.x402tookit.com/catalog - Health (free): https://barcode-qr.x402tookit.com/health - Uptime (free): https://barcode-qr.x402tookit.com/uptime ## Endpoints (7) ### GET /barcode-check-digit — $0.02 Compute or verify the GS1 mod-10 check digit for EAN-8, UPC-A, EAN-13, ITF-14 (GTIN-14) and SSCC numbers. Params: code: string, type?: string Example: https://barcode-qr.x402tookit.com/barcode-check-digit?code=4006381333931 ### GET /code128-svg — $0.02 Encode ASCII text as a Code 128 barcode SVG with automatic subset A/B/C switching and the mod-103 checksum. Params: text: string, scale?: integer, height?: integer Example: https://barcode-qr.x402tookit.com/code128-svg?text=PJJ123C ### GET /ean13-svg — $0.02 Draw an EAN-13 or UPC-A barcode SVG: adds or checks the check digit and uses the L/G/R encodings. Params: code: string, type?: string, scale?: integer Example: https://barcode-qr.x402tookit.com/ean13-svg?code=4006381333931 ### GET /qr-capacity — $0.02 QR capacity from the ISO 18004 table: max digits, letters, bytes for a version, or the smallest version for a length. Params: ec: string, version?: integer, length?: integer, mode?: string Example: https://barcode-qr.x402tookit.com/qr-capacity?ec=Q&version=1 ### GET /qr-svg — $0.03 Encode text as a QR code SVG (ISO 18004, versions 1-40, error correction L/M/Q/H, auto mask). No dependencies. Params: text: string, ec?: string, version?: integer, mode?: string, mask?: integer, border?: integer, scale?: integer, fg?: string, bg?: string Example: https://barcode-qr.x402tookit.com/qr-svg?text=HELLO+WORLD&ec=Q ### GET /vcard-qr-payload — $0.03 Build a vCard 3.0 contact card (RFC 2426 escaping of ; , \ and newlines) and its QR code SVG. Params: fn: string, given?: string, family?: string, org?: string, title?: string, phone?: string, email?: string, url?: string, street?: string, city?: string, region?: string, postal?: string, country?: string, note?: string, ec?: string, border?: integer, scale?: integer Example: https://barcode-qr.x402tookit.com/vcard-qr-payload?fn=Jane+Example&org=Example+Co&phone=%2B1+555+0100&email=jane%40example.com ### GET /wifi-qr-payload — $0.03 Build the standard WIFI: join string (ZXing/Android escaping of ; , : \ and quotes) and its QR code SVG. Params: ssid: string, password?: string, auth?: string, hidden?: string, ec?: string, border?: integer, scale?: integer Example: https://barcode-qr.x402tookit.com/wifi-qr-payload?ssid=CafeGuest&password=example-pass-123 ## Terms Barcodes and QR codes are generated locally by published algorithms and returned as SVG text. Scan the result with your own reader before printing or relying on it; this service does not guarantee scanner compatibility, print quality or that a product code is registered to anyone.