How to Convert JPG to G-code Free, Step by Step
Need a G-code from a JPG? Here is how to convert JPG to G-code, what usually goes wrong, and how to get a file you can use first time.
Why convert JPG to G-code?
A G-code is motion commands a controller runs directly: move here, at this speed, with the tool on. No interpretation left. The machine does exactly what the file says.
- Laser cutting and engraving.
- CNC routing.
- Sending straight to the controller.
The catch is the JPG itself. Lossy and no transparency. Flat colour and sharp edges pick up halos, which is why logos look dirty as JPG. That is why the conversion matters as much as the file you start with.
Where most converters let you down
Plenty of tools will happily take your JPG and give you something back. The trouble is what they give you: many write coordinates in pixels with no units, upside down, with outlines that do not close. You only find out later, when the file will not cut, print, import or open the way you expected.
What you actually want is machine geometry in real millimetres or inches, the right way up, with closed contours. That is the standard this JPG to G-code converter is built to.
How to convert JPG to G-code in 3 steps
- Open the JPG to G-code converter and drop in your JPG.
- Check the result in the preview and adjust the settings if you need to.
- Download the G-code.
Why Veconvert is the better JPG to G-code converter
- Real units in the file. G-code output carries millimetres or inches, so it imports at the size you set.
- The right way up. Image coordinates run downwards; machine coordinates run upwards. The conversion flips them so the part is not mirrored.
- Closed contours. Outlines join up, and anything that does not is flagged before you download.
- Preview the machine file itself. The download is parsed back and drawn, so what you see is what the machine will get.
- Nothing uploaded. Drawings for clients stay on your machine.
What happens to your file
Your JPG is first traced in the browser into clean outlines. For a machine the trace is set up for cutting rather than colour: one outline where a cutter should go, with photos turned into line art instead of blotchy shapes.
The conversion runs in your browser, so the file is never uploaded: client work, statements and unreleased designs stay on your computer.
Getting the best G-code: mistakes to avoid
- JPG compression leaves blotches round sharp edges; if you can get the original PNG or a higher-quality JPG, start from that.
- High-contrast JPG artwork gives the cleanest toolpaths: dark shapes on a light background.
- Set the finished width in the settings before downloading, then check the size the page reports.
- For a laser, decide whether each shape should be cut or engraved in your laser software; the file gives you clean outlines for either.
- Run a test cut on scrap before cutting good material, as you would with any new file.
What it costs
Yes, converting is free: the conversion and checking the result cost nothing, and the work runs in your browser, so nothing is uploaded. The side-by-side preview on the converter pages comes with a free account. Saving the finished file is paid: $3.49 for one file ($3.99 for a technical file such as DXF, G-code, STL or embroidery) with no account needed, or included in a plan from $6.99 a month.
You see the result before you spend anything, so you only pay for a file you are happy with.
Frequently asked questions
How do I convert JPG to G-code?
Drop your JPG file on this page, check the preview, and press Download. The G-code is made in a few seconds, with no sign-up.
Is my JPG file uploaded anywhere?
No. The jpg to g-code conversion runs in your browser, on your own device. The file never leaves it.
What units does the G-code use?
Millimetres or inches, whichever you choose. The size you set is the size the machine cuts.
Is it free?
Yes, converting is free: the conversion and checking the result cost nothing, and the work runs in your browser, so nothing is uploaded. The side-by-side preview on the converter pages comes with a free account. Saving the finished file is paid: $3.49 for one file ($3.99 for a technical file such as DXF, G-code, STL or embroidery) with no account needed, or included in a plan from $6.99 a month.