Drawing Exchange Format
image/vnd.dxf
Released 1982
· by Autodesk
The image/vnd.dxf MIME type represents the Drawing Exchange Format (DXF), an open CAD data file format developed by Autodesk in 1982. It was created to enable data interoperability between AutoCAD and other computer-aided design (CAD) programs. Unlike the proprietary DWG format, DXF is most commonly stored as an ASCII text file, making it human-readable and universally supported across the CAD, CNC machining, and laser cutting industries.
Technical Specifications
.dxf
None
application/dxfapplication/x-autocadapplication/x-dxfimage/x-dxf
Magic Bytes & HTTP Headers
0\r\nSECTION (ASCII) / AutoCAD Binary DXF\r\n\x1a\x00 (Binary)
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- Universally supported by almost every CAD program, 3D modeler, and vector graphics editor in existence
- ASCII structure is human-readable and can be parsed or generated programmatically with relative ease
- The de facto standard for sending 2D cutting paths to CNC routers, plasma cutters, and laser engravers
- ASCII DXF files can be enormously large and inefficient compared to binary DWG files
- The format relies heavily on legacy AutoCAD data structures, making complex 3D entity parsing extremely difficult for third-party developers
- Lacks native web browser rendering capabilities
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/vnd.dxf
file by reading its raw bytes:
- 1 For ASCII DXF, check the beginning of the text file for the sequence '0' followed by a newline and 'SECTION'. (Note: some DXF files may begin with '999' comment codes).
- 2 For Binary DXF, check the first 22 bytes for the exact sentinel string 'AutoCAD Binary DXF\r\n\x1a\x00'.
Software Support
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/dxf)
<iframe src="https://freewebptojpg.com/mime/image/dxf/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="DXF Specs"></iframe>
JSON API
All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.
GET https://freewebptojpg.com/mime/image/dxf.json
Open JSON
Frequently Asked Questions
What is the difference between DXF and DWG?
DWG is Autodesk's proprietary, binary format optimized for performance and smaller file sizes within AutoCAD. DXF is an open format (primarily ASCII text-based) designed specifically for sharing CAD data across different software applications and manufacturing hardware (like CNC routers).
Is a DXF file a text file or a binary file?
DXF can be both, but it is overwhelmingly encountered as an ASCII text file. The text format consists of grouped codes and values. Autodesk also defined a Binary DXF format that is more compact, but it is rarely used compared to standard ASCII DXF or DWG.
Can I display DXF files in a web browser?
No. Web browsers cannot natively render DXF files. To display a DXF in a web application, developers typically convert it to SVG on the backend or use specialized client-side JavaScript libraries to parse the DXF geometry and render it onto an HTML5 <canvas>.