GAllGcode

PDF to G-code

Convert PDF content to G-code. Runs entirely in your browser — your files never leave your device.

PDF file

Drop file here or click to browse

PDF — max 20 MB

Output size

Result size
—
Raster
—
Est. run time
—

Height is derived from the image aspect ratio.

Machine & orientation

Engraving settings

Advanced options

G-code dialect

Image adjustments

Simplify and minimum outline apply to vector mode. Set simplify to 0 for maximum contour detail.

Preview

Toolpath simulation
Source image
Engraving result — black is burnt

G-code

No output yet.
How to use it

About PDF to G-code: After uploading, choose the page to engrave in the page picker. Vector PDF content is rasterized at the chosen resolution.

  1. Prepare your artwork. Use a single-page PDF with simple dark artwork on white. Convert text to outlines in your design app if it renders incorrectly. Accepted inputs: PDF.
  2. Upload the file. Click the upload area to browse, or drag and drop a file onto it. Files up to 20 MB are supported. PDF files add a page picker so you can choose which page to engrave. The file panel shows the decoded pixel dimensions.
  3. Set the physical size and position. Width (mm)is the most important setting: it scales the artwork to the size you want on the material.Maximum pixelscaps the engraving detail,Originplaces the result at a corner or the centre of your work area, and the work-area check warns you if it will not fit.
  4. Tune the engraving. Thresholddecides how dark a pixel must be before it is burned. UseInvertfor light artwork on a dark background. Dithering and tone modes turn greys into dots or varying laser power. Pick the right machine, then set laser power, feedrate, travel speed and the number of passes. The presets are only starting points — fine-tune for your material.
  5. Check the preview.Compare the source image with the engraving result below. Click either canvas to zoom in. The statistics panel reports output size, raster resolution and estimated run time. Use the toolpath view to confirm the head moves only where you expect before cutting real material.
  6. Export and share.G-code is generated automatically when you change a setting, or you can pressConvert to G-code. Then useDownload G-code, Copy to clipboard, orDownload bundlefor the G-code, SVG, DXF, proof image and settings together.Sharecopies a link that restores all of these settings for the next user.
  7. Work safely.Test on a scrap piece at reduced power first. Use eye protection and adequate ventilation, keep the material flat, and never leave the machine running unattended. Laser and plasma tools can produce fumes and fire hazards.

Please note: One page at a time; PDF artwork is rasterized.

Frequently asked questions

Is PDF to G-code free to use?
Yes. PDF to G-code is free, needs no account and runs entirely in your browser.
Are my files uploaded when I use PDF to G-code?
No. PDF to G-code processes files locally in your browser; nothing is uploaded to a server.
What can I do with the output from PDF to G-code?
Download the G-code result and check it before using it with your printer, router or laser.

Related tools

All tools