Windows Metafile
image/x-wmf
Released 1990
· by Microsoft Corporation
The image/x-wmf MIME type represents the Windows Metafile (WMF) format, a native vector image format introduced by Microsoft in the early 1990s for the Windows operating system. As a 16-bit metafile, WMF files store images as a sequence of Graphics Device Interface (GDI) function calls and commands rather than static pixel grids. This allows the vector shapes, lines, and text to scale infinitely without losing quality. It was widely used in early versions of Microsoft Office (such as Word and PowerPoint) for clip art and vector graphics. Due to inherent architectural security vulnerabilities in how early Windows systems parsed GDI commands, and its supersession by the more robust Enhanced Metafile (EMF) format, WMF is largely obsolete and deprecated for modern web and application development.
Technical Specifications
.wmf.emf
None
image/wmfapplication/x-msmetafileapplication/wmf
Magic Bytes & HTTP Headers
\xD7\xCD\xC6\x9A or \x01\x00\x09\x00
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Supported | Legacy |
Advantages & Limitations
- 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
- 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
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/x-wmf
file by reading its raw bytes:
- 1 Many WMF files begin with an Aldus Placeable Metafile (APM) header. Check the first 4 bytes for the signature Hex: D7 CD C6 9A.
- 2 If the file does not have an APM header, standard 16-bit WMF files typically begin with the record type and version header, starting with Bytes Hex: 01 00 09 00 or 02 00 09 00.
- 3 Because WMF files execute GDI rendering commands, security systems frequently flag them if received via untrusted public file uploads due to historical remote code execution vulnerabilities.
Software Support
ImageMagick
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/wmf)
<iframe src="https://freewebptojpg.com/mime/image/wmf/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="WMF 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/wmf.json
Open JSON
Frequently Asked Questions
What is a WMF file?
A WMF (Windows Metafile) file is a legacy vector graphics format created by Microsoft. Instead of storing pixels like a JPEG or PNG, it stores a list of drawing commands (like 'draw a line here' or 'fill a rectangle with blue') using the Windows GDI API.
What is the difference between WMF and EMF?
WMF is an older 16-bit format designed for 16-bit versions of Windows (like Windows 3.1). EMF (Enhanced Metafile) is its 32-bit successor, introduced with Windows 95, which supports more advanced GDI commands and better device independence.
Can I display WMF files on a modern website?
No. Modern web browsers do not natively support WMF or EMF files. To display them on a website, you must convert them to SVG, PNG, or WebP using graphics libraries or conversion tools like LibreOffice or ImageMagick.