📱 QR Code Generator
📐 工作原理与说明
QR 码由定位与编码两类图案组成:
- 定位图案:三个角上的 Finder(回字)、Alignment、Timing,用于扫码定位与校正。
- 编码模式:纯数字走数字模式、字母数字子集走字母数字模式,其余按字节(UTF-8)模式;本工具不支持汉字(Kanji)模式,也不做分段混合优化。
- 纠错等级 L / M / Q / H 可恢复约 7% / 15% / 25% / 30% 的损毁。
- 版本 1–40 对应模块 21×21 → 177×177;含 Reed-Solomon 纠错与掩码优化。
纯前端生成,扫码即可读取,无需联网。
⚙️ 内容与样式
QR text may contain Wi‑Fi passwords, contact details or private links. When enabled it is stored in this browser's localStorage; keep it off on shared devices and clear it when done.
Single mode encodes the whole text, including line breaks and leading/trailing spaces, as one QR code — ideal for vCards and Wi‑Fi. Batch mode splits by line into multiple codes and can trim each line.
Batch mode generates at most 20 QR codes per run; extra non-empty lines are reported here so you can generate them in batches.
256px
If the requested size cannot give every module at least one pixel, the output is raised to the minimum and reported after generation.
#000000
#ffffff
支持网址、文本、Wi‑Fi、名片和短信;二维码内容始终留在浏览器本地。
🔍 预览与下载
输入内容后自动生成
📚 深度解析:二维码生成器
💡 常见使用场景
- 把文本/链接生成可扫二维码。
- 把 WiFi 密码或活动链接做成二维码贴在现场,用户扫码即可连接或打开,省去手输长串字符。
生成
输入 `https://ex.com` → 生成 QR(版本随内容长度自动选)。
❓ 常见问题(FAQ)
- 容量上限?
- 版本 40-L 的容量:数字模式 7,089 位、字母数字模式 4,296 字符、字节模式 2,953 字节。
- 为什么内容越长码越密?
- 二维码容量按「版本」分级:内容越长需要的码字越多,版本越高、模块数越多、单个模块就越小,因此同样打印尺寸下长内容更难扫。实用建议是先缩短内容(用短链)、把纠错等级从 H 降到 M,并保证打印尺寸随版本增大。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Version capacity | versions 1-40, from 21x21 modules, +4 per version | ISO/IEC 18004 |
| Error correction | Reed-Solomon coding appends check codewords per block | ISO/IEC 18004 |
| Modes | Numeric for digits, alphanumeric subset for its characters, otherwise byte (UTF-8); no Kanji mode or segmented mixed-mode optimization | ISO/IEC 18004 |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准