Free webp to jpg
Image MIME Reference
SVG

Scalable Vector Graphics

image/svg+xml
VS

Windows Metafile

image/x-wmf
WMF

A complete technical comparison of Scalable Vector Graphics and Windows Metafile — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

SVG wins on browser support

Feature Support

Feature SVG WMF
Transparency (Alpha) Yes Yes
Animation Support Yes ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No ✕ No
Scalable Vector Graphics
image/svg+xml
Extension
.svg.svgz
Container XML Document
Compression Uncompressed (Plain Text XML) / Lossless (GZIP via .svgz)
Algorithm
None (for .svg)GZIP (for .svgz)
Color Depth Vector (Independent of bit-depth), CSS Colors (HEX, RGB, HSL, Display-P3)
Developed by World Wide Web Consortium (W3C)
Released 2001
Magic Bytes
3C 73 76 67 (for <svg) / 3C 3F 78 6D 6C (for <?xml)
Full SVG reference →
Windows Metafile
image/x-wmf
Extension
.wmf.emf
Container Windows GDI Metafile Command Stream
Compression Uncompressed (Command Stream)
Algorithm
None
Color Depth Varies based on GDI rendering engine
Developed by Microsoft Corporation
Released 1990
Magic Bytes
D7 CD C6 9A (Aldus Placeable Metafile Header) or 01 00 09 00 (Standard WMF Header)
Full WMF reference →

Browser Support Comparison

Browser SVG WMF
Chrome Chrome
✓ All
Firefox Firefox
✓ All
Safari Safari
✓ All
Edge Edge
✓ All
IE IE (Legacy)
SVG

SVG Strengths

  • Provides infinite resolution scalability, looking perfectly crisp on high-DPI (Retina) displays without increasing file size
  • Extremely lightweight compared to raster formats for flat graphics, logos, and UI elements
  • Can be manipulated dynamically via the browser's CSS and JavaScript engines (DOM integration)
Limitations
  • Unsuitable for complex photographic images or photorealistic textures
  • Poses critical security vulnerabilities (XSS and XML External Entity attacks) if user-uploaded SVGs are not heavily sanitized
  • Rendering performance degrades significantly if the SVG contains tens of thousands of complex nodes or deeply nested paths
WMF

WMF Strengths

  • Infinitely scalable vector format that remains remarkably compact for simple geometric illustrations and charts
  • Historically served as a seamless conduit for copying and pasting vector graphics between disparate Windows applications via the system clipboard
Limitations
  • Notoriously plagued by historic security vulnerabilities, making raw WMF parsing a vector for exploits in legacy software
  • Completely obsolete and unsupported in modern web environments (browsers cannot render them)
  • Strictly tied to the Windows GDI architecture, making cross-platform rendering inconsistent across Linux and macOS

When to choose which format

SVG
Use SVG when…
  • Web Logos & UI Icons
  • Responsive Web Design Elements
  • Interactive Data Visualizations (D3.js)
  • CSS and SMIL Web Animations
WMF
Use WMF when…
  • Legacy Microsoft Office Clip Art and Icons
  • Windows GDI Graphics Export
  • Early Windows Desktop Publishing
Share this comparison