Skip to main content
Direction

DXF converter online

Open a DXF in this tab and export it as SVG, PNG or PDF — or go the other way and turn an SVG into a DXF. Layers, units and the entities that could not be drawn are all listed, not hidden.

Runs in this tabNo uploadNo watermarkFree and unlimited

This DXF converter runs both directions of the job in the browser tab you are reading. Drop a DXF and the page reads its group codes, expands every block reference, draws the result on a canvas you can pan and zoom, and exports it as SVG, PNG or PDF. Switch the direction and it goes the other way: an SVG is flattened to polylines at a tolerance you set and written out as an R12 or R2000 DXF with a layer table and a declared drawing unit. Nothing is queued, nothing is uploaded, and nothing is quietly dropped — the entity table on screen counts every entity type in the file and marks the ones this renderer does not draw, with the reason.

Key facts about DXF converter online

Key facts about DXF converter online
DirectionsDXF → SVG, DXF → PNG, DXF → PDF, and SVG → DXF
Readerdxf-parser 1.1.2 (MIT), reading ASCII DXF group codes
Entities drawnLINE, LWPOLYLINE, POLYLINE, CIRCLE, ARC, ELLIPSE, SPLINE, POINT, SOLID, 3DFACE, TEXT, MTEXT, INSERT
Block referencesINSERT is expanded in place, including rectangular arrays, nested up to 8 levels deep
Entities reported, not drawnHATCH, DIMENSION, LEADER, IMAGE, WIPEOUT, 3DSOLID, REGION, MESH, VIEWPORT, XLINE, RAY
Units$INSUNITS codes 0–20 are read; code 0 (unitless) is flagged rather than assumed to be millimetres
Colourlayer colour, entity ACI index and 24-bit true colour are all read; ACI 7 is drawn as dark ink on the white page
Input caps20 MB for a DXF, 10 MB for an SVG, 400,000 drawn paths per drawing
Measured speeda 13.6 MB DXF holding 160,000 entities parses in about 0.3 s and redraws in about 0.2 s on a current laptop
Writer outputR12 (AC1009) with POLYLINE/VERTEX, or R2000 (AC1015) with LWPOLYLINE
Refused by namebinary DXF and DWG are detected from their first bytes and rejected with an explanation, not parsed into an empty drawing
Account, install, watermarknone of the three — no signup, no extension, no mark on the output

What happens to your file

The DXF or SVG you drop is read with the File API inside this tab and parsed by JavaScript that is already part of the page. There is no upload, no job queue and no server: the only network traffic the conversion causes is the page's own JavaScript chunk arriving from toolchamp.app the first time you open the tool. The drawing lives in this tab's memory as a parsed object and a list of path commands; the SVG, PNG and PDF are built from that same list and handed to the browser as a blob URL that the download link consumes. Close or reload the tab and every trace of the file is gone — there is nothing on a disk anywhere to delete, and no copy for anyone to ask for.

About this tool

  1. 1

    Pick the direction

    The switch at the top chooses between reading a DXF (out to SVG, PNG or PDF) and writing one (in from an SVG). It changes the whole panel, so set it before you drop the file.

  2. 2

    Drop the file

    Drag it onto the box or click to browse. A DXF is parsed straight away and the stats row fills in with the entity count, the layer count, the declared unit and the drawing's extents.

  3. 3

    Read the entity table

    If the warning strip appears, it lists every entity type that was counted in the file but not drawn, and why. That is your cue to explode dimensions or hatches in CAD before converting.

  4. 4

    Turn layers off

    Each layer is a toggle showing its colour and its entity count. Hidden layers disappear from the preview and from every export, which is the quickest way to get a cut path out of a fully annotated drawing.

  5. 5

    Choose the output and its settings

    SVG offers real size or a pixel width, PNG offers a DPI, PDF offers a sheet size and a 1:1 or fill-the-page scale. Each panel explains what the setting does to the file.

  6. 6

    Download

    The file is built in the tab and saved by the browser. The banner underneath reports the finished size and dimensions, plus anything the format could not carry — such as characters the standard PDF font cannot encode.

