Skip to content
Find a tool

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

Open on Outlinecut

This embed was switched off for this website. Open on Outlinecut

Add this tool to your siteFree embed code, no sign-up. Keep the credit link.

Embed this tool

Copy this code into your website, blog or class page. The tool runs inside your page.

Optional settings, added to the address after embed=1: &accent=0f6b5c (colour, 3 or 6 hex digits). Other parameters are ignored.

Please keep the credit link below the tool.

To centerline trace a drawing online means turning a line drawing into open vector strokes that run down the middle of each line, instead of outlining both edges. This page does that for dark ink on a light background. It thins every stroke to a one-pixel skeleton, traces the skeleton into paths and writes stroke-only SVG with the stroke width set in millimetres. The result suits pen plotters, engravers and cutters that want one line per stroke. Choose an output width from 5 to 600 mm, drop short specks, order the strokes to cut pen travel, and download SVG, PDF, DXF or PNG. It is built for sketches, handwriting and clean line art rather than photographs.
Centerline tracing online example

How to use the Centerline Tracing tool

  1. 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.
  2. 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.
  3. Tick Invert only when your lines are light on a dark background.
  4. Set Width (5 to 600 mm, default 100) to the size you want on the machine.
  5. Raise Drop strokes shorter than (0 to 60 px, default 6) to remove specks and dust.
  6. Adjust Smoothing (0 to 100, default 50). Higher values give gentler curves.
  7. Set Stroke width (0.05 to 3 mm, default 0.3) to match your pen or laser.
  8. Leave Order strokes for the plotter ticked so the pen visits the strokes in a short route.
  9. 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.
  10. 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 tracingOutline tracing
Paths per strokeOne open pathTwo edges forming a closed shape
Best forLine drawings, handwriting, sketchesFilled shapes and thick areas
Pen resultEach line drawn onceBoth 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.

CaseStrokesTravel in file orderTravel after ordering
A (0,0)-(10,0), B (50,0)-(60,0), C (11,0)-(20,0), start at (0,0)38931
60 random thick curves on a 1500 x 1500 mask (engine test)2,0591,416,107 px31,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.

FormatUse it when
SVGYour design or cutting software lists SVG as an import type
DXFYour laser or CAD software asks for DXF
PDFYou want a vector page to print or check
PNGYou 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.