DXF to PNG Converter

Draw the whole DXF as a PNG, 2048 pixels on its longer side, on white.

or drop files here

DX

DXF Format

Drawing Exchange Format

An Autodesk CAD exchange format used for sharing drawing data with other programs. It can be stored as text or binary.

  • published by Autodesk
  • text or binary encoding
  • group codes paired with values in text form
PN

PNG Format

Portable Network Graphics

A lossless raster image format created as a patent-free successor to GIF. It is standardized as ISO/IEC 15948 and as a W3C Recommendation.

  • lossless compression
  • alpha transparency
  • 1 to 16 bits per sample
  • every major browser shows it

How to convert DXF to PNG

Follow these steps to convert DXF to PNG online.

    1

    Choose your DXF file, or several at once.

    2

    Wait while the converter turns each file into PNG.

    3

    Download each new PNG file. Your original file isn't changed.

What to know before converting DXF to PNG

  • The whole drawing is fitted into one PNG, 2048 pixels on the longer side, on white.
  • TEXT and MTEXT use DejaVu Sans, so labels can differ from the CAD original.
  • White entities are drawn black; layers and editable dimensions are not kept.
  • A browser without WebGL cannot draw the file.

About DXF files

What is a DXF file?

DXF is Autodesk's drawing exchange format, published so that AutoCAD drawing data can move to other programs. The first documentation appeared in 1982. A DXF exists in a text form and a binary form, and a text DXF pairs numeric group codes with values to describe each part of the drawing. New drawing capabilities have added codes and format versions over the years. The registered media type is image/vnd.dxf.

A DXF describes a drawing rather than holding a picture, so a program has to draw it before anyone can look at it. This page makes a PNG from the drawing: a grid of colored pixels.

Programs that open DXF files

Windows, Mac and Linux:

  • LibreCAD reads DXF drawings in its 2D workspace.
  • QCAD Community Edition is a free 2D CAD program with DXF support. Advanced interchange features belong to QCAD Professional.

Windows and Mac:

  • Adobe Illustrator imports DXF from AutoCAD 2.5 through 2007, with unit and scale settings.

Windows:

  • AutoCAD opens it from Open Drawing with DXF chosen in the file-type list.

Web:

  • Autodesk Viewer shows CAD interchange files, DXF included, in the browser.

LibreCAD does not implement every DXF feature and lists support through DXF 2007. Illustrator refuses AutoCAD drawings saved later than the 2007 format, so an older export is needed.

DXF and PNG compared

  • What it holds: a DXF describes a drawing with group codes and values. A PNG holds a grid of colored pixels.
  • Where it opens: every major browser displays PNG. A DXF opens in CAD programs and viewers.
  • Measuring: a PNG has only the picture, with no drawing units, so distances cannot be read from it.

This page draws the DXF in your browser with the dxf-viewer library, which uses three.js and WebGL. The whole drawing is fitted into the picture with a 5 percent margin on a white background. The longer side is 2048 pixels, and the shorter side follows the drawing's proportions but is never under 128 pixels. Entities drawn in white are shown black so they stay visible on the white page. TEXT and MTEXT are drawn in DejaVu Sans instead of the fonts named in the drawing, so labels can differ from the CAD original.

The result is one PNG per file. A browser without WebGL cannot draw the file and says so. A drawing with nothing in it stops with the message "This DXF file has nothing drawn in it."

Other ways to convert DXF to PNG

  • LibreCAD: open the drawing and choose File > Export, which exports the current drawing as a CAM, PDF or image file. The menu reference lists PNG among the supported bitmap formats.
  • QCAD Professional: run dwg2bmp -o plan.png plan.dxf from the command line. The dwg2bmp tool converts a DXF or DWG file into a bitmap file. The -r option sets the resolution in pixels per drawing unit and -b sets the background color. Every QCAD Professional installation includes some command line tools.

Problems with DXF files

  • The image looks empty: the drawing may hold nothing, or the page reports "nothing drawn in it". Open the file in LibreCAD to see whether it has any entities.
  • Labels sit differently: TEXT and MTEXT use DejaVu Sans here, so labels can differ from the original fonts.
  • "This DXF file couldn't be read": the viewer could not parse the file. Try re-exporting it from your CAD program.
  • The browser cannot draw it: WebGL is off or unavailable there. Check that hardware acceleration is on, or try another current browser.
  • A newer DXF fails in Illustrator or LibreCAD: both list support only through the 2007 format, so save an older version.
  • Missing linked files in Illustrator: the import can ask for external references because the drawing points to separate files.
  • Scale and units in Illustrator: moving a CAD drawing into Illustrator needs attention to scale and unit mapping.
  • A big plan comes out small: the picture always has a 2048-pixel long side, so fine detail in a large drawing is easier to inspect by zooming in a CAD program.
  • A line you drew in white: white entities appear black, because the page behind them is white.
  • You need exact distances: send the DXF, because a PNG has no units.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert DXF to PNG?

What size is the PNG?

Why is my drawing black on white?

Why do the labels look different?

Does the PNG keep layers and dimensions?

Can I measure distances on the PNG?

Why does it say the browser can't draw DXF files?

What does "nothing drawn in it" mean?

Can I convert several DXF files at once?

Is my DXF uploaded?