Centerline Trace
Trace the middle of every line instead of its outline, for plotters, engraving and embroidery.
Free · runs in your browser · nothing is uploaded
Recent
Your last 10 settings, saved only in this browser. Nothing is uploaded.

How to use the Centerline Tracing tool
- Choose a file with Choose image, or drop or paste one. Try a sample shows the result without a file of your own. Dark lines on light paper trace best.
- Look at Black and white threshold. At its default of 0 the tool picks the level automatically. If lines break or the paper speckles, move it between 1 and 255 until the ink is solid and the background is clear.
- Tick Invert only when your lines are light on a dark background.
- Set Width (5 to 600 mm, default 100) to the size you want on the machine.
- Raise Drop strokes shorter than (0 to 60 px, default 6) to remove specks and dust.
- Adjust Smoothing (0 to 100, default 50). Higher values give gentler curves.
- Set Stroke width (0.05 to 3 mm, default 0.3) to match your pen or laser.
- Leave Order strokes for the plotter ticked so the pen visits the strokes in a short route.
- Switch between Original, Result and Overlay to see whether every line was found. The line under the preview shows the size, the number of paths and nodes, and the number of strokes.
- Press Download SVG, Download PDF, Download DXF or Download PNG.
Work with a copy of your drawing at a decent size. A line that is only one or two pixels wide can break up under the threshold, so scan at a higher resolution rather than enlarging a small picture afterwards.
What is centerline tracing vs outline tracing?
Centerline tracing follows the middle of each line and returns one open path per stroke. Outline tracing follows both edges of the same stroke and returns a closed shape with two borders. Use centerline when a pen, blade or laser should pass over each line once, and outline for filled shapes.
| Centerline tracing | Outline tracing | |
|---|---|---|
| Paths per stroke | One open path | Two edges forming a closed shape |
| Best for | Line drawings, handwriting, sketches | Filled shapes and thick areas |
| Pen result | Each line drawn once | Both edges drawn |
A ring comes back as one closed loop. Everything else stays open.
Which image works best for centerline tracing?
Dark ink of an even, thin width on plain light paper works best, because the tool first turns the picture into black and white and then thins the black. Photographs turn into blobs, so use them with an outline or line art tool instead.
- Scan or photograph the drawing flat, in even light, without shadows.
- Keep lines a few pixels wide. Fat filled areas wider than about 20 px leave short spurs.
- Avoid grey or textured paper, which makes the threshold harder to set.
- Images are worked at a maximum side of 1,500 px, so extra resolution adds no detail.
- Transparent pixels are never counted as ink.
Why does my trace give a double line?
A double line appears when the source stroke is hollow, for example outlined lettering. Thinning follows each border separately, so you get one line per border. Fill the letters solid first, or use a single-stroke source. Very fat strokes behave differently: they leave spurs rather than a second line.
How much pen travel does stroke ordering save?
Ordering visits each stroke by nearest neighbour, so the pen lifts less far between strokes. In one hand-calculated case the route fell from 89 to 31 units. In an engine test on a handwriting-like mask it fell from over 1.4 million pixels to about 31 thousand.
| Case | Strokes | Travel in file order | Travel after ordering |
|---|---|---|---|
| A (0,0)-(10,0), B (50,0)-(60,0), C (11,0)-(20,0), start at (0,0) | 3 | 89 | 31 |
| 60 random thick curves on a 1500 x 1500 mask (engine test) | 2,059 | 1,416,107 px | 31,391 px |
Row one is worked by hand: A, B, C gives 40 + 49 = 89, while A, C, B gives 1 + 30 = 31. Row two was measured in a test of the tracing code. This page does not print travel figures, so treat them as an illustration of what ordering does.
Which file do Cricut, Glowforge or LightBurn want, SVG or DXF?
Start with SVG, because the tool writes stroke-only paths with the stroke width in millimetres. Use DXF when your laser or CAD program asks for it. Check the import list of your own software, because accepted formats change between versions.
| Format | Use it when |
|---|---|
| SVG | Your design or cutting software lists SVG as an import type |
| DXF | Your laser or CAD software asks for DXF |
| You want a vector page to print or check | |
| PNG | You want the black-and-white image the trace worked from |
Answers to common questions
Is the picture uploaded?
No. No. The trace runs in your browser and the page makes no upload request. The engine downloads the first time you touch the tool.
What stroke width should I choose?
The Stroke width slider runs from 0.05 to 3 mm and starts at 0.3 mm. Match it to your pen tip or laser kerf. It sets how thick the lines are drawn in the file, not how the lines were found.
What does Drop strokes shorter than do?
It deletes any traced stroke shorter than the number of pixels you set, from 0 to 60, with 6 as the default. Raise it when dust or paper grain turns into tiny strokes, and lower it when short legitimate marks such as dots disappear.
Why do some strokes stick out at the ends?
Thinning shortens free ends by half the stroke width, so the tool extends them back to the edge of the ink. A round-capped stroke therefore reaches about half its width past the ink at a free end.
Can I trace a photo or a coloured drawing?
Not well. The picture is reduced to black and white before thinning, so shading and colour fields become solid areas. Redraw the lines in dark ink, or trace the photo with the line art or outline tools first.
Does the order of strokes change the drawing?
No. Ordering only changes the route between strokes, so the lines look identical. Untick Order strokes for the plotter if you want them in the order they were found.
Related tools
- Single Line SVG: use it when a plotter needs the same strokes with a drawing-time estimate and G-code.
- Signature to SVG: use it for a signed page or scan, with thicker default strokes.
- Photo to Outline: use it when you need the outer outline of a subject instead of the middle of the lines.
- Photo to Line Art: use it to turn a photo into line drawing first, then centerline-trace the result.
- Line Art Converter: use it to clean up an existing drawing before tracing.
- Photo to Stencil: use it when you need cuttable shapes with bridges rather than open strokes.
- Stencil Maker: use it to make a stencil from a bold image.
- Silhouette Maker: use it for a solid shape from a picture.
- Convert Image to Cut File: use it for the full range of cut-file tools.