QR Code Generator二维码生成器
Most free QR sites hand you a code that points at their domain, so it can expire, break, or start charging you. This one encodes your content directly — the code is yours permanently, and the whole thing runs on your device.大部分免费二维码网站给你的,其实是指向他们域名的短链,随时可能过期、失效,或哪天开始收费。这个直接把你的内容编码进去 —— 二维码永远属于你,而且整个生成过程都在你的设备上完成。
What goes inside the code二维码里放什么
Updates as you type. Nothing is uploaded anywhere.输入时即时更新。内容不会上传到任何地方。
How this is calculated计算方式说明
A QR code is not a picture of a link — it is the link itself, written out in black and white squares. Nothing needs to be looked up, which is why a well-made code still works twenty years later with no server involved.
Static codes, and why that matters
There are two kinds of QR code, and most free generators do not tell you which one you are getting.
- Static — your content is encoded directly into the pattern. It works forever, offline, with no account and no third party. It cannot be edited after printing, and nobody can count the scans. This tool makes static codes.
- Dynamic — the code actually contains a short link on someone else's domain, which redirects to your content. Handy if you need to change the destination later, but that redirect is now a dependency: if the service shuts down, changes its pricing, or lets the domain lapse, every code you printed becomes dead paper. Plenty of businesses have reprinted a whole menu run for exactly this reason.
If your destination will never change — your website, your WhatsApp, your Google review page — static is simply the safer choice.
Choosing the error correction level
Reed-Solomon error correction lets a damaged code still be read. Four levels are defined, and the trade-off is real: more recovery capacity means more data to store, which means a denser grid.
| Level | Recoverable | Best for |
|---|---|---|
| L | ~7% | Clean digital use — a screen, a PDF, a slide |
| M | ~15% | The sensible default for most printing |
| Q | ~25% | Table tents, stickers, anything that gets handled |
| H | ~30% | Outdoors, or when a logo covers the centre |
Level H is not automatically better. At the same printed size a level H code has smaller modules, so a cheap camera may struggle with it more than a level M code would. Use H when you genuinely expect damage or are covering part of the code — otherwise M or Q.
The quiet zone is not decoration
The standard requires four empty modules of margin on every side. This blank border is how a scanner works out where the code starts and how big one module is. Codes fail far more often from a missing quiet zone than from anything else — particularly when someone crops the image tight or places it flush against a coloured background.
Size it for the scanning distance
The working rule is 10:1. Divide the distance a phone will be held from the code by ten, and that is your minimum width. A code on a table tent read from 30 cm needs about 3 cm. A code on a shop window read from 2 metres needs about 20 cm. For print, keep each individual module at roughly 0.4 mm or larger, and always use the SVG so nothing gets soft at the edges.
Colour rules
Dark dots on a light background, always. Inverted codes — light dots on dark — are technically permitted by the standard but a large share of phone cameras will not read them. Keep the contrast ratio above 7:1, avoid gradients across the finder patterns in the corners, and never put a code on a busy photo.
Non-English text
Chinese, Malay accents, emoji and anything else outside plain ASCII are encoded as UTF-8 in byte mode, which every modern phone camera handles. Note that non-ASCII characters use two to four bytes each, so a Chinese sentence fills a code considerably faster than the same sentence in English.
Nothing leaves your browser
The entire encoder — Reed-Solomon error correction, mask selection, the lot — is implemented in the JavaScript on this page. There is no upload, no API call and no logging. If you disconnect from the internet after the page loads, it keeps working. That matters when the code contains a Wi-Fi password or a private link.
This is not a DuitNow QR
A DuitNow QR that accepts payments is issued by your bank or payment provider and carries your registered merchant details in a specific PayNet format. You cannot create a valid one here, or anywhere else outside your bank. If someone offers to generate a payment QR for you, treat it as a scam.
二维码不是一张「链接的图片」,它本身就是那段内容,用黑白方块写出来而已。不需要向任何服务器查询,所以做得好的二维码,二十年后没有服务器也照样能扫。
静态码,以及为什么这很重要
二维码分两种,而大部分免费网站不会告诉你他们给的是哪一种。
- 静态码 —— 你的内容直接编码在图案里。永久有效、离线可用、不需要账号、不经第三方。印出来之后不能改内容,也没有人能统计扫描次数。本工具生成的就是静态码。
- 动态码 —— 图案里其实是别人域名下的一条短链,再跳转到你的内容。要改目标网址时很方便,但那次跳转从此变成了你的依赖:一旦该服务关闭、改成收费,或域名到期没续,你印出去的每一张都变废纸。为这件事整批重印菜单的商家不在少数。
如果目标永远不会变 —— 你的官网、你的 WhatsApp、你的 Google 评论页 —— 静态码就是更安全的选择。
怎么选容错等级
Reed-Solomon 纠错让残缺的二维码仍能被读取。标准定义了四个等级,取舍是实打实的:可恢复的比例越高,要存的数据越多,格子也就越密。
| 等级 | 可恢复 | 适用场景 |
|---|---|---|
| L | 约 7% | 纯数字场景 —— 屏幕、PDF、投影片 |
| M | 约 15% | 大多数印刷品的合理默认值 |
| Q | 约 25% | 桌卡、贴纸,任何会被反复触摸的东西 |
| H | 约 30% | 户外使用,或中间要盖上 logo 时 |
H 并不是「一定更好」。在同样的印刷尺寸下,H 等级的模块更小,便宜的摄像头反而可能比读 M 等级更吃力。真的预期会有磨损、或要遮住一部分时才用 H —— 否则 M 或 Q 就够了。
静区不是装饰
标准要求二维码四周各留 4 个模块的空白。这圈留白是扫描器判断「码从哪里开始、一个模块多大」的依据。二维码扫不出来,最常见的原因就是静区被吃掉了 —— 尤其是有人把图裁得太紧,或把码直接贴在有颜色的背景上。
尺寸要按扫描距离来定
实用法则是 10:1。把手机离二维码的距离除以十,就是最小边长。桌卡上 30 公分处扫描的码,大约要 3 公分。橱窗上 2 米外扫描的码,大约要 20 公分。印刷时每个模块最好不小于 0.4 毫米,并且一律用 SVG,边缘才不会糊。
颜色规则
永远是浅底深点。反色码 —— 深底浅点 —— 标准上虽然允许,但相当比例的手机相机读不出来。对比度保持在 7:1 以上,四角的定位图案上不要压渐变,也绝对不要把码放在花哨的照片上。
中文与非英文内容
中文、马来文的重音符号、emoji 等非 ASCII 字符,会以字节模式的 UTF-8 编码,现代手机相机都能处理。要注意的是非 ASCII 字符每个占 2 到 4 个字节,所以同样一句话,中文会比英文快很多把容量填满。
内容不会离开你的浏览器
整个编码器 —— Reed-Solomon 纠错、掩码选择,全部 —— 都写在这个页面的 JavaScript 里。没有上传、没有 API 调用、没有日志。页面加载完之后断网,它照样能用。当二维码里装的是 Wi-Fi 密码或私密链接时,这一点很关键。
这里做不出 DuitNow QR
能收款的 DuitNow QR 是由你的银行或支付服务商签发的,里面带有你注册的商户资料,格式由 PayNet 规定。在这里做不出有效的收款码,在银行以外的任何地方都做不出。如果有人说可以帮你生成收款二维码,那是诈骗。
Frequently asked questions常见问题
Which error correction level should I pick?容错等级该选哪一个?
My QR code will not scan. What is wrong?我的二维码扫不出来,问题出在哪?
Can I put my logo in the middle of the code?可以在二维码中间放我的 logo 吗?
Does this code expire, and can you see who scans it?这个二维码会过期吗?你们看得到谁扫了吗?
Can I generate a DuitNow QR to receive payments?可以用这里生成 DuitNow QR 收款吗?
Need a website that brings you customers?想要一个能带来客户的网站?
We build the demo first. You only pay when you are happy with it.我们先做好 demo 给你看,满意了才付款。
Get a free demo免费获取 Demo