Specs & compatibility
Input formatsASCII DXF (any version dxf-parser reads, R12 through 2018) and plain SVG
Output formatsSVG 1.1, PNG (8-bit RGBA), PDF 1.7, DXF R12 and R2000
Maximum DXF size20 MB — roughly 1.4 million group-code lines, all held in memory at once
Maximum PNG output16,384 px on a side and 40 megapixels, the ceiling browsers place on a canvas
Maximum PDF page5,080 mm (200 inches) per side, the PDF format's own limit
Curve accuracyarcs, circles and ellipses become cubic Béziers with a radial error below 0.0003 × radius
Browser supportany current Chrome, Edge, Firefox, Safari or Opera with Path2D and canvas.toBlob
Offlineworks with the network off once the page and its chunk have loaded
Batchone drawing at a time — the preview, the layer list and the export options are all per-file
  • If a drawing opens blank, check the extents in the stats row: a stray entity at coordinate 10,000,000 will squeeze everything else into a single pixel. Hide the layer it sits on and the view rescales.
  • Set $INSUNITS in your CAD before exporting. A DXF with unit code 0 carries bare numbers, and every downstream program has to guess the scale — including this one, which says so rather than guessing.
  • For a cut file, switch the colour mode to black only. Many laser drivers key on stroke colour, and a drawing that inherits half a dozen ACI colours becomes half a dozen power settings by accident.
  • SPLINE entities are sampled into polylines. If a spline-heavy drawing looks faceted at high zoom, export it from CAD with the splines already converted to arcs or polylines.
  • When you need the same drawing as both a picture and a cut path, export the PNG for the documentation and the SVG for the machine — the SVG keeps curves as curves, the PNG does not.
  • Going SVG → DXF, drop the curve tolerance before you decide the result is too coarse: 0.05 mm is usually invisible, 0.5 mm shows as flats on a small radius.
  • Both directions in one page: DXF out to SVG, PNG or PDF, and SVG in to DXF
  • Pan-and-zoom canvas preview drawn from the same geometry that gets exported
  • Per-layer visibility toggles with live entity counts
  • A counted list of every entity type the renderer does not draw, with the reason
  • $INSUNITS read and reported, with unitless files flagged instead of assumed
  • R12 and R2000 output with a real layer table
  • Getting a supplier's DXF onto a page you can email, by exporting it as a 1:1 PDF on a named sheet size.
  • Pulling one cut layer out of a fully dimensioned drawing without opening a CAD seat.
  • Turning a logo drawn in Inkscape into a DXF a laser cutter's software will accept.
  • Checking what is actually inside a DXF a client sent — which layers, which entity types, which units.
  • Producing a PNG of a drawing for a build log, a quote or a wiki page.
  • Rescuing geometry from a DXF on a machine where the CAD licence has expired.
No, and it says so rather than failing quietly. DWG is AutoCAD's closed binary format; its layout changes with each release and there is no published specification. This page detects a DWG from its first bytes and tells you to export a DXF instead. Almost every CAD application can do that: in AutoCAD it is SAVEAS with the file type set to AutoCAD DXF, in Fusion 360 it is the DXF option in the export dialog, and free viewers from several CAD vendors will also re-save a DWG as DXF.
A DIMENSION entity does not store the lines and arrowheads you see on screen. It stores two reference points, a style name and a measurement, and the CAD application draws the rest from the style table at display time. Reproducing it would mean reimplementing a dimension engine and guessing at a style definition that may not be in the file. The page counts the DIMENSION entities and tells you they were skipped. If you need them in the output, explode them in CAD first — that converts each one into ordinary lines and text.
It does when the DXF declares its units. The header value $INSUNITS says whether a coordinate of 120 means millimetres, inches, metres or something else, and the SVG is written with a physical width such as width="120mm" while the PDF is placed at 1:1 on the sheet. When $INSUNITS is 0 the file is genuinely unitless and no program can know the intended scale, so the page shows a warning and exports one drawing unit as one output unit. Set the unit in your CAD before exporting and the problem disappears.
The cap is 20 MB, which is roughly 1.4 million lines of group codes. A 13.6 MB file containing 160,000 line entities parses in about 0.3 seconds and redraws in about 0.2 seconds on a current laptop, so the limit is memory rather than patience: the whole file is held as a string array while it is scanned, and past 20 MB a phone browser is as likely to kill the tab as to finish. There is also a ceiling of 400,000 drawn paths, and the page tells you when a drawing hits it instead of silently showing part of it.
It depends on the direction. Going out of DXF, circles, arcs and ellipses become cubic Béziers in the SVG and the PDF, with a radial error below 0.0003 of the radius — visually and dimensionally exact. Going into DXF, curves have to be flattened, because a DXF polyline can hold straight segments and circular bulges but not a cubic Bézier. You choose the tolerance, and an SVG circle drawn with the circle element is written as a true DXF CIRCLE rather than flattened at all.
No. The conversion is JavaScript running in your tab: the File API reads the bytes, the parser builds an object in memory, and the exporters write the output into a blob the browser saves. There is no server component to this page, so there is no upload, no queue, no job id and no retention policy to read. You can confirm it by opening the browser's network panel while you convert, or by disconnecting from the network after the page has loaded — the conversion still works.
View all

Updated

We use anonymous analytics to improve ToolChamp. No personal data is stored or sold. Privacy Policy