Dev.to WebDev 🛠 Dev 👁 1 📖 4 min read

I make QR codes that don't phone home — no tracking redirect, no server

Most QR code generators do their work on a server, and a good number encode a redirect through their own domain instead of your URL. That gives them a record of every scan, and a code that can stop working if their servi

Most QR code generators do their work on a server, and a good number encode a redirect through their own domain instead of your URL. That gives them a record of every scan, and a code that can stop working if their service does. I wanted to check what the generator I use actually does, so I ran it and wrote down what it produced.

A worked example, with the numbers

I entered this as the payload:

https://toolsbyus.com

With the defaults — error-correction level M, scale 8, quiet zone 4 — the tool reported:

  • Version 2, a 25 × 25 module grid
  • Byte mode, 21 bytes of payload
  • Error correction M, about 15% recoverable

I downloaded both formats from that same code. The PNG came to about 90 KB and the SVG to about 5 KB.

The surprising detail

The PNG and the SVG describe the same 25 × 25 grid, yet the PNG download was roughly eighteen times the size of the SVG. That makes sense once you look at what each format is: the SVG is one path element describing squares, so it stays small and stays crisp at any size, while the PNG is a raster image. The tool's own guidance matches this — SVG for anything printed, PNG for a context that will not accept vector, such as some email clients and social platforms. I had assumed the two downloads would be close in size. They were not, and for print the choice is now obvious.

What the other payload types do

The tool offers three payload types: Text or URL, Wi-Fi, and Contact.

For Wi-Fi I used a test network, not a real one: SSID HomeWiFi, security WPA, password test-password-123. The encoded payload was:

WIFI:T:WPA;S:HomeWiFi;P:test-password-123;;

That produced version 4, a 33 × 33 grid, in byte mode, with 43 bytes of payload.

For Contact I used invented details — Test Person, +1 555 010 0000, [email protected]. The tool built a vCard 3.0 payload:

BEGIN:VCARD VERSION:3.0 FN:Test Person N:Test Person;;;; TEL;TYPE=CELL:+1 555 010 0000 EMAIL:[email protected] END:VCARD

That produced version 7, a 45 × 45 grid, in byte mode, with 119 bytes of payload. The same error-correction level, M, was used throughout. The point is visible in the numbers: a contact card is not a slightly longer URL, it is a much larger symbol.

Error correction is a trade, not a quality setting

The tool offers four levels: L, about 7% recoverable; M, about 15%; Q, about 25%; and H, about 30%. Higher correction means more redundancy in the same symbol, so either the symbol grows or the payload that fits shrinks. M is the default, described on the page as the usual default and the right one for a screen or a clean print. Q is suggested for a sticker or label, H for print that will be outdoors or where a logo is overlaid.

Versions run from 1 to 20, and the tool picks the smallest that fits. Size is version × 4 + 17 modules, so version 2 is 25 × 25, version 4 is 33 × 33, and version 7 is 45 × 45. Version 20 at level L holds 858 bytes, which the page notes is already past what most people should put in a code.

The page states that the encoder is ISO/IEC 18004 implemented in the page, that nothing is requested and nothing is sent, and that the text you put in is never uploaded, logged or transmitted. It also invites you to verify that in the Network panel. I did not run a packet capture of my own, so I am reporting what the page states and what its Local-only label says, not a network trace I performed.

Honest caveats

  • Static only. The code encodes your data directly, with no redirect, no short link and nothing on a server. That is why it cannot expire — and also why you cannot change the destination after printing. Change the URL and you need a new code.
  • No scan analytics. With no redirect and no server involved, there is nothing counting scans. If you need to know how often a code was scanned, this tool cannot tell you.
  • No dynamic or editable codes. There is no account, no stored code and no edit step that I saw. The controls I used were payload type, error-correction level, scale and quiet zone.
  • A Wi-Fi code is not a security measure. The encoding happens in the browser, so the password is not transmitted anywhere, but the code itself puts the password in a form anyone who photographs it can read. The page says the same thing: print it for guests, not for the network your servers are on.
  • Keep the quiet zone. The default is 4 modules of blank margin, which the specification requires. Scanners need it to find the symbol's edge.

The check that matters

A QR code either encodes your data or it encodes someone else's redirect. This one encodes your data: the payload the tool showed me was exactly the text I typed, the version and size followed from that payload, and the code cannot expire because there is nothing on a server to lapse. That is a narrow claim, and it is the one I verified.

You can run the same test here: QR Code Generator

ToolsByUs lists 136 free tools, and this is one of them.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.