raster → vector with OCR text, powered by VTracer (WASM), runs entirely in this tab
Input
The size an image is traced at is chosen for quality. Photos and flat art are traced at their own size (very large ones are brought down to 1600 px). Line art is never shrunk (up to 2400 px): shrinking makes fine lines fade to gray and break up. A drawing whose lines are under about 6 px wide (and that is under 1200 px) is enlarged before tracing, because line widths and corner radii are measured in pixels and one pixel of anti-aliasing is a big share of a thin line. With AI upscale on (the default) the enlarged image comes from waifu2x, a neural network trained on drawn art that redraws it with crisp edges, so details a pixel or two apart come out separate; switched off, the browser's smooth resize doubles it instead. The factor is 2×, or 4× for the finest lines (about 2 px and under) as long as the result stays within 3200 px; you can also fix it. swin_unet is the sharper model and has a 4× model of its own; cunet is quicker and doubles twice for 4×. Everything runs in this tab (nothing is uploaded); the first use downloads the runtime and the model, and without WebGPU it can take a minute or more per image. If the upscale cannot run, or thins the lines too far, the plain doubling is used and the status line says so.
Fitting tolerance. Higher values give fewer, looser segments; lower values follow the pixels more closely. In Smart mode a straight edge always becomes one clean line.
Shapes smaller than this are dropped as specks. Leave it low for drawings with fine detail (dots, small text); raise it for noisy scans and photos.
Background
The color that dominates the image's border is taken as the background and left out, either only where it is connected to the edges or everywhere (the insides of letters too). This is a trace setting: changing it traces the image again.
Layering
Stacked draws each color as a whole shape over the ones beneath it, so no gap can ever show between two colors. Cutout carves each color into its own region with no overlaps: exact edges for vinyl cutters, plotters and screen printing, and cleaner for flat logo-style art, but slower on photos.
Filled areas are outlined, then the outlines are fitted with lines and curves. These settings decide how closely the fit follows the pixels.
Curves
A vertex that turns sharper than this is kept as a hard, unrounded corner. Turns gentler than this are treated as part of a curve.
Line art
Pen lines become single strokes with a width, instead of thin filled shapes; straight lines, circles, arcs and stacked layers are recognized among them. Lettering can become real text.
Strokes
Recognize geometric shapes looks at the traced lines the way a draftsman would: a straight run becomes one true line right through every crossing, arcs lying on one circle become that circle (or a single arc), a long stretch of an ellipse becomes the whole ellipse when the rest of its outline is covered by ink (curves that crowd together and merge, as in a spirograph, are followed through the merged ink; once several ellipses share a center and size, the others are found as the same ellipse turned to another angle), lines that meet end to end become a polyline, polygon or rectangle, and the pieces of a dashed line interrupted by other lines become one dashed line. Line ends are put exactly on the corner they run into, near-level lines are made exactly horizontal or vertical, circles drawn about one point share its center, and lines of practically one weight get the same width. Free-form, hand-drawn lines are left as curves. The download saves these as real <line>, <circle>, <ellipse>, <rect>, <polygon> and <polyline> elements; a shape you reshape by hand is saved as an ordinary path. Only lines whose thickness falls between Min and Max (in the original image's pixels) become strokes. With auto-detect on, Max is set from the drawing's own line weights each trace — covering fine hatching and heavier outlines alike, but stopping before text or solid shapes that are clearly thicker; turn it off to set Max by hand, a little above your heaviest line. Raise Min to leave hairlines, texture and stray marks as filled shapes (0 = no minimum). Lines in range become a single centerline stroke with a matching width, instead of a filled outline on each side — cleaner, lighter, and easy to restyle. Thicker areas stay filled shapes. The background color never becomes strokes. When a drawing pairs one dominant fine line weight with clearly heavier outlines, the heavy lines are traced first, on their own, and drawn on top; the fine lines are then traced up to them, so crossings and T-joins stay clean. Detect dashed & dotted lines works on its own (strokes need not be on): rows of five or more alike, solid marks of one color at an even spacing become a single path with stroke-dasharray, so the dash pattern can be restyled in one place. Line smoothing re-centers each line between its two edges and irons out pixel and scan noise before fitting curves; 0 follows the pixels exactly, 1 suits most art, 2 for rough scans or hand-drawn lines.
Text
Recognized lines become real <text> elements, sized and spaced to match the original. Text among artwork and widely letter-spaced taglines are found too (each candidate row is read on its own). The OCR engine (Tesseract, about 5 MB) is downloaded from jsDelivr the first time; your image is never uploaded.
Drop an image here
or click "Load image…"
Clean up
Original
Scroll to zoom, drag to pan, double-click to fit
Vector result100%
vector darkervector lighterother color
OriginalVector
Click a shape or line to edit its nodes · drag empty space to pan · press ? for help
Say what this image is and what the vector is for, and every setting starts from a good place for it. Everything can still be changed afterward, and you can come back here with Goal at the top.
Kind of image
Made for
Optimize for
Why these settings
SVG Tracer — help & shortcuts
Key features
Load & trace — drop an image or use Load image…, adjust settings, press Trace image. Everything runs in this tab; nothing is uploaded.
Five steps — 1 Image (load, preset, resolution), 2 Colors, 3 Shapes, 4 Lines (line art, geometric shapes, text) and 5 Finish (background, remove shapes, touch up). Back and Next move between them; the ? on a section header unfolds its descriptions. After the first trace, Re-trace when a setting changes keeps the result up to date.
Remove shapes — under Clean up, Click shapes to remove them: a removed shape shows as a red dashed outline and is left out of the download; click again to restore, with undo and redo.
Palette — Colors merges the most similar shades first. Each color is a layer with a thumbnail and its shape and node counts: hover to pick it out, click to pin, recolor it from its swatch, hide it with the eye or remove the color with the cross; add colors from the color box or by picking them from the original image. Blended-edge cleanup drops the in-between shades anti-aliasing leaves. 1-bit for black & white art; Transparent background removes the paper color.
Shape cleanup — Smart fits true straight lines and smooth curves; Spline and Polygon are VTracer's own fitting. Simplify sets the tolerance, Corner angle what counts as a corner.
Line art — Trace thin lines as strokes turns pen lines into single centerline strokes. Heavy outlines are traced first and fine lines join into them; line ends are trimmed or extended so centerlines meet exactly (check with Overlay › Outlines). Detect dashed & dotted lines (on by default) turns a row of evenly spaced dashes, dots or rail-style ties into one stroke with a matching dash pattern, instead of dozens of separate specks.
Geometric shapes — with Recognize geometric shapes on (the default), traced lines and dashes are recognized as straight lines, polylines, polygons, rectangles, circles, ellipses and arcs, tidied (exact corners, shared centers, equal weights) and saved as real SVG shape elements. The status bar lists what was found. Free-form lines stay curves.
Text — Detect text (OCR) turns lettering into real, editable <text> (downloads the OCR engine once).
Views — above the panes: Side by side, Overlay (vector over the original, with an opacity slider and hairline Outlines), Diff (a heat map of where the vector differs: pink where it is darker, blue where it is lighter or missing ink, yellow for another color) or Vector only. The % match beside them says how close the vector looks to the original (it updates with every edit; click it for the Diff), next to the size of the SVG. The status bar shows the palette: click a color to copy its hex code.
Goal — at the top of the panel, say what the vector is for (Screen, Screen print, Vinyl cutter, Laser engrave, Pen plotter, Stencil) and whether to favor fidelity or a small file; Why these settings lists what that changed. Essentials holds the settings most images need; the finer ones fold away in the sections below, and a section says how many of its settings you have changed (Reset puts them back). Color-code regions & strokes shows what became what.
Edit nodes — fine-tune any shape or line by hand; edits go into the download. Re-tracing replaces them.
Download SVG — saves the vector, including your edits, at the original image's size.
Sessions — Save session stores the image, every setting and the vector with your edits in one .tracer.json file; Open session… brings it all back without re-tracing.
View — mouse
Scroll
Zoom in / out at the pointer (both panes together)
Drag
Pan
Double-click
Fit the image back in the pane
Edit nodes — mouse
Click shape or line
Select it and show its nodes — a click within a few pixels of a line picks the nearest line, even right next to the one being edited
Click node
Select the node and show its curve handles
Drag node / handle
Move the node (handles follow) / reshape the curve
Shift+Click outline
Add a node at that spot
Double-click outline
Add a node at that spot
Ctrl+Click node
Delete that node
Drag empty space
Pan (a click without dragging selects)
Edit nodes — keyboard
←→↑↓
Nudge the selected node 1 px (Shift: 10 px)
Tab / Shift+Tab
Next / previous node
Delete / Backspace
Delete the selected node (or the shape, if no node is selected)
Ctrl+Z
Undo (up to 200 steps)
Esc
Finish editing the shape
Inspector bar
Color · Width
Fill of a shape, or color and width of a line
X · Y · Node
Position of the selected node; Corner (free handles), Smooth (handles in line), Symmetric (in line, equal length)
Make line / curve
Straighten or curve the segment after the selected node
Reset
Back to the traced outline
Anywhere
Ctrl+S
Save session (image, settings, vector and edits in one file)
Ctrl+O
Open a saved session (or drop the file on the start screen)