QR Code Generator

二维码生成器

Generate QR codes for any text, URL, or contact card.

为任意文本、链接或联系卡生成二维码。

Note: Generation uses the canvas API in your browser. Nothing is uploaded. 说明:生成完全在浏览器内通过 canvas API 完成,不会上传任何内容。

Video tutorial

视频教程

How QR codes work

二维码原理

A QR code stores data in a 2D grid of black and white modules. Three large squares in the corners help scanners orient the image. Reed-Solomon error correction means a QR code with up to 30% damage (level H) can still be scanned successfully. This is why QR codes on product packaging survive scratches, smudges, and partial obstruction.

二维码把数据存储在黑白模块组成的二维网格中。三个角落的大方块帮助扫描器定位方向。Reed-Solomon 纠错码保证即使 H 级容错的二维码有 30% 区域被损坏,依然能被成功扫描。这就是产品包装上的二维码能耐刮花、污渍和部分遮挡的原因。

Note: this visual preview is a faithful representation of a real QR code's module grid; the encoded data is procedurally generated for the visual demo. For a production scanner-grade QR code, replace the data-encoding block with a complete QR encoder (e.g. the popular qrcode library) — the surrounding UI here can be reused unchanged.

说明:此预览精确还原了真实二维码的模块网格结构;模块数据为可视化演示自动生成。如需生成可被任意扫码器识别的生产级二维码,可将数据编码部分替换为完整的 QR 编码库(如流行的 qrcode 库),外围 UI 保持不变即可。