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.
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.
AutoCAD R12/R14 DXF export for LightBurn, Fusion 360 & CAD.
Convert engineering DXF drawings back to clean web-ready SVG vectors.
Convert vector boundaries and polygons to GeoJSON & KML for QGIS and web mapping.
Generate clean GRBL G-code toolpaths directly from SVG files for laser & routers.
Raster photo engraving with M4 dynamic power & Floyd-Steinberg dithering.
Interactive 2D/3D cut simulation, time estimate, and workpiece bounds check.
CAM toolpath generation for Mach3, LinuxCNC, and multi-pass CNC routing.
Calculate optimal spindle RPM, feed speed, and chip load per tooth.
How to Use
Upload your photo or graphic
Upload any JPG, PNG, WebP, or BMP image from your device.
Choose engraving algorithm
Select Grayscale (M4 power modulation) for smooth shading, or Floyd-Steinberg Dithering for high-contrast dot engraving on wood.
Configure dimensions & speeds
Set target width and height in mm, scan line step (0.1mm - 0.2mm), feed rate, and maximum laser power (S1000).
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?▼
What is M4 dynamic laser mode in GRBL?▼
Does this run client-side?▼
Which laser machines are compatible?▼
Related Tools
Explore other tools in this category.
SVG to G-Code Converter
Convert SVG files to G-Code for CNC machines, laser engravers, and pen plotters. Configure feed rates, cutting depth, and spindle speed.
SVG to G-Code Laser Engraver Converter
Convert SVG to G-Code for laser engravers and laser cutters. Supports GRBL, Smoothieware, and Marlin laser mode. Configure power and speed.
SVG Closed Path Checker
Check whether all paths in an SVG file are closed. Closed paths are required for laser cutting and CNC routing to produce complete cuts.
SVG to DXF Converter
Convert SVG files to DXF format instantly in your browser. No upload required — your files stay private.
CNC Feed Rate Calculator
Calculate optimal CNC feed rates and spindle speeds for any material and tool combination. Uses chip load formulas for wood, aluminium, acrylic, and more.
SVG to DXF (MM Scale Preserved)
Convert SVG to DXF with millimetre scale preserved. Ideal for precision manufacturing where exact real-world dimensions matter.