DXF to SVG
Turn an ASCII DXF drawing into an SVG at real-world scale, right here on your device.
Conversion desk
On this device
Start with a file
Drop your file here or choose one from your device.
DXF · 5 files at a time, free
Its new format
FromDXF
ToSVG
Converted on this device. Nothing is uploaded.
Your file's short trip
DXF to SVG
Your file is next.
- Read
- Lay out
- Write the SVG
- Ready
Why people turn DXF into SVG
SVG is the vector format of the web, and plenty of design and cutting software opens it too. Converting a DXF gives you the same geometry in a file that a browser, an illustration app or laser software can use without a CAD import step.
- Laser cutting and engraving: part outlines drawn in CAD, ready for software that prefers SVG.
- Vinyl cutters and pen plotters, for signs, stencils and templates.
- Websites and documentation: a floor plan, a wiring layout or an exploded view that stays crisp at any zoom, with text that can be selected and searched.
- Illustration apps, to recolour layers or tidy a technical drawing for a manual, a poster or a slide.
Nothing is sent to a server along the way. The SVG is written in this tab, so a client's part drawing stays with you.
How to convert DXF to SVG
- Choose Lines above the drop area: Visible for screens and documents, Hairline (laser) for cutting. Visible is already selected.
- Drop your .dxf files here, or use Choose file. 5 files convert at a time.
- When the row says your file is ready, select Download. For several files, Download all (.zip) bundles them.
- Look at What changed under the file for anything that was approximated or left out.
The Lines setting is taken when a file is added. To compare both styles, convert the same drawing once with each.
What's preserved, what changes
| What | Result |
|---|---|
| Lines, arcs, circles, ellipses, splines, polylines and points | Preserved Drawn as vectors: 1,937 in our test drawings. |
| Blocks, nested blocks and arrays | Preserved Expanded in place, every copy drawn: 185 block references in our test drawings. |
| Dimensions | Preserved Drawn from the geometry saved with each dimension: 55 of 55. |
| Text, multiline text and attributes | Preserved Placed where a reference CAD reader places them: 565 of 565 within 2% of the drawing width, across 20 drawings. |
| Solid hatches and filled areas | Preserved Filled in their own colour: 14 in our test drawings. |
| Real-world size | Preserved Width and height are written in millimetres, worked out from the drawing's units: 52 of the 52 SVGs from our test drawings. |
| Characters outside Windows Latin-1 | Preserved Kept as Unicode text, Greek letters and the diameter sign included (18 such characters in our test drawings). |
| Layers | Preserved Kept as groups that carry each layer's name, for a stylesheet or a script to find (63 layers across our test drawings). |
| Pattern hatches | Approximated Areas filled with repeating lines, such as brick or insulation, are drawn as a light tint with their outline (22 in our test drawings). |
| Text fitted between two points (ALIGNED and FIT) | Approximated Centred between its two points at its natural width, not stretched to fit (24 in our test drawings). |
| Fonts and text styling | Approximated CAD stroke fonts (SHX) and TrueType fonts become Arial or Helvetica, whichever the viewer has; width factor, slant and inline font changes are not applied (20 of our test drawings have text). |
| Leaders | Approximated The arrows that point notes at a part are drawn as lines without arrowheads (3 in our test drawings). |
| Polylines with width | Approximated Drawn as thin lines (3 in our test drawings). |
| True colour (24-bit) | Approximated Shown with the nearest indexed colour (5 of our test drawings use it). |
| Light colours | Approximated Yellow, cyan and other light colours are darkened so they stay visible on white paper (10 of our test drawings). |
| Line types | Not converted Dashed, dotted and centre lines are drawn solid (1 of our test drawings uses them). |
| Line weights | Not converted Every line gets the same width (6 of our test drawings set weights). |
| Paper space layouts | Not converted Layouts, where sheets are arranged for printing, are left out; the model space, where the drawing itself is, is converted (39 entities in 8 of our test drawings). |
| External references (XREF) | Not converted Not loaded: the referenced drawing lives in another file. |
| Dimensions without saved geometry | Not converted Left out, with a note (1 in our test drawings). |
| Embedded OLE objects | Not converted Pasted-in content, such as a spreadsheet or a picture, is left out (1 in our test drawings). |
| Binary DXF | Not converted Can't be read yet; save the drawing as ASCII DXF in your CAD app (1 of our test files is binary). |
Preserved: arrives as it is. Approximated: arrives in a simpler form, as the row describes. Not converted: stays behind.
Read the table with your use in mind. For a laser, the line types and line weights that aren't converted rarely matter: a cut line is a cut line, and here every line has the same width. For documentation they do matter, because dashed hidden lines and centre lines arrive solid.
Text is where SVG and PDF differ most. Every character comes through, Greek letters and the diameter sign included, because SVG text is Unicode. The font is up to whatever opens the file: we ask for Arial, then Helvetica, then any sans-serif, so a drawing set in a CAD stroke font (SHX) will look a little different. Pattern hatches arrive as a light tint with an outline, which matters if you're cutting; there's more on that below.
Visible or Hairline lines
Visible draws lines 0.25 mm wide at real size, or wider on a big drawing. The width grows with the drawing so that lines stay about a pixel wide when the whole drawing is fitted to a screen around 1600 pixels across. A part the size of an A4 sheet keeps 0.25 mm; a 30 × 40 m floor plan gets lines about 31 mm wide, which is what you want once it's shrunk onto a web page.
Hairline makes every line 0.01 mm, however large the drawing. Some laser drivers and cutting workflows treat a hairline stroke as a cut line, and it's a clean start if you'd rather set stroke widths yourself. In a browser, hairlines can look faint or vanish when you zoom out; zoom in and they come back.
Neither setting moves a single point. Only the stroke width changes.
Real scale, units and layers
The SVG's width and height are written in millimetres, worked out from the units the drawing declares: inches, feet, millimetres, centimetres or metres. Software that reads SVG units can open it at its true size, though it's worth measuring one known feature after import. If the drawing declares no units, we assume millimetres and say so in What changed.
Inside the file, coordinates stay in drawing units, shifted so the lower-left corner of the drawing sits at 0,0. That keeps survey drawings with very large coordinates on the canvas, but the original coordinates aren't carried over.
Entities are grouped by layer, in drawing order. Each group carries the layer's name in its class and in a data-layer attribute, so a stylesheet or a script can find it. When a drawing goes back and forth between layers, one layer can appear in several groups. Colours come from the drawing, with very light ones darkened so they show on white.
An SVG is plain, uncompressed text, so a big drawing makes a big file. In our measurements, a 20 MB synthetic test drawing became a 43 MB SVG; the same drawing as a PDF was 7.5 MB.
Getting a DXF ready for the laser
- Freeze or turn off the layers you don't want cut, such as dimensions, notes and hatching, before saving the DXF. Frozen, hidden and non-plotting layers are left out of the SVG.
- Pattern hatches come through as a tinted area with a closed outline, and that outline will cut. Delete the hatch, or keep it on a layer you turn off. Solid hatches arrive as filled shapes, which some laser software engraves.
- Text arrives as live text. If your laser software needs outlines, convert the text to paths in your design app first, and check that the font looks right.
- Dimensions arrive as lines, arrowheads and text, and leaders as plain lines without arrowheads. All of them will cut unless their layers are off.
- Measure one known feature after import, to be sure the scale is right before the first cut.
If the SVG isn't what you expected
- Lines are invisible or very faint. Hairline lines are 0.01 mm wide. Zoom in, or convert again with Visible.
- The size is off by 25.4, or by 1000. The drawing's units are missing or don't match how it was drawn. An inch drawing with no units comes out 25.4 times too small; a drawing made in metres but labelled millimetres comes out 1000 times too small. Fix the units in your CAD app and save the DXF again.
- The file is slow to open. Large drawings make large SVGs. For viewing and sharing, DXF to PDF packs the same drawing into a much smaller file.
- Text looks different from CAD. The font is replaced, and width factor and slant aren't applied. Text sits where the drawing puts it, but the letter shapes differ.
- Something is missing. Layouts, hidden layers and external references aren't drawn. What changed lists what was left out, and What we draw explains each case.
- An error instead of an SVG. Binary DXF, DWG files, damaged files and drawings with too much detail are covered in When a DXF won't convert.
Try it with a sample file
sample-cad-entities.dxf (190 KB) is a test sheet from the open-source dxf library, with separate panels for lines, arcs, splines, hatches, text, blocks, leaders and six kinds of dimension. It's MIT-licensed, and the notes on our sample files say where it comes from.
Convert it twice, once with each Lines setting, and open the two files side by side. Then find the line of special characters: unlike the PDF version, the SVG keeps ≈, Δ, π and Ω. The drawing declares no units, so What changed will tell you millimetres were assumed.
Plans
Free and Pro
The free plan is the real product, not a trial. Pro is for people who convert in bulk, and it isn't open yet.
| Feature | Free | Pro |
|---|---|---|
| Single files | Free, no watermark, no wait | Same |
| Files at a time | Up to 5 | Up to 100 |
| ZIP and folder input | Pick the files instead | Yes |
| Large files | Works; may be slow on some devices | Built for them |
| Account | None needed | Optional |
| Where files go | Nowhere: converted on your device | Nowhere: converted on your device |
| Price | $0 | Week Pass $6 · Pro $7/month or $48/year · coming soon |
Privacy
Check it yourself
You don't have to take our word for it. Your browser can show you exactly what this page sends.
- Open your browser's developer tools (F12, or Option + Command + I on a Mac) and choose the Network tab.
- Convert a file on this page.
- Look through the requests. None of them carries your file: the page loads its code once, then the conversion runs in a Web Worker on your device.
- For a stronger test, turn off Wi-Fi after the page loads, then convert again. It still works.
The conversion worker runs under its own Content Security Policy, which blocks every network request:
default-src 'none'; script-src 'self'The page itself may only talk to this site and our cookieless analytics:
connect-src 'self' https://gateway.umami.is