.WMF

WMF File

Windows Metafile
Ask a question
QUICK ANSWER

A WMF file is a Windows Metafile, a legacy Microsoft vector graphics format that stores drawing commands rather than pixels. On Windows the quickest ways to open it are IrfanView, XnView MP, or inserting it into Word/PowerPoint; on Mac or Linux use LibreOffice Draw or Inkscape. To reuse it today, convert it to SVG (for editing) or PNG (for sharing).

Developer: Microsoft Category: Vector Image Files Open standard MIME: image/wmf
OPENS ON Windows macOS Linux
Related: .EMZ · .CDR · .ODG · .VSDX

On this page

19k+ extensions indexed
Last reviewed Sep 7, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the WMF file format?

.wmf is a vector image file developed by Microsoft, introduced with Windows 3.0 in 1990. Vector graphics are composed of objects and their geometric relations, in contrast to raster graphics which are made of a grid of pixels. The .wmf format also supports raster graphics, albeit in a limited manner - embedded bitmaps (DIBs) can appear alongside GDI drawing commands within the file.

Internally, the format records a sequence of 16-bit Windows GDI commands. The most common variant is the Placeable WMF (Aldus APM), prefixed with a 22-byte header identified by the magic bytes D7 CD C6 9A at offset 0.

The format never gained much popularity compared to other similar formats. It offered limited image scaling capabilities and was cumbersome to use in larger projects, partly because 16-bit signed coordinates cap precision to ±32,767 logical units. Microsoft replaced it with the 32-bit .emf (Enhanced Metafile) in 1993; a GZIP-compressed variant saves as .wmz.

Security & safety

RISK: MEDIUM

A normal WMF contains drawing commands, not macros, so the picture content is passive. The real concern is parser exploits: the 2005-2006 Windows Metafile vulnerability abused the SETABORTPROC metafile record to execute arbitrary code just from viewing a crafted WMF, and GDI metafile parsing has had periodic CVEs since. Keep Windows and Office patched and be cautious with unsolicited .wmf files from unknown senders. A WMF inside an ordinary old Office document is almost always harmless clipart.

Format details

in a nutshell
FULL NAMEWindows Metafileaka Windows Metafile Format, WMF picture
DEVELOPERMicrosoftsince 1990 (Windows 3.0); documented publicly as MS-WMF
MIME TYPEimage/wmf
TYPE16-bit Windows GDI vector image - a recorded sequence of GDI drawing commands (can embed bitmaps)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
D7CDC69A
ASCII
····
A Placeable WMF (the common form, Aldus APM header) starts with DWORD D7 CD C6 9A (0x9AC6CDD7) at offset 0, followed by a 22-byte placeable header, then the standard 18-byte WMF header. A bare (non-placeable) WMF instead begins with 01 00 09 00 (memory metafile) or 02 00 09 00 (disk metafile). The newer 32-bit successor EMF starts with 01 00 00 00 and ' EMF' at offset 40 - a different file type.

Programs that open WMF files

Windows5 apps
IrfanView Free Opens WMF directly via Windows GDI; great for quick view and batch conversion to PNG/JPG.
Inkscape Open-source File > Open imports the WMF as editable vector paths; ideal to recolor/edit and export SVG. Free.
LibreOffice Draw Open-source File > Open the .wmf to view/edit the vectors and export PNG/SVG/PDF. Free.
Microsoft Word / PowerPoint (Microsoft 365) Paid Insert > Pictures > This Device > select the .wmf; Office renders it natively, and right-click > Save as Picture exports PNG/SVG/JPG.
XnView MP Free Open the .wmf and use Save As to convert to PNG/JPG/TIFF.
macOS3 apps
Adobe Illustrator Paid File > Open imports the WMF as editable vector art (best effort; some GDI records may differ).
Inkscape Open-source File > Open the .wmf to view/edit as vectors and export SVG/PNG.
LibreOffice Draw Open-source Best free macOS option - open the .wmf in Draw (its own WMF interpreter, no GDI needed) and export PNG/SVG/PDF.
Linux3 apps
GIMP Open-source Imports WMF via the libwmf interpreter (rasterizes it); use to export PNG/JPG.
Inkscape Open-source File > Open the .wmf to convert the vector data for editing and SVG export.
LibreOffice Draw Open-source Open the .wmf in Draw to view/convert - the most reliable Linux option.

