工具箱Toolbox/二维码生成器QR Code Generator

二维码生成器QR Code Generator

网址、一段文字、Wi-Fi 账号、联系人名片,输入即生成。可存 PNG 或 SVG,打印也清晰。 Links, plain text, Wi-Fi credentials or contact cards. Type it in, get a code — download PNG or SVG that stays sharp in print.

QR code

二维码是「静态码」:内容直接写在图形里,不经过任何短链服务,不会失效,也不会被统计。 This is a static code: the data is encoded directly in the image, with no short-link service — it never expires and is never tracked.

内容不离开浏览器。Content stays in your browser. 二维码在你的设备上编码,文字、Wi-Fi 密码和联系方式都不会发往服务器。 The code is generated on your device — text, Wi-Fi password and contact details never reach a server.

怎么用How to use it

选一种类型,填内容,二维码会随输入实时刷新。手机上长按图片可保存,桌面浏览器用下面的按钮下载。做海报、名片、桌牌建议下 SVG:矢量格式放大到任意尺寸都不模糊;发微信、贴群公告用 PNG 更省事。 Choose a type, fill in the content, and the code refreshes as you type. On a phone you can long-press to save; on desktop use the buttons. For posters, business cards and table signs, download SVG — vector art stays crisp at any size. For messaging apps, PNG is simpler.

纠错等级怎么选Choosing error correction

二维码里带着冗余数据,即使污损一角仍能读出。L 约 7%、M 约 15%、Q 约 25%、H 约 30%。屏幕展示或用普通纸打印,M 足够;要印在易磨的贴纸、产品或户外物料上,选 Q 或 H。代价是同样内容需要更多模块,码会变密,远距离扫描反而更难,所以不必无脑拉满。 A QR code carries redundant data so it still reads when partly damaged. L recovers about 7%, M 15%, Q 25%, H 30%. For screens and ordinary paper, M is plenty; for stickers, products or outdoor signage that wear, use Q or H. The trade-off is more modules for the same content — a denser code is harder to scan from a distance, so don’t max it out reflexively.

能装多少内容How much data fits

数字最多约 7000 位,纯字母约 4300 位,中文等 Unicode 字符每个占 8 位以上,实际能放的字数明显更少,而且更密、更难扫。二维码是给「短内容」用的:放一个网址、一段十几个字的提示、一串 Wi-Fi 参数最合适。真要放长文,正确做法是放链接,把正文放在网页里。 Up to roughly 7,000 digits or 4,300 alphanumeric characters, while Unicode characters such as Chinese take 8 bits or more each — noticeably fewer characters, denser code, harder to scan. QR codes suit short payloads: a URL, a one-line note, Wi-Fi parameters. For long content, encode a link and keep the text on a page.

Wi-Fi 码的注意事项Notes on Wi-Fi codes

Wi-Fi 二维码里的密码是明文编码,任何能扫的人都能读出来——它只是省去手输,不是加密。iOS 和 Android 都会在扫码后弹出「加入网络」的提示,需要用户确认。改密码后要重新生成。另外,特殊字符(分号、逗号、引号、反斜杠)需要转义,本工具已自动处理。 A Wi-Fi password is encoded in plain text — anyone who can scan can read it. It saves typing, it is not encryption. Both iOS and Android prompt the user to join after scanning. Regenerate the code when the password changes. Special characters (semicolon, comma, quotes, backslash) need escaping, which this tool handles.

为什么坚持黑白Why black on white

扫码依赖深浅对比。彩色码、反色码(白码黑底)、把 logo 压在中心,都会降低识别率,在老手机或光线差时尤其明显。如果一定要放 logo,请把纠错等级提到 H,并保证 logo 不超过中心 20% 的面积;不做这些处理时,黑白纯色是最稳的选择。 Scanning depends on contrast. Coloured codes, inverted codes (white on black) and logos stamped over the centre all reduce the read rate, especially on older phones or in poor light. If you must add a logo, raise error correction to H and keep the logo under about 20% of the centre area; otherwise plain black on white is the safest choice.

常见问题FAQ

生成的二维码会过期吗?Do these codes expire?

不会。这是静态二维码,内容直接编码进图形,不依赖任何服务器或短链。只要内容本身还有效(例如网址没有下线),码就一直能扫。 No. These are static codes: the data lives inside the image with no server or short link involved. As long as the content is valid (the URL still resolves, for example), the code keeps working.

扫不出来怎么办?It won’t scan — what should I do?

按顺序查:尺寸是否太小(印刷建议不小于 2 厘米见方)、四周留白是否被裁掉(码外的白色边框是标准的一部分)、是否反色或加了很多装饰、内容是否太长导致模块过密。缩短内容或换更大的尺寸通常立刻见效。 Check in order: is it too small (at least 2 cm square in print), was the quiet zone cropped (the white border is part of the standard), is it inverted or heavily decorated, is the payload so long that modules got tiny. Shortening the content or choosing a larger size usually fixes it at once.

能生成带统计的二维码吗?Can I get scan analytics?

不能,这是刻意的。带统计的码要经由第三方短链跳转,意味着你的访客数据会被那家服务记录,而且服务一停,码就全废。需要统计时,把网址换成带 UTM 参数的链接,用你自己的统计工具看数据。 No, deliberately. Tracked codes route through a third-party short link, which means that service records your visitors — and if it shuts down, every code breaks. If you need analytics, use a URL with UTM parameters and read it in your own analytics.

PNG 和 SVG 该选哪个?PNG or SVG?

PNG 是位图,适合屏幕、聊天软件与网页,文件小;SVG 是矢量,印刷、放大、交给设计排版时用,永远不会糊。两者编码的内容完全一样。 PNG is a bitmap: screens, chat apps, web pages, small files. SVG is vector: print, scaling, handing to a designer — never blurry. Both encode exactly the same content.