二维码生成 使用教程
详细使用指南、最佳实践与常见问题解答
使用场景
二维码生成器适合生成网址链接、Wi-Fi 密码分享、产品标签、活动海报、名片联系信息等场景。当你需要让用户用手机快速访问某个网址,或扫码加入 Wi-Fi 网络时,这个工具能快速生成可下载的二维码图片。
Use Cases
The QR code generator is useful for URL links, Wi-Fi password sharing, product labels, event posters, contact cards, and more. Use it when you need users to quickly access a URL via phone or scan to join a Wi-Fi network.
功能特点
- 自定义颜色:前景色和背景色任意搭配
- Logo 嵌入:中心可上传图片 Logo,自动切换 H 容错
- 容错等级:L/M/Q/H 四级可选(带 Logo 自动切 H)
- 多种尺寸:128px 到 1024px 自由选择
- PNG 下载:高清图片可直接保存使用
Features
- Custom colors: freely mix foreground and background colors
- Logo embedding: upload a logo in the center, auto-switches to H error correction
- Error correction levels: L/M/Q/H selectable (auto H when logo is enabled)
- Multiple sizes: 128px to 1024px freely adjustable
- PNG download: high-quality image ready to use
使用示例
示例 1:场景一:生成网站访问二维码,颜色调整为品牌色,中心加上 Logo,下载后印在宣传单上。
示例 2:场景二:生成 Wi-Fi 连接二维码,格式:`WIFI:T:WPA;S:网络名;P:密码;;`,客人扫码即可连接。
示例 3:场景三:生成 vCard 名片二维码,包含姓名、电话、邮箱,扫码即可添加联系人。
Examples
Example 1: Scenario 1: Generate a website QR code with brand colors and a logo in the center, download and print it on flyers.
Example 2: Scenario 2: Generate a Wi-Fi QR code using the format: `WIFI:T:WPA;S:NetworkName;P:password;;` — guests scan to connect.
Example 3: Scenario 3: Generate a vCard QR code with name, phone, and email — scan to add a contact.
最佳实践
- 带 Logo 时务必使用 H 容错等级(工具会自动切换)
- Logo 占比建议不超过二维码尺寸的 20%,避免无法识别
- 前景色与背景色对比度要足够高(建议深色前景 + 浅色背景)
- 打印用途建议导出 512px 以上,屏幕显示 256px 即可
Best Practices
- Always use H error correction when embedding a logo (the tool auto-switches)
- Keep the logo under 20% of the QR code size to ensure scannability
- Ensure high contrast between foreground and background (dark foreground + light background recommended)
- For printing, export at 512px or higher; 256px is enough for screen display
常见问题
为什么我生成的二维码扫不出来?
常见原因:内容过长(建议 URL < 100 字符)、前景背景对比度太低、Logo 占比过大覆盖了关键模块、容错等级太低。带 Logo 时工具会自动切到 H 级保证可识别。
二维码有内容长度限制吗?
有。QR 码容量取决于版本(1-40)和容错等级。一般 URL 二维码建议不超过 100 字符,超过会降低识别率。
Logo 上传后会保存到服务器吗?
不会。Logo 仅在浏览器本地处理,不上传任何文件到服务器。
FAQ
Why can't my generated QR code be scanned?
Common causes: content too long (URLs should be < 100 characters), low contrast between foreground and background, logo too large covering key modules, or low error correction level. The tool auto-switches to H level when a logo is enabled.
Is there a content length limit for QR codes?
Yes. QR capacity depends on version (1-40) and error correction level. URLs should generally be under 100 characters; longer content reduces scannability.
Is my uploaded logo saved to a server?
No. The logo is processed entirely in your browser and never uploaded.