Image to G-Code Converter

Convert JPG, PNG, and WebP images to laser engraving G-code. Supports grayscale M4 laser power modulation and Floyd-Steinberg dithering for GRBL, xTool, Ortur, and CNC routers.

Digital Fabrication Pipeline

Maker & CNC Workflow Suite

Seamlessly move your design from vector artwork to machine-ready G-code. Use our connected suite of free, private fabrication tools.

All tools 100% browser-based & private
💡 Pro-Tip for Makers: Always inspect toolpaths in your controller simulator (UGS, LightBurn, Candle) before starting your laser or CNC spindle.View all 15+ CAD & CNC tools

How to Use

1

Upload your photo or graphic

Upload any JPG, PNG, WebP, or BMP image from your device.

2

Choose engraving algorithm

Select Grayscale (M4 power modulation) for smooth shading, or Floyd-Steinberg Dithering for high-contrast dot engraving on wood.

3

Configure dimensions & speeds

Set target width and height in mm, scan line step (0.1mm - 0.2mm), feed rate, and maximum laser power (S1000).

4

Download ready-to-run G-Code

Download the generated .gcode file and load it into LaserGRBL, LightBurn, or Candle.

How Image to G-Code Raster Engraving Works

Unlike vector cutting (which traces lines and arcs), raster image engraving scans back and forth line-by-line across your workpiece, rapidly pulsing or modulating the laser beam to reproduce photos, illustrations, and shaded artwork.

Grayscale Power Modulation vs Floyd-Steinberg Dithering

1. Grayscale Variable Power (M4): Each pixel's luminosity (0 to 255) is mapped proportionally to the laser spindle power value (e.g. S0 for pure white up to S1000 for pure black). This creates true photographic shading on materials that respond to heat gradients.

2. Floyd-Steinberg Dithering: Error-diffusion dithering distributes pixel quantization errors to neighboring pixels, forming a fine dot matrix. Because the laser only fires at full power or zero power, dithering eliminates scorching and produces the crispest details on materials like plywood and slate.

Recommended Settings by Material

  • Basswood & Plywood: 0.15 mm line step, 2000 mm/min feed rate, Floyd-Steinberg dithering.
  • Slate & Granite: 0.10 mm line step, 1500 mm/min feed rate, inverted black/white dithering.
  • Leather: 0.20 mm line step, 2500 mm/min feed rate, M4 grayscale modulation.
  • Acrylic (Painted Backing): 0.10 mm line step, 3000 mm/min feed rate, M4 dynamic power.

Real-World Examples & Use Cases

Wood Photo Engraving

Turn portrait photos into dithered laser burns on birch plywood, bamboo, or basswood cutting boards.

Leather Logo Stamping & Burning

Engrave dark company logos and emblems onto wallets, belts, and leather patches.

Slate Coaster Etching

Burn sharp, high-contrast white graphics onto black slate stone coasters.

Anodized Aluminum Marking

Vaporize anodized coatings to reveal raw silver aluminum underneath with high-speed raster scanning.

Frequently Asked Questions

What is the difference between Grayscale and Dithered engraving?▼
Grayscale uses variable laser power (M4 S0 to S1000) to create light and dark burn tones. Dithering uses microscopic dots at 100% power, which works best on materials like birch plywood, slate, and painted metals that do not produce reliable grayscale gradients.
What is M4 dynamic laser mode in GRBL?▼
M4 dynamically scales the laser power with the machine's acceleration and deceleration, preventing over-burned, charred edges when the laser changes direction at the start and end of scan lines.
Does this run client-side?▼
Yes! All pixel processing, dithering algorithms, and G-code generation run 100% inside your browser. Your images are never uploaded to any cloud server.
Which laser machines are compatible?▼
Compatible with all GRBL-based diode and CO2 lasers (xTool, Ortur, Atomstack, Sculpfun, Two Trees, NEJE) and CNC routers running GRBL, Marlin, or Mach3.

Related Tools

Explore other tools in this category.

Looking for something else?