Laser Engraver File Types: Vector, Raster and Machine Code Guide
A practical guide to laser engraver file types: understand vector paths for cutting, raster formats for photo engraving, and machine control files for your projects.

On this page
Laser engraver file types fall into distinct design categories: vector formats like SVG and DXF for cutting and graphic fills, and raster formats like PNG and JPG for photo engraving and shading. Laser control software converts these graphics into machine control code, such as G-code, directing laser travel speed and beam power. Understanding each format ensures clean cuts, accurate dimensions, and crisp engraving. The guide below breaks down each file category step by step.
As an Amazon Associate I earn from qualifying purchases. LaserEngraveHQ earns a commission from purchases made through these links, at no extra cost to you. Read our affiliate disclosure.
File compatibility depends on your control software and controller firmware. Most desktop machines read standard vector paths and bitmaps through LightBurn or LaserGRBL, while proprietary models may require vendor-specific software to generate motion toolpaths.
Step 1: Understand vector file formats for cutting, scoring and fill engraving
Vector files are the foundation of laser cutting, line scoring, and sharp graphic engraving. Defined by mathematical formulas connecting points, lines, and curves, vector shapes scale to any dimension without pixelation or jagged edges.
A laser executes vector artwork by following path outlines directly to cut or score, or scanning closed boundaries to fill solid shapes. Common vector formats include:
- SVG (Scalable Vector Graphics): The universal standard for laser software. SVG files store geometry and layer colors cleanly, though scale units should be confirmed when moving between vector editors.
- DXF (Drawing Exchange Format): The standard for CAD software, ideal for mechanical templates and precise dimensional cutouts.
- AI and PDF: Common graphic exchange formats. When exporting AI or PDF files, convert typography to outlines so missing fonts do not alter your geometry.
Our guide to laser engraving software for beginners explains how to import and assign vector paths step by step.
Step 2: Understand raster file formats for photo engraving and bitmap shading
Raster files, or bitmap images, are composed of a fixed grid of pixels. When engraving a raster file, the laser head scans back and forth in rapid horizontal lines, pulsing the beam on and off to vaporize dots on the material surface.
Raster files reproduce subtle tonal gradients, making them the standard choice for continuous-tone photographs and portrait work. Common raster formats include:
- PNG (Portable Network Graphics): The preferred format for graphics and logos. PNG supports lossless compression and transparent backgrounds, preventing unwanted rectangular border burns around your design.
- JPG or JPEG: Common for photographs. JPG uses lossy compression, so export at maximum quality to avoid compression artifacts on the engraved workpiece.
- BMP (Bitmap): An uncompressed format used by entry-level software for direct pixel mapping.
For software options, see our laser photo software comparison, and review blanks in our guide to the best wood for laser engraving photos.
Step 3: Understand machine control files and G-code
Design files cannot communicate directly with motor drivers or laser circuitry. Control software translates visual geometry into machine control code, commonly known as G-code (.gc, .gcode, or .nc).
A G-code file contains sequential instructions directing the machine during an active run:
- Coordinate positioning: Moves the carriage along X and Y axes, plus rotary movements on equipped machines.
- Beam control: Dictates when to fire, power levels, and pulse behavior.
- Feed rate: Sets the head travel speed for each path.
Standard GRBL engravers read G-code over USB or memory cards for offline runs. Proprietary machines process toolpaths through internal drivers using the same coordinate logic.
Step 4: Match design formats to your laser control software
A smooth laser workflow relies on compatible design and control software:
- Design software: Vector editors like Inkscape or Illustrator create shapes, text layouts, and patterns. Keep master files in vector format.
- Laser control software: Programs such as LightBurn or LaserGRBL import artwork, position parts on the bed, set operational layers, and output machine toolpaths.
LightBurn accepts SVG, DXF, AI, PDF, PNG, JPG, and BMP, saving native project files (.lbrn or .lbrn2) with speeds, power levels, and layer sequences. LaserGRBL imports raster graphics and vector outlines for streaming G-code to GRBL boards.
To evaluate software across machines, see how to choose a laser engraver. If shopping for a first setup, our best laser engraver for beginners guide reviews starter machines.
Step 5: Organize color layers and frame dimensions
Multi-operation projects combine engraving, scoring, and cutting on one piece. Organizing files properly prevents ruined blanks:
- Assign distinct stroke colors: Laser software uses vector colors to separate operations: map black for solid engraving, blue for surface scoring, and red for through-cutting.
- Establish operation order: Run surface fills first while the material remains stable, follow with vector scoring, and execute outer perimeter cuts last so the part does not shift.
- Convert text to curves: Never leave live typography in an export file. Converting text to curves ensures lettering renders correctly on any computer without font errors.
- Observe bed boundaries: Verify file dimensions match your physical bed. For example, the Longer Ray5 publishes a stated work area of 400 × 365 mm, meaning design bounds and margins must fit within that model’s stated dimensions to prevent travel errors.
Step 6: Maintain workshop safety and material checks
Executing files safely in your workshop protects your health and equipment:
- Exhaust ventilation: Vaporizing materials creates smoke and chemical fumes. Vent exhaust outdoors or route through a filtration system. See our filter picks in the best fume extractor for laser engraver guide.
- Fire prevention: Keep a fire extinguisher within reach and never leave a running machine unattended.
- Optical protection: Focused beams cause eye injury through direct or scattered reflections. Wear glasses matched to your machine’s wavelength and optical density. See our laser safety glasses guide.
- Prohibited materials warning: Never cut or engrave PVC, vinyl, polyvinyl chloride faux leather, polycarbonate, or ABS. Vinyl and PVC release corrosive chlorine gas and toxic hydrochloric acid fumes that ruin machine components and create severe respiratory hazards. Follow OSHA guidelines on unfamiliar blanks.
Common mistakes to avoid
- Leaving live typography in vector files instead of converting text into vector curves or outlines.
- Submitting low-resolution raster images for vector cutting jobs and expecting the laser software to follow crisp lines automatically.
- Placing cut lines, scoring marks, and engraving fills onto a single unorganized layer without separate color assignments.
- Overlooking export scale units, causing designs exported in millimeters to open at incorrect dimensions in inches.
- Skipping boundary framing on scrap material, resulting in engravings running off the edge of your blank.
- Attempting to cut hazardous vinyl or PVC blanks that release corrosive chlorine fumes.
Laser engraver file types: the short version
- Use vector formats like SVG or DXF for outline cuts, fine surface scores and sharp graphic fills.
- Use raster formats like PNG or JPG for photographic portraits and continuous-tone shading.
- Convert all typography and font elements into vector curves before exporting your design.
- Assign unique layer colors to separate engraving fills, line scoring, and through-cutting operations.
- Verify physical scale and frame job boundaries on scrap material before running valuable blanks.
- Ensure dedicated exhaust ventilation and appropriate optical safety gear are active for every run.
Once you standardize your file preparation workflow, importing artwork and executing repeatable jobs becomes second nature.
FAQ: lasers and CNC
What is the most versatile vector file format for laser engraving?
SVG is the most versatile vector format for desktop laser engraving. It preserves geometry, dimensional scaling, and layer colors across platforms, importing cleanly into LightBurn and LaserGRBL.
Can a laser machine cut directly from a PNG or JPG file?
A laser cannot cut a clean line directly from a raster image without vector conversion. Raster files control surface dot engraving; cutting requires tracing the bitmap into vector cut paths.
Why do vector fonts need to be converted to outlines or curves?
Leaving text as live typography risks font substitution if the host computer lacks that typeface. Converting text to curves creates permanent geometric outlines that open identically everywhere.
What is the difference between an SVG file and a G-code file?
An SVG file is a visual design document describing shapes and colors. A G-code file contains raw numerical motion commands directing motor coordinates and beam power during a job.
Does image resolution matter for raster laser engraving?
Resolution affects clarity, but excessive resolution does not improve results. If image resolution exceeds beam spot size and line interval settings, extra detail is lost in burn overlap.
What file format should I use for CAD mechanical parts?
DXF is the preferred format for engineering drawings and CAD parts, maintaining exact dimensional tolerances exported directly from drafting software.
Related: the laser accessories guide, laser engraver hub and laser software. Also see our laser engraving software for beginners and best laser engraver for beginners.



