r/SideProject • • 9h ago

Free, open-source QR Code Generator

I needed to make a series of QR codes and was super frustrated with what was out there for the following reasons:

- Many have dynamic links (they have their place but it's not what most people want).

- Not enough control. Error correction, version, labels, borders...

- Not enough design freedom. I wanted to be able to change module shapes, size, color, logo, eye frames and centers...

- Poor quality. If you are making a giant banner, you need high resolution. If it's for a business card, you don't need as large of a size. If you want to laser cut it, you need a vector format.

- Don't export in ideal formats. PNG supports clear backgrounds and SVG are great for laser cutting. I've done some cool, really large laser cut QR codes through online or local laser cutting vendors.

- Difficult to do batches of QR codes. For instance if you want a website QR Code, email QR code, Instagram QR Code, and a Venmo QR code all in the same design for your brand or style, that can be tedious.

- Requires an account or to pay for "advanced" features.

So I made something with more control and freedom than anything else I've seen. It's open-source and hosted on the web. You don't need an account, it does not save any of your information, it does everything local to your computer. You can save as PNG or SVG for laser cutting or engraving. You can even save a project (which could be a batch of up to 20 QR codes) locally and reopen it months from now if you want to change your design. You can even download the webpage for offline use! It's an html page and will open in a browser for Windows or MacOS, even if you don't have internet.

Try it: https://natanthefirst.github.io/qr-code-generator/

Source: https://github.com/natanthefirst/qr-code-generator

I'd love to hear your feedback if you try it out!

Disclaimer: this app was coded with Claude Code

8 Upvotes

13 comments sorted by

1

u/Saver411 8h ago

for giant banners, exporting clean vector SVG is basically mandatory so you don't fight pixelation. The tricky part with custom eye shapes and centered logos is error correction overhead. Bumping to level H gives you roughly 30% recovery, but overly dense modules ruin scan reliability on older phones.

Are you rendering the SVG paths client-side, or doing the generation on a backend?

1

u/OfficerPiglet 8h ago edited 8h ago

You can generate the PNG at 1 meter wide with 300 dpi resolution. But vector is always better for a lossless format. Obviously with the limitations of your uploaded logo.

All client-side. You can download the webpage as an html file and run it offline and generate an SVG.

In testing, I tested many combinations of settings for scanability. Skewing the image as if not scanning head-on and reducing resolution to simulate old camera phones. This led to warnings at different settings. I even got rid of some eye frame/center designs because they weren’t reliable. Hexagon is the worst one in the app. It’s tilted at the angle that works best.

Always test before you get physical things made. Scan the screen, print a single copy at work or at the library. Never order a huge banner with a design a free app made without checking if it scans.

1

u/OMGCluck 5h ago

I tried to replicate this bloodsplatter style QR with your generator but the original filesize is 15 times smaller and looks 15 times more awesome than your version.

Perhaps you could add the code from that generator (public domain licensed) to yours for this specific style?

1

u/OfficerPiglet 2h ago

I'd just keep using the 15x more awesome one. Thanks for trying it out.

1

u/BizzzyApp 4h ago

When you switch from the SVG for laser cutting to the PNG for a business card, do you have to redo settings like error correction or resolution each time, or does one setup carry over cleanly to both formats?

2

u/OfficerPiglet 2h ago edited 2h ago

Exporting is done after designing. There is no "switching". Take a look and try it out!

You can also do 10 different links or code types and updating a single setting updates them all. You can save the entire project to your local computer and edit them later by loading your saved project and changing a single setting like size or color.

1

u/leedsdaddy 1h ago

I sometimes use QR codes in documents which link to reference papers, videos etc. Your application looks very useful and user friendly. Will the QR codes still work after several years? It's really annoying when a scan of a code in one of my documents just eventually leads to a 404 not found page.

1

u/OfficerPiglet 1h ago

I think you’re asking about static vs dynamic QR codes. QR codes just translate text to a grid of coded dots. Some services create a QR code of their own website link that forwards to the website you originally wanted to link to. This is called a dynamic link, and when their forwarding site stops hosting your link, you get an error. These QR codes are static. They link directly to whatever you type in forever.

However, If the website you link to changes, the static WR code won’t work anymore. For example if you the website no longer carries the article, the code won’t work anymore. The QR code doesn’t actually hold the article’s information in it, so it’s limited in that sense.

In other words, if you also included a link in a URL and it still worked in 10 years, so would the QR code.

1

u/leedsdaddy 49m ago

Thank you, that's very helpful. I'll use your app in future! 😺

1

u/Best_Researcher491 8h ago

I put https://example.com in the website field. Encoded data showed that URL, and the preview settled on version 3, 29×29, with error correction H.

Defaults that stayed on screen: 50 × 50 mm, module 1.35 mm, PNG 591 × 591 px, 19 bytes. The scan line said it should scan reliably, up to about 40 cm.

Under Save Project it says the page does not keep the codes once it is closed.

1

u/Automatic_Package667 1h ago

Tried it and it works really well. Nice job keeping it all local with no account. Batches with a consistent design are exactly where I would use this.

One suggestion, if it's not already there: URL parameters to pre-fill the generator, something like
.../qr-code-generator/?data=https://example.com&eye=square&color=000000

Another idea would be a small JS module or CLI from the same codebase for people who want to generate QR codes programmatically.