FreeQRCode3D עברית

Two-color QR codes without an AMS

Updated October 12, 2026 · 6 min read

You don't need a multi-material system to print a sharp black-on-white QR code. A single filament swap at the right layer is enough, and every popular slicer can do it.

Why a layer change works so well for QR codes

The files from our generator are built in two parts: a flat base and the code raised on top of it. Because the raised squares start at one exact height, everything below that height can be printed in the base color and everything above it in the code color. The printer only needs to stop once, wait for you to swap the filament, and continue. There is no purge tower, no wasted filament and no risk of the two colors mixing inside the code.

Step 1: find the first layer of the code

Slice the file as usual and open the preview. Drag the vertical layer slider up from the bottom until the first layer where the squares of the code appear on their own, above the flat top of the base. That is the layer where the color must change.

You can also calculate it: with a 0.2 mm first layer and 0.2 mm layers, a base that is 3 mm thick ends at layer 15, so the code starts at layer 16. Always confirm in the preview, because some slicers use a different first-layer height.

Step 2: add the pause or color change

Bambu Studio and OrcaSlicer

  1. Slice the plate and go to the Preview tab.
  2. Move the vertical slider to the first layer of the code.
  3. Right-click the “+” next to the slider handle and choose Add pause (on printers without AMS) or Change filament if your printer supports it.
  4. Slice again and send the print.

PrusaSlicer

  1. Slice and open the preview.
  2. Move the vertical slider to the first layer of the code.
  3. Click the orange “+” icon next to the slider. PrusaSlicer adds a color change (M600) and shows the new color in the preview.

Prusa printers then guide you through unloading and loading on the screen.

Cura

  1. Open Extensions → Post Processing → Modify G-Code.
  2. Add the script Filament Change (or Pause at height if your firmware doesn't support M600).
  3. Enter the layer number of the first code layer, as shown in the preview, and slice again.
If your printer ignores M600 (common on older firmware), use the plain pause option instead. The printer parks the head, you swap filament by hand and press resume.

Step 3: the swap itself

Choosing the two colors

Phones read QR codes by contrast, so pick a dark code on a light base: black on white, navy on cream or dark brown on beige. Avoid silk and glossy filaments for the code itself. Their shine reflects light into the camera and can hide whole squares. Matte or regular PLA gives the most reliable result.

Want the base and the code in reverse?

A light code on a dark base looks elegant, but some older scanning apps can't read inverted codes. If you go this way, test with at least two different phones before printing a whole batch.

Where to click in the common slicers

Purge the old colour before you resume

After you swap filaments, the nozzle still holds a little of the first colour. If you resume straight away, the first lines of the code come out in a mix of the two. Push new filament through by hand until the colour coming out of the nozzle is clean, wipe the tip with tweezers and only then press resume. Do this gently so the nozzle does not drag across the printed base.

Keep the pause short

Some printers cool the hotend or the bed when a pause lasts too long, and a cold bed can make the base lift at the corners. Have the new filament ready before the print reaches the change, and keep the swap to a minute or two. Do not touch the print while the nozzle is hot.

Use the same type of plastic for both colours

Printing PLA on PETG, or the reverse, gives a weaker bond between the layers because the two plastics need different temperatures. Choose two colours of the same material family and the code will stay attached to the base even after months of use.

Check the preview before you print

In the slicer preview, move the slider through the change: the layers below it should be the first colour and the layers above it the second. If the code starts one layer too low or too high, the squares will be half one colour and half the other. Fix the height before you start, because a failed print wastes both time and filament.

Related guides

Create your QR code file for free