DXF to JPG Converter

Render a DXF drawing as a JPG picture in your browser.

or drop files here

DX

DXF Format

Drawing Exchange Format

A CAD data exchange format introduced by Autodesk in 1982 to share drawings between AutoCAD and other programs. It can be stored as text or binary.

  • 2D and 3D geometry
  • Layers
  • Text or binary encoding
  • Documented by Autodesk
JP

JPG Format

JPEG image

A lossy raster format for photographs, defined by the Joint Photographic Experts Group. .jpg and .jpeg are the same format.

  • Lossy compression
  • Raster pixels
  • No alpha transparency
  • Supported everywhere

How to convert DXF to JPG

Follow these steps to convert DXF to JPG online.

    1

    Choose your DXF file, or several at once.

    2

    Wait while the converter turns each file into JPG.

    3

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

What to know before converting DXF to JPG

  • The drawing is rendered with WebGL on a white background.
  • The longer side is 2048 pixels, and no side goes over 4096.
  • TEXT and MTEXT entities are set in DejaVu Sans.
  • A browser without WebGL cannot render it and says so.
  • Several DXF files convert in turn, one JPG each.

About DXF files

What is a DXF file?

DXF, Drawing Exchange Format, is a format Autodesk publishes to exchange AutoCAD drawing data with other programs. The first DXF documentation appeared in 1982, and the media type registered for it is image/vnd.dxf.

A DXF is either text or binary. The text kind is a long run of group codes, every one followed by its value. New drawing capabilities have introduced additional codes and format versions.

DXF is used to exchange CAD drawings, for CNC, laser cutting and plotting work, and for architectural and engineering drawings. It carries 2D and 3D geometry and layers.

JPEG is the output here: a raster image format with lossy compression, the Joint Photographic Experts Group standardized it in ISO/IEC 10918-1. It fits web photos, pictures from cameras, emailed attachments and photo sharing, with a quality that can be set.

Programs that open DXF files

Inkscape and FreeCAD also open DXF. The fact sheet for the format lists these programs by platform:

Windows, Mac and Linux

  • LibreCAD: opens DXF drawings in its 2D CAD workspace.
  • QCAD Community Edition: a free 2D CAD application that supports DXF; QCAD Professional is where advanced interchange features live.

Windows and Mac

  • Adobe Illustrator: brings in DXF written by AutoCAD releases 2.5 to 2007, and offers unit and scale settings.

Windows

  • AutoCAD: use Open Drawing and select DXF in the file-type list.

Web

  • Autodesk Viewer: Autodesk offers browser viewing for CAD interchange files, DXF among them.

DXF and JPG compared

  • Extensions and media types: .dxf has the registered type image/vnd.dxf. JPEG takes the ending .jpg or .jpeg.
  • Kind: DXF exchanges AutoCAD drawing data. JPEG is a raster format designed for photographs.
  • Geometry: layers, flat shapes and 3D shapes can all live in a DXF. This page makes one flat picture of the drawing.
  • Transparency: JPEG has no alpha transparency, and this page draws on white.
  • Output size: the JPG is 2048 pixels on its longer side, and no side goes over 4096 pixels.
  • Fonts: TEXT and MTEXT are set in DejaVu Sans, whichever font your drawing names.

The page uses the dxf-viewer library, which draws with three.js and WebGL. It paints the drawing on a white background and scales it to 2048 pixels on the longer side, with no output side over 4096 pixels. TEXT and MTEXT objects are set in DejaVu Sans. The picture is then encoded like any other image. If your browser has no WebGL, the page says it is unavailable. Nothing is uploaded, and your DXF is not changed. Pick several drawings and they convert in turn, one JPG each, named after the DXF with the .jpg ending.

The pixel size comes from the page, not from the drawing's units. The longer side is always set to 2048 pixels, so a small part and a large site plan end up at the same picture size. The page has no size setting, so use the CAD program or one of the methods below if you need a specific size.

Other ways to convert DXF to JPG

  • LibreCAD (Windows, Mac, Linux): open the DXF and choose File > Export. The list of image formats includes JPEG.
  • LibreOffice Draw: LibreOffice's guide lists AutoCAD Interchange Format (*.dxf) among the formats Draw opens, and lists JPEG among the graphics formats Draw exports.
  • QCAD Professional (command line): run dwg2bmp -o plan-review.jpg -x 2400 plan-review.dxf to render a picture 2400 pixels wide. The tool reads DXF or DWG, and QCAD's page lists it as dwg2bmpPRO in Professional installs.

Problems with DXF files

  • LibreCAD misses features: it does not implement every DXF feature, and it lists supported versions through DXF 2007.
  • Illustrator refuses the file: drawings saved after the 2007 AutoCAD format are rejected, so you need an older export.
  • Illustrator asks for missing files: a drawing that points at separate files can make the import ask for those missing external references.
  • The scale is wrong in Illustrator: scale and unit mapping need attention when moving a CAD drawing there.
  • The page says WebGL is unavailable: try another browser or device.
  • This JPG does not match another program's output: identical quality settings in different programs do not assure identical compression or looks.
  • Lettering looks different: text objects of both kinds use DejaVu Sans here, so the typeface may not match your CAD view.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert DXF to JPG?

What size is the JPG?

Which text font appears in the JPG?

Why does the page say WebGL is unavailable?

Does it draw 3D drawings?

Is my DXF uploaded?

What is a DXF file?

Which programs open DXF?

Why is the JPG blurry when I zoom in?

Will my DXF file be changed?