Free webp to jpg
Image MIME Reference
DWG

AutoCAD Drawing

image/vnd.dwg
VS

Portable Network Graphics (Legacy MIME)

image/x-png
PNG

A complete technical comparison of AutoCAD Drawing and Portable Network Graphics (Legacy MIME) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

PNG wins on browser support

Feature Support

Feature DWG PNG
Transparency (Alpha) Yes Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No Yes
HDR Support ✕ No Yes
EXIF Metadata ✕ No Yes
ICC Color Profile ✕ No Yes
AutoCAD Drawing
image/vnd.dwg
Extension
.dwg
Container DWG Binary Container
Compression Proprietary Binary Compression (LZ77 based in newer versions)
Algorithm
Proprietary (Autodesk ObjectDBX)
Color Depth Vector (True Color / Indexed AutoCAD Color Index)
Developed by Autodesk
Released 1982
Magic Bytes
41 43 31 30 (AC10)
Full DWG reference →
Portable Network Graphics (Legacy MIME)
image/x-png
Extension
.png
Container PNG Chunk Structure (IHDR, IDAT, IEND)
Compression Deflate (Lossless)
Algorithm
Deflate (LZ77)
Color Depth 1-bit to 16-bit (Grayscale), 8-bit (Indexed Palette), 24-bit (True Color), 32-bit (True Color with Alpha), 48-bit (High Color), 64-bit (High Color with Alpha)
Developed by PNG Development Group
Released 1996
Magic Bytes
89 50 4E 47 0D 0A 1A 0A
Full PNG reference →

Browser Support Comparison

Browser DWG PNG
Chrome Chrome
✓ 1
Firefox Firefox
✓ 1
Safari Safari
✓ 1
Edge Edge
✓ 12
IE IE (Legacy)
DWG

DWG Strengths

  • The undisputed industry standard for 2D drafting and basic 3D CAD modeling
  • Highly optimized binary structure keeps file sizes relatively small compared to text-based CAD formats like DXF
  • Supports incredibly complex datasets including external references (XREFs), dynamic blocks, and extensive custom metadata
Limitations
  • It is a closed, proprietary format, making it difficult for third-party developers to support fully without licensing the Open Design Alliance (ODA) SDK
  • Lacks native web or standard operating system previewer support
  • Format versions change frequently (roughly every 3 years), breaking backward compatibility for older CAD software
PNG

PNG Strengths

  • The underlying format provides flawless, lossless compression and perfect 8-bit alpha channel transparency
  • Universally supported by every modern operating system, image editor, and web browser
Limitations
  • The 'image/x-png' string is an obsolete vendor quirk that forces backend developers to write redundant normalization logic in file upload scripts
  • If left unnormalized, strict MIME validators or content security policies on modern systems may incorrectly reject valid PNG files

When to choose which format

DWG
Use DWG when…
  • Architectural Floor Plans
  • Mechanical Engineering Models
  • Civil Engineering Drafts
  • 3D Product Designs
PNG
Use PNG when…
  • Legacy Internet Explorer File Uploads
  • Older ASP/PHP Web Applications
  • Lossless Web Graphics
Share this comparison