logo
QR Codes•

3D Print QR Code: How to Turn a QR Code Into a Printable Model

How to 3D print a QR code that scans: start from an SVG, raise the dark modules over a light base, print two colors, keep the quiet zone and test a piece before a batch.

Avatar for undefined
CodeQR Team
Team Contenuti

To 3D print a QR code, download the code as an SVG file, import it into a CAD tool and raise the dark modules above a flat, light-colored base. Leave a blank border four modules wide around the code, print the raised modules in a dark color, either with a filament change at the layer where they start or with a printer that handles two materials, and scan a test piece with two phones before you print more. Use a dynamic code, so an object that costs hours to remake can still be pointed to a new page.

Facts about QR codes below come from DENSO WAVE, the company that created the QR code, and the slicer example from Prusa's knowledge base, both read on November 21, 2026.

How to 3D print a QR code, step by step

  1. Create the QR code and download it as an SVG, a vector file in which every module is a shape rather than a group of pixels.
  2. Import the SVG into a CAD tool that accepts SVG files.
  3. Remove the background square, keep the dark modules and extrude them above a base plate.
  4. Make the base plate larger than the code, so a light border at least four modules wide surrounds it.
  5. Export the model, slice it and add a filament change at the first layer of the modules, or assign the modules to a second material.
  6. Print one piece and scan it with an iPhone and an Android phone where the object will be used.

Some people use "3D QR code" for a flat image styled to look three-dimensional. Here it means a code printed as an object.

Start from an SVG file

An SVG keeps each module as a shape, so a CAD tool can extrude it at any size with sharp edges. A PNG is a grid of pixels, and you would have to trace it first.

In CodeQR, every plan, Free included, can download a code as SVG: open the code's menu, choose Download, then Export and SVG. Our guide to downloading and printing a QR code shows each option. The free QR code generator downloads a PNG without an account; its SVG download needs a free account.

Before you build the model, check three things in a CodeQR SVG:

  • The background is a separate square behind the modules. Delete it, or use it as the base, but don't extrude it with the modules.
  • The file ends at the edge of the code, with no blank margin around it. You add that margin in the model.
  • A logo is a separate picture that the file links to, not part of the module shape, placed over a gap in the modules. Free codes always carry the CodeQR logo; on a paid plan you can export a code without a logo and get a full pattern to extrude. See logo, colors and frame.

Raise the dark modules and keep a quiet zone

Extrude the dark modules and leave the base flat. The base becomes the light background, and the raised modules carry the dark color.

DENSO WAVE says "QR Code requires a four-module wide margin at all sides of a symbol." That blank border, the quiet zone, tells the phone where the code starts. On a printed object it is part of the base: make the plate wider than the code by at least four modules on every side, and keep text, raised edges, screw holes and mounting tabs out of it.

How far to raise the modules depends on your printer, so settle the height on a small test piece before you print the final part.

Print two colors: a filament change or two materials

A code printed in one color has no contrast between the modules and the background, only the shadows of the relief. Print it in two colors.

One way is a filament change at a layer: print the base in a light filament and switch to a dark one where the modules begin. PrusaSlicer's knowledge base, for example, says "PrusaSlicer lets you schedule a filament change at a certain layer," and that the pause "will be inserted before the selected layer is printed." Pick the first layer of the raised modules.

If your printer can print two filaments in one job, you can instead assign the modules to the dark filament and the base to the light one.

Keep the modules dark and the base light. CodeQR's print guide warns that "light-on-dark codes are read inconsistently by phones," and the CodeQR editor flags a light code on a dark background in its scannability rating. Shiny filament can cause trouble too: the same guide notes that glossy paper and glass reflect, so scan your finish under the light where the object will sit.

Keep the modules big enough to print

Every module has to come out as a clean square. Printed at the same size, a code with fewer modules has bigger ones. DENSO WAVE explains that "as the amount of data increases, more modules are required to comprise QR Code," from "Version 1 (21 × 21 modules) up to Version 40 (177 × 177 modules)."

We ran two addresses through the QR code encoder CodeQR uses, at error correction level H. A 33-character short link needs a 33 × 33 grid. A 143-character product page address with UTM tags needs 65 × 65. At the same printed width, each module of the short-link code is about twice as wide.

A dynamic code holds a short link however long the destination is, which keeps the grid small. If the modules still come out ragged, make the piece bigger. We don't give a minimum size, because it depends on your printer, nozzle and filament; a test piece settles it. For paper, our guide to QR code size for print has the sizes by scanning distance.

Error correction and wear

DENSO WAVE says "QR Code has error correction capability to restore data if the code is dirty or damaged." There are four levels, L, M, Q and H. "Level Q or H may be selected for factory environment where QR Code get dirty," and "Typically, Level M (15%) is most frequently selected."

A printed object gets handled and collects dust, so a higher level is worth it. The cost is a denser pattern: in our test, the long address grew from 49 × 49 at level M to 65 × 65 at level H.

A code downloaded from the CodeQR dashboard uses level H, the highest. The image the CodeQR API returns uses level M unless the request sets another level. A logo uses part of that margin, because the modules under it are removed, which is one more reason to export a code without a logo when your plan allows it.

Test the printed part before a batch

  1. Print one piece with the final filament and settings.
  2. Scan it with an iPhone and an Android phone from the distance people will scan it, in the light where it will be.
  3. Check that it opens the right page. For a dynamic CodeQR code, check that the scan appears on the code's counter.
  4. Print the rest only after both phones read it without hesitating.

If a phone struggles, raise the contrast, make the piece bigger or shorten what the code holds.

Why a dynamic code matters more on a printed object

A static code holds its destination in the pattern. If the page moves, every copy points to the old address, and CodeQR records no scans for it. Reprinting a flyer costs little; remaking a sign or a product display costs printer hours and filament.

A dynamic code holds a short link, so you can change the destination after printing and the object keeps working. Every scan is counted, so you can see whether anyone uses it. Dynamic codes are on every CodeQR plan and count toward the plan's monthly QR code limit; see pricing. Our comparison of static vs dynamic QR codes goes into more detail.

3D printed QR code questions

Download the code as an SVG, import it into a CAD tool, raise the dark modules above a light base with a four-module border, and print the modules in a dark color with a filament change or a second material. Scan a test piece with two phones before you print more.

A QR code you can print once

Create a dynamic QR code, download it as SVG for your model, and change where it leads after the object is printed.