Laser Material Test Generator

Make a power-and-speed test card for any material, then download ready-to-run GRBL G-code or a printable SVG card.

Columns change power, rows change speed

%
%
Speed
Speed unit
mm/min
mm/min

The defaults are a wide sweep, not a recommendation. Start from your manufacturer's suggested settings if you have them.

Pattern
mm
mm
mm
mm
Advanced settings (GRBL)

Test card results

5 × 5 grid · 62 × 62 mm · ≈ 19.2 min laser-on

(travel and acceleration not included)

Light = runs firstHover or focus a square

For GRBL 1.1 controllers with laser mode on ($32=1), sent with a G-code sender (for example LaserGRBL). If your laser uses a Ruida/Trocen-type controller or a cloud app, it cannot run this file — use the SVG card with your software's own test tool instead.

Frame the job first. Never leave the laser running. Read our laser safety basics.

Which cell looked best?

20 % at 600 mm/min (S200)

Results are starting points, not guarantees. Lasers can start fires and damage eyes — follow your machine’s safety instructions and never leave a running laser.

Quick answer

A material test card burns a grid of small squares, each at a different power (columns) and speed (rows), so you can see which combination gives the result you want on that exact material. This generator writes the G-code for GRBL laser controllers, orders the squares from the gentlest to the strongest so you can stop early, and gives you an SVG card to record the winner.

How to use this generator

  1. Put the material on the bed and focus the laser as you normally do.
  2. Choose the power range (columns) and speed range (rows). Keep the cells small to save material.
  3. Download the G-code, open it in your G-code sender and use its frame/preview function to check the area.
  4. Move the laser head to the bottom-left corner of where the grid should go and start the job. Stay with the machine.
  5. Pick the best-looking square and enter its row and column below the preview to get its exact settings.

Worked example

With the default settings (5 × 5 grid, power 20–100 %, speed 600–3000 mm/min, $30 = 1000):

How it’s calculated

Frequently Asked Questions (FAQ)

What is a laser material test card?

A grid of small squares burned at different power and speed settings on the material you plan to use. It shows, on your machine, which setting gives the depth and color you want.

What settings should I use for wood, acrylic, leather or slate?

There is no setting that works on every machine: the same numbers behave differently with different lasers, lenses, focus and materials. Use your manufacturer's suggested settings as a starting range, run a test card, and keep the winner.

Why does the test start with the weakest square?

So you can stop the job early if a gentle square already cuts through or scorches, instead of finding out on the strongest square.

Will this G-code work with my laser?

It is written for GRBL 1.1 controllers with laser mode enabled ($32=1). Many desktop diode lasers use GRBL-based controllers; check your manual. It does not work on controllers that need their own file format.

What is the difference between M4 and M3?

In GRBL laser mode, M4 changes power with the machine's actual speed (less power while accelerating), which avoids dark spots at corners; M3 keeps power constant. M4 is the default here.

How do I find my $30 value?

Send $$ in your G-code sender and read the $30= line. If the value is wrong, every power level in the test will be wrong.

I use LightBurn — do I need this?

LightBurn has its own Material Test tool. You can still use the SVG card here to print or keep a record of your results, and the converter to move a known setting to another machine.

Sources

Last reviewed: 2026-10-26

Related tools