Technical details

deep spec
File type16-bit Windows GDI vector metafile; stores a replayed sequence of GDI drawing commands
EncodingBinary record stream, little-endian byte order
MIME type`image/wmf`; alternatives: `image/x-wmf`, `application/x-msmetafile`
Magic bytes (Placeable WMF)`D7 CD C6 9A` at offset 0 in the Placeable (Aldus APM) variant
Magic bytes (bare WMF)`01 00 09 00` (memory metafile) or `02 00 09 00` (disk metafile)
File structureOptional 22-byte Aldus APM header + 18-byte WMF header + GDI record sequence + EOF record
Coordinate precision16-bit signed integers, ±32,767 logical units per axis
Color depthDevice-dependent; GDI records use palette or RGB values; embedded DIBs support 1-24 bpp
Embedded bitmapsDevice-independent bitmaps (DIBs) can be included within the GDI record stream alongside vector records
CompressionNone; GZIP-compressed variant is `.wmz`
Checksum16-bit XOR checksum field in the Aldus APM placeable header only
Successor format`.emf` (Enhanced Metafile), 32-bit GDI replacement since Windows NT 3.1 (1993)
Platform supportWindows (native GDI); macOS and Linux via Inkscape, LibreOffice Draw, Adobe Illustrator
Security note`SETABORTPROC` escape record vulnerability permitted arbitrary code execution; widely exploited in 2005-2006
Released1990 (Windows 3.0); documented publicly as MS-WMF
Latest versionMS-WMF specification (format frozen; superseded by EMF)
Open standardYes · royalty-free
Specificationlearn.microsoft.com

WMF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with WMF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about WMF files.

Frequently asked questions

How do I open a WMF file?
On Windows, open it in free IrfanView/XnView, in Inkscape, or insert it into Word/PowerPoint (Insert > Pictures). On Mac/Linux use LibreOffice Draw or Inkscape (free). To edit the vectors, use Inkscape or Illustrator.
How do I convert WMF to SVG or PNG?
For SVG (editable vector), open the WMF in Inkscape or LibreOffice Draw and export SVG. For PNG, use IrfanView/XnView Save As, or export PNG from Inkscape/LibreOffice Draw at a high enough resolution.
What is the difference between WMF and EMF?
WMF is the older 16-bit Windows Metafile (since Windows 3.0, 1990); EMF is its 32-bit successor (since Windows NT 3.1, 1993) with more drawing commands, better precision and device independence. EMF is preferred; WMF is legacy.
What is WMZ?
WMZ is simply a WMF compressed with GZIP (like SVGZ vs SVG). Rename it to .wmf.gz and decompress with 7-Zip/gunzip to get the plain WMF back, losslessly.
Can I open a WMF file on a Mac?
Nothing built-in reads it well. Install LibreOffice (free) and open it in Draw, or use Inkscape - both have their own WMF interpreters and can export PNG/SVG/PDF. Adobe Illustrator also imports WMF.
Is a WMF a vector or raster image?
Usually vector - it stores drawing commands and scales - but WMF records can embed bitmaps, so some WMF files are effectively wrapped raster images.
Are WMF files dangerous?
Old WMF parsing had a serious code-execution flaw (2005-2006), so a crafted WMF could be risky on an unpatched system. On a patched Windows, ordinary WMF clipart is safe; just avoid opening unsolicited ones from unknown sources.

References

1Microsoft Open Specifications - MS-WMF: Windows Metafile Formatlearn.microsoft.com
2Wikipedia - Windows Metafileen.wikipedia.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.MDMarkdown Document
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.EXEWindows Executable (Portable Executable)

Related extensions

.EMZWindows Compressed Enhanced Metafile
.CDRCorelDRAW image / drawing
.ODGOpenDocument Graphics (Drawing)
.VSDXMicrosoft Visio Drawing (2013+)
.AIAdobe Illustrator Artwork
.EPSEncapsulated PostScript

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z