Tiny Online Tools logoTiny Online ToolssearchSearch tools…grid_viewAll Tools
Homechevron_right3D Printing Toolschevron_rightG-code Thumbnail ExtractorG-code Thumbnail Extractor

G-code Thumbnail Extractor

Pull the preview images a slicer embedded in a G-code file back out, view them, and save them as PNG or JPEG.

upload_file

Click to browse or drag & drop files here

Select a G-code file — .gcode, .gco, .g or .nc

Accepted: .gcode,.gco,.g,.nc,.ngc,.bgcode

The file is read in your browser and the images are decoded there too. Nothing is uploaded.
What this tool handlescheck_circlePrusaSlicer, SuperSlicer, OrcaSlicer, Bambu StudioThe `; thumbnail begin` block and its `_QOI`, `_JPG` and `_PNG` variants, including Duet files that close a QOI block with the plain end marker.infoCura — only with the thumbnail scriptCura embeds no preview in plain .gcode. Files that went through the "Create Thumbnail" post-processing script parse here; Cura's own preview lives inside the .ufp package as a separate image part.blockNot supportedPrusaSlicer's binary .bgcode container is detected and named rather than decoded, and the vendor binary BMP headers some FlashForge and Weedo machines prepend are not read.

Similar Tools

G-code Viewer

G-code Viewer

Preview a sliced G-code file in 3D: layer by layer, coloured by feature, move type, speed or extruder.

G-code Analyzer

G-code Analyzer

Measure a sliced G-code file: filament, cost, print time, layer heights, features, speeds, temperatures and every header setting.

G-code Editor

G-code Editor

Change temperatures, speeds, fan settings and custom commands in a sliced G-code file, with a preview of every affected line.

G-code Flavor Converter

G-code Flavor Converter

Convert G-code between Marlin, RepRapFirmware, Klipper, Smoothieware and Repetier where the mapping is exact — and list everything that is not.

PDF to JPG

PDF to JPG

Convert PDF pages into high-quality JPG images.

Demotivational Poster Maker

Demotivational Poster Maker

Turn any image into a classic demotivational poster with black border, white title, and italic subtitle. No upload, fully private.

GIF Resizer

GIF Resizer

Resize animated GIFs in your browser while preserving every frame's animation and timing. Lock aspect ratio, adjust colors, fully private.

apps

More Tools

Browse our full collection of free online tools.

Where the preview lives

When your printer shows a little picture of the model next to the file name, that picture is inside the .gcode file itself, written as a run of base64 comment lines:

; thumbnail begin 220x124 12345
; iVBORw0KGgoAAAANSUhEUg…
; thumbnail end

This tool finds those blocks, decodes them, shows you every one it found, and lets you save them individually or all together as a ZIP.

The details it reports

For each block you get the kind the header declared, the format detected from the file's own magic bytes, the pixel size, the base64 character count next to the number the slicer declared, the decoded byte count, and the source line. That last pair matters: the number in a ; thumbnail begin header is the base64 character count, not the decoded size, which is why some extractors report a size mismatch on perfectly good files. This one does not.

Formats

PNG and JPEG blocks are handed back byte-for-byte as the slicer wrote them. QOI — a compact format that newer PrusaSlicer and RepRapFirmware builds use because it decodes fast on a printer's microcontroller — is decoded here and re-encoded as PNG, because no browser can display it natively.

What is handled

PrusaSlicer, SuperSlicer, OrcaSlicer and Bambu Studio blocks, including the _QOI, _JPG and _PNG variants, and Duet files that open a QOI block and close it with a plain ; thumbnail end.

Ultimaker Cura is handled only when the "Create Thumbnail" post-processing script was used. Cura's own preview lives in a .ufp package, which is a ZIP with the image as a separate part — not in the .gcode.

What is not

PrusaSlicer's binary .bgcode container is recognised and named rather than mangled: re-export as plain ASCII G-code to read its preview. The vendor-specific binary BMP headers some FlashForge and Weedo machines prepend are not read either.

Everything runs in your browser. The file never leaves your computer, and neither do the images.