Skip to content

AutoCAD DXF to PNG converter

DXF → PNG gives a quick picture of a CAD drawing for a chat, ticket or listing; detailed plans need a higher dpi than the default to stay legible.

  • Converted with Office engine → Image engine · input deleted within 24 h
  • Free: 5 conversions a day · 5 MB each
  • Higher limits →

From real runs

What you get — and what changes

  • Pixel size Changed

    Drawings are fitted to about 293 pt before rendering, so the floor plan was only 585 × 556 pixels at 144 DPI and 1218 × 1157 at dpi 300.

  • Line work Kept

    Walls, door arcs and fixtures are crisp; PNG keeps one-pixel lines without smearing.

  • Colours Kept

    The schematic's black line work and the floor plan's blue, red, green and cyan layers kept their colours on a white background.

  • Small text Changed

    On the floor plan, room names such as MASTER BEDROOM are a few pixels tall at the default 144 DPI and readable at dpi 300.

  • Dimension figures Lost

    Measurement numbers and MTEXT notes are missing from the image, just as in the PDF route.

  • Area Kept

    The image is trimmed to the drawing extents with a small margin, so there is no empty sheet around the plan.

Sample conversions

House floor plan

Input
1,117,145-byte AutoCAD 2004 DXF.
Output
585 × 556 PNG of 34,610 bytes at the default; 1218 × 1157 and 78,474 bytes with dpi 300, in 0.4 s after the layout step.

Electronics schematic

Input
187,638-byte DXF, 654 polylines and 376 labels.
Output
1223 × 751 PNG of 75,636 bytes with dpi 300.

A real AutoCAD DXF → PNG run

We converted our AutoCAD DXF sample (183 KB) with Office engine → Image engine on 2026-10-20. It took 1.8 s and produced a 29 KB PNG file, 84% smaller than the input. The engine raised 2 warnings, listed below.

Input · sample.dxf · 183 KB

187,638 bytes

Output · sample.png · 29 KB

587 × 361 px, 8-bit, colour type 2

Width
587
Height
361
Encoding
8-bit, colour type 2
  • The drawing is scaled to fit the page, so it no longer prints at its CAD scale.
  • PDF pages rendered as images; selectable text is not preserved.

Options and when to change them

dpi
Use 300 or more for plans and schematics; the default 144 is only enough for simple shapes.
width
Ask for an exact width such as 2000 pixels; the drawing redraws at that size, so it stays sharp.

Do it yourself

ezdxf (Python)

bash
pip install ezdxf matplotlib && ezdxf draw --background WHITE --dpi 150 -o plan.png plan.dxf

Renders the dimension figures and notes; leave out --background WHITE for the dark CAD-screen look.

AutoCAD DXF to PNG by API or MCP

The HTTP API and the MCP server run the exact engine this page uses (Office engine → Image engine); the response carries the same warnings the web converter shows. Check support first with GET /api/v1/pairs?from=dxf&to=png.

curl
curl -X POST https://filetypeconverters.com/api/v1/convert \
  -H "Authorization: Bearer $FTC_API_KEY" \
  -F "file=@input.dxf" -F "from=dxf" -F "to=png" \
  -F 'options={"width":0}' \
  --output output.png

Options this engine accepts for AutoCAD DXF → PNG

KeyApplies toTypeDefault
widthWriting PNGnumber0
heightWriting PNGnumber0
fitWriting PNGcontain · cover · fillcontain
qualityWriting PNGnumber90
backgroundWriting PNGstring#ffffff
stripMetadataWriting PNGbooleantrue
API reference

When this is the wrong conversion

  • If the image will be zoomed into or printed, DXF → SVG or PDF keeps the drawing as vectors.
  • If someone needs to measure the drawing, send the DXF itself or a scaled plot from CAD.

AutoCAD DXF to PNG questions

Why is my PNG so small?

CAD drawings are fitted to a small page before rendering. Raise dpi or set width, and the plan is redrawn larger with no loss of sharpness.

Can I get a black background like AutoCAD?

Not from this route; drawings are rendered on white. Use the background option of a CAD viewer or ezdxf if you need the dark look.

Does it work with DWG files?

No. Save the DWG as an ASCII DXF in AutoCAD, BricsCAD, LibreCAD or Autodesk's DWG TrueView first.