What is a .wmf file?
Windows Metafile · Image · Microsoft · 1990
WMF is an old Windows vector image format that stores a list of drawing commands rather than pixels. It was widely used for clip art in Microsoft Office and can hold both vector shapes and bitmaps.
What is a .wmf file used for?
A Windows Metafile replays a sequence of GDI drawing calls, so it scales like a vector image. A placeable WMF adds a header (starting D7 CD C6 9A) that records the intended size. Its successor is the Enhanced Metafile, EMF.
WMF is mostly seen in legacy Office documents and clip-art sets. Note that WMF and EMF can carry executable drawing records, so treat files from untrusted sources with care.
What opens a .wmf file?
The .wmf format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list.
Windows
- Microsoft Office
- LibreOffice
- IrfanView
- Inkscape
macOS
- LibreOffice
- Inkscape
Linux
- LibreOffice
- Inkscape
- ImageMagick
Open a .wmf file step by step
- Confirm the file really is a .wmf. Drop it into the WhatFileType identifier, which reads its signature in your browser without uploading anything.
- On Windows, open it with Microsoft Office or LibreOffice.
- On Mac, use LibreOffice or Inkscape.
- On Linux, try LibreOffice or Inkscape.
- Still stuck? Convert the .wmf to svg, which opens more widely.
Why can't I open my .wmf file?
Almost always because no installed app understands WMF. Install one of the apps above, or convert the file to a format your existing software already reads. If double-clicking opens the wrong program instead of nothing at all, the file association is set to the wrong app rather than the file being broken.
The other possibility is that the file is not really a .wmf at all. Drop it into the file identifier to check it by its bytes instead of its name. Nothing is uploaded.
How to convert a .wmf file
You can convert a .wmf file to svg, png, emf using a conversion tool or the export menu of an app that opens it.
What is the .wmf file signature (magic bytes)?
A .wmf file starts with the hex bytes D7 CD C6 9A. Programs identify WMF by those bytes, not by the filename, so a renamed file still gives itself away.
These are the documented signatures for WMF. For a full breakdown, see the Windows Metafile file signature page.
| Hex signature | Offset | ASCII | Note |
|---|---|---|---|
| D7 CD C6 9A | 0 | - | placeable WMF |
| 01 00 09 00 | 0 | - | standard WMF |
See the full magic-numbers reference for every format.
Frequently asked questions
What is a .wmf file?
WMF is an old Windows vector image format that stores a list of drawing commands rather than pixels. It was widely used for clip art in Microsoft Office and can hold both vector shapes and bitmaps.
How do I open a WMF file?
Microsoft Office and LibreOffice open WMF, as do Inkscape and IrfanView. Inkscape can convert it to SVG.
What is the difference between WMF and EMF?
EMF (Enhanced Metafile) is the newer 32-bit successor to WMF, with more drawing commands and better fidelity. Both are Windows vector formats.
How do I convert WMF to SVG?
Open the WMF in Inkscape and save as SVG, or use LibreOffice Draw to import and export it.
Related formats
Sources
Details on this page were checked against authoritative references. How sources are ranked and what is deliberately left out is set out in the methodology.