SVG to DXF converter

Convert an SVG to a DXF at true size, in millimetres or inches.

Drop an SVG file hereor click to choose one from your computerThe file is converted in this browser and never uploaded.
Closed shape Open lineA line drawn in a colour keeps that colour in the DXF.
Units in the DXF
Pixels per inch

Pixels per inch matters only when the SVG gives its size in pixels or gives no size. Inkscape and browsers use 96. A drawing that comes out at 75% of the size you expect needs 72.

Open an SVG, or try the sample, to see the size of the DXF.

How to convert an SVG to DXF

  1. Drop the SVG on the box above, or click Open an SVG. The file is read in this browser tab and never uploaded.
  2. Check the size under Size of the drawing. When the SVG gives its size in millimetres or inches, the DXF keeps that size at a scale of 1.
  3. Choose Millimetres or Inches for the DXF. To resize the drawing, type a scale, or type the width you need and the scale follows.
  4. Click Download DXF.

To try the steps first, click Try a sample. The sample is a flat bracket 120 mm wide, with four holes, a slot turned 30 degrees and a teardrop cut-out.

What the DXF holds

The converter writes ASCII DXF R12, the version that Autodesk's header reference lists as AC1009. The file holds these entities:

The origin of the DXF is the lower-left corner of the SVG page, so drawings taken from one page line up when you open them together. When the SVG sets no page size, the origin is the lower-left corner of the drawing.

How the converter reads the size of an SVG

An SVG places shapes in user units. The root element's width, height and viewBox set the size of a user unit: the viewBox is a rectangle in user units that maps onto the width and height. When those are in millimetres or inches, the size is exact, and a 100 mm square stays 100 mm at a scale of 1.

When the width and height are in pixels, or missing, the converter needs the length of a pixel. CSS defines an inch as 96 pixels, and Inkscape moved from 90 to 96 pixels per inch in version 0.92 to match the CSS standard. Some programs still write one pixel per point, which is 1/72 inch. A thread on Adobe's Illustrator forum traces SVGs that open at 75% of their size in laser software to that difference. If a DXF comes out at three quarters of the size you expect, choose 72 under Pixels per inch.

Before you cut anything, check one dimension that you know against the width shown in the results.

What the converter leaves out

The converter applies the simple CSS rules in a style element: rules for a tag, a class or an id. Rules with other selectors are ignored, so check the colours of a file that styles shapes in more elaborate ways.

Quote the parts in the drawings customers send

Tell Derik how requests for quote reach your estimators and which files they price from. He will tell you what a four-week build would cover.

Start a conversation

From a DXF to the price of a cut part

A laser, plasma or waterjet quote starts from two numbers in the DXF: the length of every cut and the number of pierces. The Fabricator's guide to estimating gives cutting time as the cut length over the cutting speed, plus the pierces times the pierce time. Open the DXF in the DXF viewer to get both numbers, the weight of the part and a cutting cost from your own feed rate and shop rate.

An estimator who quotes cut parts every day repeats those steps for each drawing in each request. ThriveAI builds quoting systems that read each request with the drawings attached, measure the parts and draft the quote from the shop's own rates, for an estimator to approve. The AI quoting software offer describes the build.

Questions

How do I convert an SVG file to DXF?
Open the SVG on this page, check the size the page shows, choose millimetres or inches, and click Download DXF. The conversion runs in your browser, with no signup and no upload. Circles and arcs stay true arcs, and other curves become short straight segments within 0.01 mm of the curve.
Why is my DXF the wrong size?
The SVG most likely gives its size in pixels, and the program that wrote it counts a different number of pixels per inch. Browsers and Inkscape count 96. A program that counts 72 gives a DXF at 75% of the size you expect, so choose 72 under Pixels per inch, or type the width you need.
Does the DXF keep circles and arcs?
Yes. Circles become CIRCLE entities, and circular arcs become polyline segments with a bulge, which CAD and CAM programs read as true arcs. Ellipses and freeform curves are cut into short straight segments within 0.01 mm of the curve.
Can I convert the text in an SVG to DXF?
Not as text. Text elements are left out and counted in the results. Convert the text to paths in your editor first, with Object to Path in Inkscape or Create Outlines in Illustrator, and the letters come across as shapes.
Which DXF version does the converter write?
ASCII DXF R12, which Autodesk lists as version AC1009. The file holds LINE, POLYLINE and CIRCLE entities, with arcs stored as bulges, on the layers from the SVG, and the units in the header. The DXF opens in the DXF viewer on this site.
Is my SVG uploaded?
No. The SVG is read and converted in your browser, and nothing about it is sent to ThriveAI or anyone else. The page counts how often the tool is used, with the number of shapes and layers and the file size, and never records the file, its name or the drawing.

Contact

Quote cut parts from the drawings customers send

Tell Derik how requests for quote reach your estimators and which files they price from. He will tell you what a four-week build would cover.

Prefer to talk? Book a meeting.

Your message goes to Derik Lawlis, the founder.