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.

  1. Read
  2. Lay out
  3. Write the SVG
  4. 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.

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

  1. Choose Lines above the drop area: Visible for screens and documents, Hairline (laser) for cutting. Visible is already selected.
  2. Drop your .dxf files here, or use Choose file. 5 files convert at a time.
  3. When the row says your file is ready, select Download. For several files, Download all (.zip) bundles them.
  4. 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

Measured on 49 licensed test drawings: 2,748 of 2,755 entities drawn or approximated, checked against an independent open-source DXF reader.
WhatResult
Lines, arcs, circles, ellipses, splines, polylines and pointsPreserved Drawn as vectors: 1,937 in our test drawings.
Blocks, nested blocks and arraysPreserved Expanded in place, every copy drawn: 185 block references in our test drawings.
DimensionsPreserved Drawn from the geometry saved with each dimension: 55 of 55.
Text, multiline text and attributesPreserved Placed where a reference CAD reader places them: 565 of 565 within 2% of the drawing width, across 20 drawings.
Solid hatches and filled areasPreserved Filled in their own colour: 14 in our test drawings.
Real-world sizePreserved 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-1Preserved Kept as Unicode text, Greek letters and the diameter sign included (18 such characters in our test drawings).
LayersPreserved Kept as groups that carry each layer's name, for a stylesheet or a script to find (63 layers across our test drawings).
Pattern hatchesApproximated 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 stylingApproximated 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).
LeadersApproximated The arrows that point notes at a part are drawn as lines without arrowheads (3 in our test drawings).
Polylines with widthApproximated 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 coloursApproximated Yellow, cyan and other light colours are darkened so they stay visible on white paper (10 of our test drawings).
Line typesNot converted Dashed, dotted and centre lines are drawn solid (1 of our test drawings uses them).
Line weightsNot converted Every line gets the same width (6 of our test drawings set weights).
Paper space layoutsNot 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 geometryNot converted Left out, with a note (1 in our test drawings).
Embedded OLE objectsNot converted Pasted-in content, such as a spreadsheet or a picture, is left out (1 in our test drawings).
Binary DXFNot 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

If the SVG isn't what you expected

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.

FeatureFreePro
Single filesFree, no watermark, no waitSame
Files at a timeUp to 5Up to 100
ZIP and folder inputPick the files insteadYes
Large filesWorks; may be slow on some devicesBuilt for them
AccountNone neededOptional
Where files goNowhere: converted on your deviceNowhere: converted on your device
Price$0Week 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.

  1. Open your browser's developer tools (F12, or Option + Command + I on a Mac) and choose the Network tab.
  2. Convert a file on this page.
  3. 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.
  4. 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