Free Image to G-Code Converter: Convert Photos to Laser-Ready CNC Paths
The Free Image to G-Code Converter is a browser-based engineering tool that transforms digital images into CNC machine instructions (G-Code). By utilizing Atkinson Dithering and a 1-bit rasterization engine, it converts your photos into a series of “burn” and “travel” commands. The tool generates highly efficient zig-zag pathing optimized for GRBL-based laser engravers and CNC machines, allowing for high-detail engravings directly from your browser.
🔥 Image to G-Code Converter
Convert any image into a ready-to-burn GRBL G-Code file for laser engravers and CNC machines.
How to Use the Image to G-Code Converter
Creating a professional G-Code file for your laser engraver is a streamlined process. Since the tool runs locally via JavaScript, your design files remain 100% private and never leave your computer.
Step 1: Upload Your Artwork
Locate the “Upload Artwork” section. Click the dashed box to select a file or simply drag and drop a PNG, JPEG, or WebP image. For the best results, use high-contrast images or logos. The tool will automatically display a Live 1-Bit Dither Preview, showing you exactly where the laser will fire.
Step 2: Set Physical Dimensions and Resolution
In the “Physical Dimensions” section, enter your desired Target Width in millimeters (mm). The height is automatically calculated to prevent distortion. Then, select your Resolution:
- 5 lines/mm: Best for fast drafts and testing.
- 10 lines/mm: The standard for high-quality, crisp engravings.
- 15 lines/mm: Used for extreme detail on premium materials.
Step 3: Configure Laser (GRBL) Settings
Enter your machine-specific parameters:
- Burn Speed: How fast the laser moves while firing (mm/min).
- Travel Speed: How fast the head moves between burn segments.
- Laser Max Power: The “S-Value” your machine uses for 100% power (usually 255 or 1000).
Step 4: Generate and Download
Click “Generate & Download .gcode”. A progress bar will appear as the tool compiles thousands of lines of code. Once finished, a .gcode file will download to your device, ready to be loaded into your favorite sender software like LaserGRBL or LightBurn.
Frequently Asked Questions
Q: What is Atkinson Dithering and why is it used for G-Code?
A: Lasers often operate in an “on or off” state for simple engravings. Atkinson Dithering is a mathematical algorithm that represents gradients using patterns of dots. This allows you to engrave photos with shading and depth on materials like wood or leather that don’t naturally support gray levels.
Q: Is the output G-Code compatible with my machine?
A: The converter produces standard GRBL-compliant G-Code. It uses G0 for rapid travel, G1 for linear moves, and M4/M5 commands for dynamic laser power control. This format is compatible with the vast majority of hobbyist and professional diode and CO2 lasers.
Q: Why does the converter use zig-zag (bidirectional) pathing?
A: Efficiency is key in CNC work. Bidirectional pathing allows the laser to engrave while moving both left-to-right and right-to-left. This cuts your total engraving time nearly in half compared to “unidirectional” pathing, where the machine must reset to the start of every line.
Q: Does this tool work for 3D printing?
A: No. This tool is specifically designed for 2D raster engraving and CNC plotting. It does not generate the layers or extrusion commands necessary for FDM or resin 3D printing. It is strictly for surface marking and cutting.
Q: How do I choose the correct S-Value for max power?
A: This depends on your machine’s firmware. Check your controller settings (usually $30 in GRBL). If your machine expects a value between 0-255, enter 255. If it uses the more modern standard, enter 1000. Using the wrong value will result in burns that are either too faint or too aggressive.
