DXF Viewer Online
Open a DXF drawing in the browser and actually work with it: per-layer visibility, distance and area measurement, text search, a section plane and PNG or PDF export. The file is read from your disk with the browser FileReader API and parsed in the tab, so nothing is uploaded, there is no account and there are no usage limits.
Try It Now on a Real DXF
Each link below loads a sample drawing straight into the viewer, so you can judge the rendering quality before you open your own work. Nothing is downloaded to your machine and nothing is sent from it.
Apartment floor plan
Architectural plan with 46 entities across 7 layers — the quickest way to try layer isolation and area measurement on rooms. Open floor-plan-apartment.dxf
Mechanical bracket
A machined part with hole circles and dimension entities, showing how DIMENSION geometry and arcs are drawn. Open mechanical-bracket.dxf
Electrical schematic
Text-heavy drawing, ideal for testing the in-drawing text search against tags and device labels. Open electrical-schematic.dxf
Site plan
Civil layout built from polylines and contour lines, a good check on LWPOLYLINE handling and layer counts. Open site-plan.dxf
Steel beam detail
Structural connection detail with dense line work and hatched regions shown as boundary outlines. Open steel-beam-detail.dxf
A3 title block
A full sheet with border and title block, useful for seeing how a drawing frames up before a PDF export. Open title-block-a3.dxf
More files, including 3D meshes, are in the sample library.
What a DXF File Actually Contains
DXF (Drawing Exchange Format) is Autodesk's documented interchange format for CAD data. It is not a container of pictures; it is a tagged data stream. Every value in the file is preceded by a group code that says what the value means, and the two occupy consecutive lines: the code on one line, the value on the next. Nothing is positional, which is why a parser can read a file written twenty years ago and one written this year with the same loop.
A short excerpt describing a circle on the layer WALLS reads like this in sequence:
| Group code | Value | Meaning |
|---|---|---|
| 0 | CIRCLE | Start of an entity, and its type |
| 5 | 2F1 | Handle — the entity's unique hexadecimal id |
| 8 | WALLS | Layer name the entity belongs to |
| 62 | 3 | Colour number (ACI); absent means inherit from layer |
| 10 / 20 / 30 | 1200.0 / 850.0 / 0.0 | Primary point X, Y and Z — here the centre |
| 40 | 75.0 | A floating point value — here the radius |
The same handful of codes recur everywhere: 0 opens an entity, 2 names things, 8 is always the layer, 10 to 37 carry coordinates, 40 to 48 carry lengths and scale factors, 50 to 58 carry angles, 62 is colour, 70 and above are flag words, and 100 marks a subclass boundary. Learn those and most DXF files become readable in a text editor.
The SECTION structure
Those pairs are grouped into sections. Each one opens with the pair 0 / SECTION followed by 2 / name, and closes with 0 / ENDSEC. The file itself terminates with 0 / EOF.
- HEADER — drawing variables: the units setting, the drawing extents, the last active view, the DXF version code such as AC1032.
- CLASSES — definitions for application-defined classes, present mostly so proxy objects can be described.
- TABLES — the symbol tables: layers with their colours and linetypes, text styles, linetype patterns, views and viewports.
- BLOCKS — named collections of geometry defined once and reused. Dimension geometry also lives here, inside anonymous blocks.
- ENTITIES — the drawable content of model space and paper space. This is the bulk of most files.
- OBJECTS — non-graphical objects: dictionaries, layouts, xrecords, material and plot settings.
- THUMBNAILIMAGE — an optional preview bitmap, ignored by this viewer.
ASCII DXF and binary DXF
Two encodings of the same data exist. ASCII DXF is the plain-text form described above: verbose, diff-friendly, readable in any editor, and typically several times larger than the equivalent DWG. Binary DXF stores the identical group codes and values as packed binary records behind a sentinel string, which is smaller and faster to load but no longer human readable and rarely produced in practice.
This viewer parses ASCII DXF. If your exporter offers the choice — in AutoCAD, Save As and pick a DXF version rather than the binary option — save as ASCII and the file will open here. Note that DXB, an unrelated binary drawing interchange format, is not the same thing and is not supported.
DXF Entities This Viewer Renders
The parser walks the ENTITIES section and the block definitions it references. The table below states exactly what is drawn and how, so you can predict the result before you load a file.
| Entity | What it holds | How it is drawn |
|---|---|---|
| LINE | Two endpoints in 3D | A straight segment in the layer colour |
| CIRCLE | Centre and radius | Tessellated into a smooth closed curve |
| ARC | Centre, radius, start and end angle | Swept counter-clockwise from start to end angle |
| ELLIPSE | Centre, major axis, ratio, parameter range | Full and partial ellipses both render |
| LWPOLYLINE | Compact vertex list with per-segment bulge | Bulges converted to arc segments; closed flag respected |
| POLYLINE / VERTEX | Older heavyweight polyline with separate vertices | Drawn as a connected path, including 3D polylines |
| SPLINE | Control points, knot vector, degree | Evaluated and drawn as a smooth curve |
| TEXT | Single-line text with height, rotation, style | Rendered with a substituted font; found by the text search |
| MTEXT | Multi-line text with inline formatting codes | Rendered as text; the search matches TEXT entities only |
| POINT | A single coordinate | Drawn as a small marker |
| SOLID | Filled triangle or quadrilateral | Rendered as a filled face |
| 3DFACE | Three or four cornered face in 3D | Rendered as a face in solid, wireframe and x-ray modes |
| INSERT | Block reference: name, insertion point, scale, rotation | Block geometry resolved from BLOCKS and drawn at that transform |
| HATCH | Boundary paths plus a pattern definition | Boundary outlines only — pattern lines are not generated |
| DIMENSION | Measurement with geometry in an anonymous block | Exploded into its lines, arrowheads and text |
How to View a DXF File
- Open the viewer — go to dwgvieweronline.com in Chrome, Firefox, Safari or Edge. Install it as a PWA and it will also open files offline.
- Load the drawing — drag the .dxf onto the window or use Browse Files. Parsing starts immediately; there is no upload step to wait through.
- Read the layer panel — every layer is listed with its colour swatch and entity count. Switch layers off to strip a busy drawing back to the geometry you care about.
- Interrogate the geometry — measure a distance or a polygon area, search for a text string, cut through the model with a clipping plane on X, Y or Z, or jump to the top, front and right presets.
- Export or compare — save the current viewport as PNG or PDF, or put two revisions side by side with synchronised navigation in compare mode.
What You Can Do With a Loaded Drawing
Layer panel
Per-layer show and hide with the colour swatch and entity count taken from the TABLES section, so you can see at a glance where the weight of a drawing sits.
Measure
Point-to-point distance and polygon area in drawing units. There is no snapping to endpoints or midpoints, so zoom in before you click if the number has to be exact.
Markup
Arrow, rectangle, circle, text and freehand annotation in red, drawn on a screen-space overlay above the drawing. The DXF itself is never modified.
Text search
Find a room name, a part number or a device tag inside the drawing. Matching is against TEXT entities.
Section and render modes
A clipping plane on X, Y or Z for cutting into 3D content, plus solid, wireframe and x-ray shading and an orthographic or perspective toggle.
Export, compare, embed
PNG and PDF snapshots of the viewport, two-drawing side-by-side comparison with synchronised navigation, and an iframe widget for your own pages.
Known Limitations
These are the cases where the render will not match what you see in a full CAD application. Check them before you rely on an export for anything that matters.
- External references are not resolved. An xref is a pointer to another file, and only the host drawing is shown. Bind or insert the xrefs before exporting the DXF if you need the whole picture.
- Proxy and custom objects do not render. Geometry created by vertical products such as Civil 3D or Advance Steel is stored as custom objects that only those applications understand.
- Custom SHX fonts are substituted. Text is drawn with a standard face, so glyph shapes and string widths will differ from the original sheet.
- Hatches show as boundary outlines. The boundary paths are drawn; the pattern lines and solid fills inside them are not.
- Binary DXF is not read. Save as ASCII DXF instead.
- Measurement has no snapping. Clicks land where the cursor is, not on the nearest endpoint or midpoint.
- PNG and PDF exports are raster snapshots of the viewport, and the PDF page is A4 landscape. Text in the export is not selectable and line work will not stay crisp when zoomed.
- It is a viewer, not an editor. Geometry cannot be modified and nothing can be saved back to DXF.
DXF or DWG?
DWG is AutoCAD's compact native binary format; DXF is the documented text interchange format that carries the same drawing data in a form any application can parse. For the full breakdown of file size, feature coverage and when to send which, read DWG vs DXF. If your file is a DWG, use the DWG viewer instead — it reads AutoCAD R14 to 2026 through a LibreDWG WebAssembly build, also entirely in the browser.
Frequently Asked Questions
How do I view a DXF file online without AutoCAD?
Open dwgvieweronline.com in Chrome, Firefox, Safari or Edge and drag the .dxf file onto the window. The drawing is parsed by JavaScript inside the browser tab, so it appears within a few seconds with its layers listed, and no CAD software is installed at any point.
Is this DXF reader free, and are there file size or usage limits?
It is free with no account, no signup, no paid tier and no watermark on exports, and there is no cap on how many drawings you open. There is no server-side size limit either, because nothing is uploaded. The only practical ceiling is your own hardware: a very large drawing is bounded by the memory the browser tab can allocate.
Is my DXF file uploaded to a server?
No. The file is read from disk with the browser FileReader API and parsed in the tab. There is no server processing step and no copy of your drawing is kept anywhere. You can verify it: the viewer installs as a PWA and opens DXF files with the network disconnected.
Which DXF variants can the viewer open?
It reads ASCII DXF, the tagged plain-text encoding that CAD applications write by default. Binary DXF is not supported, so if your exporter offers the choice, pick an ASCII DXF version. Because the group codes for common entities have been stable across releases, files written by old and current versions both load through the same parser.
Can I convert DXF to PDF or PNG online?
Yes. The PNG and PDF exports capture the current viewport, so whatever you have framed on screen, with the layers you have left visible, is what you get. Be aware that both are raster snapshots and the PDF page is A4 landscape: text in the export is not selectable and line work softens if you zoom deeply into the PDF.
Can I edit a DXF file or save changes back to it?
No. This is a viewer, not a CAD editor: geometry cannot be moved, layers cannot be rewritten in the file, and there is no save-back to DXF. What you can do is annotate over the drawing with the markup tools and export that view as PNG or PDF for review comments.
Other Supported Formats
Open Your DXF File Now
Drop a .dxf into the browser and read it in seconds. No installation, no signup, no upload.
Open DXF Viewer