Rasterless

Turning a JPG into a DXF your machine can actually cut

Two colours, one boundary: a DXF outline with JPEG's compression halo absorbed, not traced.

Convert and preview without an account. Downloading is free too — it just needs a Google sign-in. No card, no subscription.

Examples
SOURCE VECTOR Left: a raster sheet of drawn cut lines. Right: the same outlines traced into closed vector contours. — source image
Left: a raster sheet of drawn cut lines. Right: the same outlines traced into closed vector contours. — vector result

01 · 3 colours · 233 nodes

How it works

  1. Upload the JPG or JPEG — one image per conversion, up to 25 MB and 40 megapixels.
  2. Set Colours to 2 so the tracer looks for a single boundary instead of the tonal bands JPEG leaves behind.
  3. Tick DXF as the output format, and type the finished width and height in mm if the part must come out at a known size.
  4. Convert and read the preview: stray loops around the edges mean compression noise is being traced.
  5. Sign in with Google (free) to download the DXF, then delete the leftovers in CAD before you cut material.

JPEG was built to make photographs small, and the first thing it gives up is the exact position of an edge — the one thing a cutting machine needs. Every JPEG has been through an 8x8 block transform, so along a hard boundary — black logo on white, part against bench — it keeps a faint halo of ringing and a few blocks that drifted a shade off. Your eye files that under "slightly soft edge" and moves on.

A tracer cannot. Those pixels are measurable colour, so they become geometry, and in a DXF geometry is a toolpath: the cutter will try to follow every speckle the compressor left behind.

The second thing JPEG will not give you is an outside. The format has no alpha channel, so the image cannot say "this area is not part of the object" — every pixel is opaque, background included. Whatever the part was sitting on, or whatever colour the artwork was flattened onto, arrives as a solid region of its own, so the edge has to come from contrast instead.

That does not make a JPEG unusable; it changes the plan. Trace at two colours so the engine hunts for one boundary rather than a stack of tonal bands, read the preview for stray islands, and set aside a few minutes in CAD. If the JPG is a re-save of real artwork, go back and re-export that original as a PNG.

What actually happens

What actually happens
  • Raster 6×6 · 8 px · PNG 77 B
  • 6 nodes · 1 path
  • SVG 91 B · vector, not pixels

Why a JPEG needs a different DXF plan than a PNG

Ringing becomes closed loops, and loops become toolpaths

In an SVG a stray speck is cosmetic; in a DXF every closed loop is a candidate cut. JPEG ringing sits a few pixels outside every hard edge, so at a high colour count it is traced as a thin region with an inner and an outer boundary, and both are written as entities on their own FILL_ layer. The machine will pierce and follow each one.

Photographed parts need a reference dimension

A phone JPEG carries no scale a DXF can use: the 96 px = 25.4 mm fallback describes the sensor, not the gasket. Measure one feature of the real part with calipers before you shoot, then type the width and height in millimetres so the drawing is built to it. Shoot square-on; a tilted lens turns a round hole into an ellipse, and the tracer writes the ellipse.

What 2 colours does to JPEG's tonal bands

At two colours every pixel is assigned to the nearer of two centres, so the halo's in-between shades are absorbed into black or white instead of forming a band of their own. The edge is then placed where the ramp crosses halfway, roughly where the original edge was, not at the blur's outer rim. Raise the count and the extra colours claim that ramp first.

The CAD tidy-up a JPEG-sourced DXF always needs

Expect a short pass in CAD. Sort entities by size and delete the tiny closed loops that cluster at corners, where ringing is strongest; they are halo, not part. Join the surviving LWPOLYLINE and SPLINE pieces into one path if your CAM wants a single entity. Then offset for kerf: because the coordinates are at millimetre scale with the unit declared, the offset you type is what the part gets.

Choosing the colour count

This page is for the case where a JPEG is all you have: a client emails a logo as a JPG because that is what their marketplace download produced, or a shop photographs a gasket or a worn paper template because no drawing exists. Either way the job is to get a closed outline into CAD without pretending the source is cleaner than it is.

Photographs deserve their own note, since that is usually where a JPEG comes from. EXIF orientation is applied on upload, so a phone shot taken sideways traces the right way up. Phone files are also large: anything above 1.5 megapixels is downscaled before tracing, which is a good reason to type a physical size in mm. Crop tight and shoot under flat light — a shadow across one side of a part is a colour region, and colour regions become cut lines.

Settings we suggest

Colours: 2. This is the setting that does the work on a JPEG. At 2 the image becomes black and white and you get one boundary per shape; every extra colour is another layer in the DXF and another set of contours a machine can be asked to follow. Go higher only when the part really has separate regions, and expect compression artefacts to appear as extra bands.

Shape stacking: Cut-outs, so holes stay holes and two shapes that meet do not get a doubled boundary along the seam.

Formats: DXF. Tick SVG, PDF, EPS or PNG alongside it and you also get a ZIP of the set.

Physical size: type a width and height in mm and the DXF is written at that size — as is any SVG, PDF or EPS you ticked alongside it. Leave it empty and DXF coordinates come from the pixel grid at 96 px = 25.4 mm.

What lands in the file: DXF R2010 (AC1024) — LWPOLYLINE runs plus degree-3 SPLINE curves, outlines only, never filled regions, one layer per traced colour. Coordinates sit at millimetre scale and the header states the unit, $INSUNITS = 4, so the import dialog has the answer in front of it.

Nothing here scrubs compression noise out for you; the colour count is the lever.

Questions

Why is my DXF full of tiny loops I never drew?

That is the JPEG. Compression leaves ringing and block edges around every hard boundary, and the tracer reads them as small colour regions, so they arrive as closed contours. Colours: 2 removes most of them; delete the survivors near high-contrast corners in CAD. Expect that pass either way, since a traced photograph also carries perspective and shadow.

Should I convert the JPG, or re-export the original as a PNG?

Re-export if you can. JPEG is lossy and every save compounds the last, so a JPG that has been emailed, resized and re-saved carries noise that was never in the artwork. A PNG can also mark the background transparent, so the outside of the part is defined rather than inferred from contrast.

Which DXF version comes out, and what is inside it?

DXF R2010 (AC1024) — AutoCAD 2010 and later, Fusion 360, LightBurn, Inkscape and FreeCAD all open it. Inside are LWPOLYLINE runs and degree-3 SPLINE curves: outlines only, one layer per traced colour, no filled geometry and no embedded bitmap. At 2 colours that means a single geometry layer.

The part imports at the wrong size. What do I fix?

Check what the importer did with the unit. The header declares millimetres, $INSUNITS = 4, but a package that ignores it and assumes inches scales the drawing by 25.4 — set the unit to millimetres by hand and it comes back. Typing a width and height in mm before you convert pins the size itself.

How long does it take, and what are the limits?

Simple logos usually finish quickly; detailed drawings and photos can take several minutes. Each conversion has a 300-second limit; if it is not going to finish in time, the converter tells you and suggests a smaller image. Uploads go up to 25 MB and 40 megapixels. Free and watermark-free: preview the result before signing in, and a free Google sign-in unlocks the download. Signed out you get 10 conversions an hour; signed in, 60 an hour and 300 a day. Download links expire after 1 hour, and files are removed by an automatic 1-day deletion rule.

Related pages