1. Home
  2. Files & Archives
  3. DWG & DXF Viewer

DWG & DXF Viewer

Open AutoCAD drawings without CAD software, zoom in and toggle layers.

Runs in your browser · No upload

How to use

  1. Drop a DXF file or click to choose one. Both ASCII and binary DXF are read.
  2. Drag to pan, and use the mouse wheel or a two-finger pinch to zoom. Double-click fits the whole drawing. On the keyboard, arrow keys pan, + and - zoom, and 0 fits all.
  3. Use the layer list to switch layers on and off. The number next to each color swatch is how many entities were drawn on that layer.
  4. Turn on Measure distance and click two points on the drawing to see the distance and the horizontal and vertical difference in drawing units. Hovering shows the drawing coordinates at the bottom left.
  5. Save PNG (current view, or the whole drawing at 2K, 4K or 8K) or SVG.

If you open a DWG file, the tool shows file information instead of the drawing. See “Why DWG is not opened” below.

What is drawn and what is not

Entity Handling
LINE, LWPOLYLINE, POLYLINE Lines and polylines. Bulge segments are expanded into arcs
CIRCLE, ARC, ELLIPSE Curves approximated with a point every 3°
SPLINE A B-spline when the knot data is complete, a smooth curve through fit points otherwise, or the control polygon (weights are ignored)
TEXT, MTEXT Format codes (\P line break, {\f...;} font, \H height, %%c ⌀ and so on) are cleaned up and the text is drawn in a generic font, honoring height, rotation and alignment
INSERT Blocks are expanded recursively with scale, rotation and row/column arrays. Circular references and nesting deeper than 12 levels stop
DIMENSION The block that the dimension references is drawn
HATCH Solid fills are filled; patterned hatches show their boundary only
SOLID, POINT Filled quads and triangles, and points

Not supported: the DWG drawing itself, 3D solids and meshes, external references (XREF), SHX font shapes (a generic font is used instead), line types (dashed lines are drawn solid) and attached images. Entities that could not be drawn are listed by type and count. Only model space is drawn; a layout (paper space) is drawn only when model space is empty.

Colors and line weights

  • Both AutoCAD color numbers (ACI 0–255) and true color are read. ACI 1 is red (#ff0000), 2 yellow, 3 green, 4 cyan, 5 blue, 6 magenta, and 7 is white/black.
  • ACI 7 follows the background: white on the black background, black on the white one. Very dark (or very light) colors that would disappear into the background are swapped the same way.
  • BYLAYER uses the layer color; BYBLOCK uses the color of the INSERT that placed the block. Entities on layer 0 inside a block follow the layer of that INSERT.
  • Lines are 1 px by default. Real line weights applies the weight set on each entity (1/100 mm), limited to 1–8 px.

How curves are drawn | bulge

Each polyline vertex can carry a bulge value that describes the arc to the next point. The bulge is the tangent of a quarter of the arc’s included angle. A bulge of 1 is a 180° half circle, and about 0.4142 (tan 22.5°) is a 90° arc. A positive bulge runs counter-clockwise. With start (0,0), end (2,0) and bulge 1 you get a half circle with center (1,0) and radius 1, bulging below the chord because the sign is positive.

Why DWG is not opened

DWG is Autodesk’s proprietary format with no official public specification, and there is no freely licensed parser that fits a browser (the widely used LibreDWG is GPL). So this tool does not interpret DWG drawings. It reads two things only.

Header string AutoCAD version
AC1015 2000
AC1018 2004
AC1021 2007
AC1024 2010
AC1027 2013
AC1032 2018 and later

The second is the embedded preview image. DWG files from R13 onward record where the preview is stored in the header; PNG and BMP previews are shown as they are (WMF cannot be displayed). The preview is a snapshot from the last save, so it can differ from the drawing. For the full drawing, use Save As → DXF in your CAD program and open that file here.

Non-ASCII DXF and large drawings

DXF files saved by older Korean-locale software ($DWGCODEPAGE ANSI_949) use CP949 rather than UTF-8. When a file cannot be read as UTF-8 it is decoded as CP949 so layer names and text are not garbled. Very large drawings (more than 600,000 shapes or about 4 million points) are drawn in part and the tool says so. PNG export is reduced to stay within the browser canvas limit (about 16.8 million pixels): a square drawing requested at 8K is saved at 4096×4096 px, while a 2:1 drawing saved at 2K is 2048×1024 px.

Your files are processed only in your browser and are never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.