Free · No sign-up · No download免费 · 无需注册 · 无需下载

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.输入时即时更新。内容不会上传到任何地方。

px
modules模块
    Print tip. Use the SVG for anything printed — it stays sharp at any size. As a rule of thumb the code should be at least one tenth of the scanning distance: a code read from 1 metre away wants to be about 10 cm across. 印刷提示。要印刷就用 SVG —— 放大到任何尺寸都不会糊。经验法则:二维码边长至少是扫描距离的十分之一,1 米外扫描的码,大约要 10 公分见方。

    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.

    LevelRecoverableBest 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?容错等级该选哪一个?
    M is the right default for almost everything printed. Move up to Q for items that get handled constantly — table tents, stickers, name cards — and to H only if you are covering the centre with a logo or the code will live outdoors. Stay on L only for codes that are shown on a screen and will never be damaged. Remember that higher levels make the grid denser, so at a fixed printed size an H code has smaller squares and can actually be harder for a cheap camera to read than an M code.印刷品几乎都用 M 就对了。会被反复拿在手上的东西 —— 桌卡、贴纸、名片 —— 升到 Q;只有在中间要盖 logo,或二维码要放在户外时才用 H。只有纯粹显示在屏幕上、不可能受损的码才留在 L。要记得等级越高格子越密,所以在印刷尺寸固定的情况下,H 的方块更小,便宜的摄像头读起来反而可能比 M 更吃力。
    My QR code will not scan. What is wrong?我的二维码扫不出来,问题出在哪?
    In order of how often it happens: the quiet zone was cropped away (you need four empty modules of margin on all four sides); the code is printed too small for the scanning distance (use the 10:1 rule — a code read from 1 metre should be about 10 cm across); the colours are inverted or too low in contrast (dark dots on a light background, contrast above 7:1); the image was resized in a way that blurred the module edges (use the SVG for print); or the code is sitting on a glossy surface that reflects light straight back into the camera. This tool warns you about the first three as you build.按发生频率排序:静区被裁掉了(四边各要留 4 个模块的空白);相对于扫描距离印得太小(用 10:1 法则 —— 1 米外扫描的码大约要 10 公分);颜色反了或对比度太低(浅底深点,对比度 7:1 以上);图片缩放时把模块边缘弄糊了(印刷请用 SVG);或者码贴在反光的表面上,光直接打回摄像头。前三项本工具在你调整时就会提醒你。
    Can I put my logo in the middle of the code?可以在二维码中间放我的 logo 吗?
    Yes, and this is exactly what the error correction is for. Download the SVG, place your logo over the centre in any design tool, and keep it under about 20% of the code area even if you generated at level H — the stated 30% is the theoretical maximum, not a safe working figure. Never cover the three large squares in the corners: those are the finder patterns, and a scanner cannot locate the code without all three. Always test the finished artwork with two or three different phones before it goes to print.可以,纠错功能正是为此而设。下载 SVG,用任何设计软件把 logo 压在中间,即使你用的是 H 等级,遮挡面积也控制在整体的 20% 以内 —— 标称的 30% 是理论上限,不是安全值。绝对不要盖住四角那三个大方块:那是定位图案,缺一个扫描器就找不到这个码。成品送印之前,一定要用两三支不同的手机实测。
    Does this code expire, and can you see who scans it?这个二维码会过期吗?你们看得到谁扫了吗?
    No to both. The code contains your content directly, so there is no link on our domain, no redirect and no counter. It will still work if this website disappears tomorrow, and it works with no internet connection at all once scanned content is offline-friendly. We also never see what you typed — the encoder runs in your browser, so the text is never sent to us. The trade-off is that scan analytics are impossible, and you cannot change the destination after printing.都不会。二维码里直接装的是你的内容,没有经过我们域名的短链、没有跳转、也没有计数器。就算这个网站明天消失,它照样能用。我们同样看不到你输入了什么 —— 编码在你的浏览器里完成,文字从来没有传给我们。代价是没办法统计扫描数据,印出去之后也不能改目标内容。
    Can I generate a DuitNow QR to receive payments?可以用这里生成 DuitNow QR 收款吗?
    No. A DuitNow QR must be issued by a bank or a PayNet-licensed payment provider and carries your verified merchant identity in a regulated data format. No third-party generator can create a valid one, and any site or person offering to do so should be treated as a scam. Apply through your own bank or e-wallet provider. What you can usefully make here is a code pointing at your WhatsApp, your website, your menu or your Google review page.不行。DuitNow QR 必须由银行或持有 PayNet 牌照的支付机构签发,里面带有经过验证的商户身份,格式受监管。任何第三方生成器都做不出有效的收款码,凡是声称可以代做的网站或个人,都应当视为诈骗。请通过你自己的银行或电子钱包申请。在这里真正有用的,是生成指向你 WhatsApp、官网、菜单或 Google 评论页的二维码。

    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