QR code to STL generator

Turn a link, a text or a Wi-Fi login into a scannable 3D printed QR code, with the module size matched to your nozzle and a base for a two-colour print.

Never uploadedLinks, text and Wi-FiError correction L–HTwo-colour readySTL & 3MF

Loading tool…
3dfiles Pro: big files, STEP export, batches.Pro adds files over 100 MB, unlimited STEP export, fit-to-printer cuts, colour 3MF and big batches. A one-off 7-day pass, or monthly with 7 days free.
See Pro

Examples

These pictures are this tool's own preview, not photographs. Click one to open the tool with those settings. Printed something with it? Send a photo to hello@3dfiles.app and it can be shown here.

How to 3D print a QR code that scans

  1. Paste your link or text. Shorter text = fewer modules = bigger pixels.
  2. Keep the module size at 2 mm or more for a 0.4 mm nozzle (about 1.5 mm is the practical minimum).
  3. Print the base in white and the code in black: pause the print at the base height and swap filament.
  4. Keep the quiet zone, the plain border around the code – scanners need it. The QR code standard asks for 4 modules on every side; the tool starts at 2 to keep the plate small. Set it to 4 for a code that follows the standard.

Quiet zone: 2 or 4 modules?

Denso Wave, the company that developed the QR code, states that it requires a four-module wide margin on all sides. The Quiet zone field accepts 0 to 8 modules and starts at 2. Each extra module adds two module widths to the plate: a 25-module code with 2 mm modules is 58 mm with a quiet zone of 2 and 66 mm with 4.

  • Use 4 for anything that has to scan first time, for strangers' phones and for codes read by dedicated scanners.
  • A smaller margin is outside the specification. If the space forces you to use one, print a test piece and scan it with the phones that will read it before you make more.
  • The margin is part of the plate. On a plain light wall the surroundings add to it; on a dark or patterned surface the plate's own margin is all a scanner gets, so use 4 there.

Which error correction?

LevelRecoversUse when
L~7 %Smallest code, indoor signs
M~15 %Good default
Q~25 %Outdoor or worn surfaces
H~30 %Rough prints, partial damage

Denso Wave's own guidance on error correction agrees: level M is the one most often chosen, Q or H suit places where the code gets dirty, and L suits clean places with a lot of data. A higher level needs more modules for the same text, so the plate grows.

More detail in how to 3D print a QR code.

Two colours: what is in the STL and the 3MF

Both downloads hold the same single body: base and code are one closed solid, not two coloured parts. The colours come from a filament change. The line under the preview gives the height, for example "pause at 2 mm and swap filament": add a pause or filament change at that height in your slicer, print the base in the light colour and the code in the dark one. The 3MF states millimetres in the file; an STL has no unit, so if it imports at the wrong size see STL units and scale.

What people print: Wi-Fi QR code signs, labels and tags

UseWhat to enterSize at 2 mm modules
Wi-Fi sign for guestsContent: Wi-Fi network, then name, password and security (WPA, WEP or none)A 5-letter name with a 12-character password gives 29 × 29 modules: 66 mm, or 74 mm with a quiet zone of 4
Link tag on a machine or toolA short link, up to 26 characters25 × 25 modules: 58 mm
Label for a storage binA short code or link, up to 14 characters21 × 21 modules: 50 mm. At 1.5 mm modules, 37.5 mm
Contact cardPaste the vCard text into the text fieldA 141-character card gave 49 × 49 modules: 106 mm

Sizes are for Medium error correction and a quiet zone of 2 unless stated. For bins and drawers, the code can sit on a part from the Gridfinity generator or the box generator.

