Skip to content
STLBench

Free online DXF to SVG converter

DXF to SVG that still measures right

Drop a .dxf and download an .svg anyone can open. Blocks are expanded, arrays unrolled and dimension geometry drawn, so a real drawing renders as itself rather than as a blank page. Layers arrive as named groups and can be switched off before converting. The page is written with a millimetre width and a matching viewBox, which means the picture in a browser and the part in a cutter are the same size — the thing most exports quietly get wrong.

  • 100% free
  • No signup
  • Blocks expanded
  • Millimetre page
  • Nothing uploaded
Convert to

How to convert DXF to SVG

Three steps, with the useful decision in the middle.

  1. Drop the .dxf

    Blocks are expanded with their scale, rotation and array counts, dimensions are drawn from the block that defines them, and any entity carrying an extrusion vector is placed through its own coordinate system — the three things that make a real architectural drawing render as itself rather than as an empty page.

  2. Look at it, and switch off what you do not want

    Layers are listed with their entity counts and can be toggled. Hatching, dimension clutter and title blocks are usually the parts you do not want carried into a graphic, and turning them off here is quicker than editing the SVG afterwards.

  3. Download the SVG

    One group per layer, a stroke width scaled to the drawing rather than fixed, and both a millimetre width and a matching viewBox — so the file is a picture in a browser and a dimensioned part in a cutter, and the two agree.

Technical specifications

Reads.dxf — R12 through 2018, ASCII
EntitiesLines, polylines, arcs, circles, ellipses, splines, blocks, dimensions, polyface meshes
Writes.svg — width in millimetres with a matching viewBox
LayersOne SVG group each; layers switched off are left out
CurvesFlattened to polylines at about 1/1000 of the drawing's size
Not convertedText and dimension labels, hatch patterns, line types
AxisY is flipped back — CAD counts up, SVG counts down
File sizeNo fixed limit — past 100 MB you are told what it will cost this tab, then it opens

Frequently asked questions

Is this a downgrade?

It is a change of audience. A DXF cannot be opened by anyone without CAD software, will not preview in a chat window, and cannot be dropped into a document. An SVG opens in every browser made, imports into every design tool, and — written properly, with a physical width — still carries real dimensions. What you give up is the layer semantics CAD relies on and the notion of a drawing unit other than the one baked in. For sending a part drawing to somebody who is not an engineer, that is the right trade.

What happens to arcs, circles and splines?

They are flattened to polylines at a tolerance derived from the drawing's size, which is a real loss and worth naming. SVG has arc and Bézier commands and a more sophisticated writer could use them; this one does not, because the same flattening feeds the preview and the measurements, and one geometry path that is definitely right beats two that can disagree. At the tolerance used, the deviation is well under a tenth of a millimetre on a part-sized drawing — invisible on screen and below any cutter's kerf.

Do the layers survive?

As groups, with their names. SVG has no equivalent of a layer that can be frozen, locked, assigned a colour index or plotted separately, so what arrives is the grouping and nothing else. Layers switched off in the drawing are left out entirely rather than exported hidden, since an invisible path in an SVG is a path a cutter will happily cut.

Does text come across?

No. DXF text is a string, a style name and a height; reproducing it in an SVG means either shipping the font or accepting that it renders differently everywhere, and in a drawing where text sits inside a title block that difference is a mess rather than a variation. Labels are counted in the panel so you know they were there, and the geometry — which is what a converted drawing is usually wanted for — is complete.

Will the size be right?

The SVG is written with a width in millimetres and a viewBox in the same numbers, so it is unambiguous in the way most exports are not. The honest caveat is upstream: most DXF files declare no unit at all, so if the drawing was authored in inches its numbers are inches and the SVG will say millimetres over the same figures. The panel reports what the file declared — including "not stated", which is the usual answer — so you can catch that before it matters.

Is the file uploaded?

No. The DXF is parsed, the blocks expanded and the SVG assembled here in the tab. Architectural and mechanical drawings are among the most sensitive files a practice holds, and a free converter that takes uploads is a strange place to put one.

Why most DXF files look empty in a converter

Open a real architectural DXF in a naive converter and you will often see nothing at all. The reason is blocks. A block is a named group of geometry placed by reference — one definition, hundreds of insertions, each with its own position, scale, rotation and sometimes a rectangular array count — and in a working drawing almost everything is one: every door, every window, every bolt, every dimension. A reader that walks the entities section and draws what it finds there draws the handful of stray lines nobody put in a block, which is to say almost nothing.

Two more details decide whether the rest of it comes out right. Any entity may carry an extrusion vector, and its coordinates are then relative to a frame derived from that vector by a published rule; ignore it and parts of the drawing arrive mirrored or rotated while the rest is fine, which reads as a corrupt file rather than as a bug. And a dimension is not lines and arrowheads — it is a reference to a block that contains them, so expanding that block renders dimensions correctly without implementing a single dimension style.

All three are handled here, which is why the preview looks like the drawing rather than like a fragment of it. What comes out the other side is deliberately plain: paths grouped by layer, a stroke width proportional to the drawing so a floor plan and a gasket both look sensible, and a page whose stated size is real. If you are going the other way, SVG to DXF deals with the scale problem from the opposite side, and DXF to STL gives a flat drawing a thickness if what you wanted was a part rather than a picture.

Where the conversion happens

Every number on this page is worked out by JavaScript running in the tab you are reading it in. The model you open is read straight off your own disk — it is never uploaded, logged or kept, which is also why these tools carry on working after you disconnect from the network.

Worth saying on this page in particular: the drawings that get converted here are floor plans, site layouts and machined parts — the files a practice would never email unencrypted, handed to a free web converter without a second thought. The parsing and the writing both happen in this tab, and there is no endpoint to send them to.