Common problems with 3D printed QR codes

  • The code is larger than the space I have. The plate size follows the text length, not a size you choose. Its side is (modules + 2 × quiet zone) × module size, and the module count is shown under the preview. Turned round, the module size that fits is the available width ÷ (modules + 2 × quiet zone): a 25-module code in a 45 mm space with a quiet zone of 4 leaves 45 ÷ 33 ≈ 1.36 mm, below the 1.5 mm a 0.4 mm nozzle needs. Shorten the text: remove tracking parameters and "www.", or link to a short address on your own domain.
  • Inverted codes do not scan after a filament swap. With Inverted ticked the light modules are raised and the dark ones are recesses. The quiet zone stays at base height, so with a dark base it turns dark as well and scanners lose the edge of the code. Use Inverted for a single-colour print where you fill the recesses with dark paint; leave it unticked for a two-colour print.
  • The dark modules look grey. One or two layers of dark filament over a white base let light through. Keep the code height at 0.6 mm or more; the default is 1 mm.
  • It scans up close but not from across the room. A common rule is a reading distance of about ten times the width of the code. A 50 mm code works to roughly half a metre; a sign read from 2 m needs about 200 mm.
  • Glossy or silk filament. Reflections wipe out the contrast for a phone camera. Matt black on matt white is the most reliable pair.

How big will the code be?

Text length (Medium correction)ModulesPlate at 2 mm modules, quiet zone 2 / 4
up to 14 characters21 × 2150 mm / 58 mm
up to 2625 × 2558 mm / 66 mm
up to 4229 × 2966 mm / 74 mm
up to 6233 × 3374 mm / 82 mm
up to 8437 × 3782 mm / 90 mm

Accented letters and emoji count as two to four characters each. Dropping from Medium to Low correction gains a few characters per size; High costs roughly half the capacity.

Tips for best results

Match the module size to the nozzle. A module needs about four extrusion widths to print as a clean square: roughly 1 mm with a 0.25 mm nozzle, 1.5 mm with 0.4 mm, 2.4 mm with 0.6 mm and 3.2 mm with 0.8 mm. The tool accepts 0.8–10 mm and warns below 1.2 mm.

Set the base thickness to a whole number of layers so the colour change falls exactly on top of the base: 2 mm is 10 layers at 0.2 mm. Scan the first print with two different phones before making a batch. For a tag to hang on a bag or a key ring, pair the code with a name tag from the keychain generator.

Common questions

Why doesn't my printed QR code scan?

Usually low contrast (same colour for code and base), modules smaller than the nozzle can print cleanly, or a missing quiet zone. Use two colours and 2 mm modules.

Can I make a Wi-Fi QR code?

Yes. Choose "Wi-Fi network" under Content and type the network name and password; the code is built for you. Anyone who scans it can join the network, so it suits a guest network best.

What size should a 3D printed QR code be?

Start from the module, not the plate: 2 mm modules for a 0.4 mm nozzle, 1.5 mm at the least. The plate is then (modules + 2 × quiet zone) × module size, 58 mm for a short link. For a sign read from a distance, make the code about a tenth of the reading distance wide.

Can the base and the code be different colours?

Yes, with a filament change at the top of the base: the height is shown under the preview. The files hold one body, not two coloured parts, so the colours are not stored in the STL or the 3MF.

Does the code still work if I scale it in my slicer?

Yes, as long as you scale X and Y by the same factor, so the modules stay square. Keep the module size printable: a plate made with 2 mm modules and scaled to 75 % has 1.5 mm modules.

STL or 3MF: which should I download?

They contain the same model. The 3MF states that it is in millimetres, so it cannot import at the wrong size; choose STL when your slicer or print service does not take 3MF.

Is the model watertight?

Yes. With a base, the modules and the base are joined into one closed solid. With the base thickness set to 0 the modules are separate loose pieces.

Why does the STL import at the wrong size?

The model is in millimetres, but an STL file cannot say so. A program set to inches or metres reads the numbers in its own unit. Set the import unit to millimetres, or use the 3MF. More in STL units and scale.

Is my text uploaded?

No. The QR code is generated in your browser.

How big will my printed QR code be?

Side length = (modules + 2 × quiet zone) × module size. A short link gives 25 modules; with the default 2 mm modules and a quiet zone of 2 the plate is 58 mm square, and 66 mm with the quiet zone of 4 that the QR standard asks for. The exact size is shown under the preview.

Can I change where the code points after printing?

No. The text is stored in the pattern itself. If the destination may change, encode a short address on a domain you control and redirect it, and keep in mind the code stops working if that address ever does.