File Extension File Extension Guide

What is a WMF File?Vector Image

A guide to the .wmf extension, the Windows Metafile format. What a WMF file stores, how it records graphics as GDI commands, how it compares to EMF, and how to open and convert one to SVG, PNG or PDF.

Windows Metafile 📐 Vector Graphics 🪟 Microsoft Windows 🖼️ Image Format
.WMF

Windows Metafile

Type:Vector image
Extension:.wmf
MIME:image/wmf
Developer:Microsoft
Successor:EMF

📖 What is a WMF File?

A WMF file is a Windows Metafile, an image format Microsoft built for Windows that stores a picture as a list of drawing instructions rather than a grid of pixels. That makes it a vector image, one that can be resized without going blurry, much like an SVG file.

The name stands for Windows Metafile, and the word metafile is the clue to how it works. Instead of recording the colour of every pixel, the file records the steps needed to draw the picture, such as draw a line here or fill this shape with that colour. When you open a WMF file, Windows follows those steps to paint the image on screen. Because the picture is described as instructions, it stays sharp at any size.

WMF dates from the early days of Windows and was for years the built-in graphics format for Microsoft Office, so a lot of older clip art and Office artwork arrives as WMF files. It can also tuck a bitmap picture inside alongside its drawing steps, though it is first and foremost a vector format. A newer relation called EMF later took over for most jobs, but WMF files are still common, and they open and convert without much fuss.

Key Characteristics

  • A vector image stored as drawing steps
  • Made by Microsoft for Windows
  • Resizes cleanly without blurring
  • Common in Office clip art and artwork

Good to Know

  • Metafile means a recording of drawing commands
  • Can also hold a bitmap picture inside
  • EMF is its newer, larger successor
  • Converts well to SVG, PNG or PDF
💡 Why it matters: A WMF file stores a picture as instructions, not pixels, so it stays crisp at any size and converts neatly to a modern vector format like SVG.

⚡ Quick Facts

File Extension.wmf
Full NameWindows Metafile
Format TypeVector graphics, can embed a bitmap
DeveloperMicrosoft
MIME Typeimage/wmf
IntroducedWindows 3.0, 1990
SuccessorEMF, the Enhanced Metafile
Compressed As.wmz

⚙️ How a WMF File Works

The idea behind a WMF file is worth understanding, because it explains both its strengths and its quirks. At heart it is a recording of graphics commands that Windows knows how to play back.

Windows has a built-in drawing system called the Graphics Device Interface, usually shortened to GDI, which every program uses to put shapes, lines and text on screen. A WMF file simply stores a list of those GDI commands in order, so opening the file is a matter of Windows replaying the recorded commands one by one to rebuild the picture. This is why the format is called a metafile, since it holds a description of how to draw the image rather than the finished image itself. It also explains why WMF is tied so closely to Windows, as the commands it stores are the very ones Windows uses to draw.

💡 A recording of drawing steps: A WMF file is a list of Windows GDI commands. Opening it replays those commands to redraw the picture, which is why the image stays sharp and why the format grew up alongside Windows.
How a WMF file becomes a picture The .wmf file Header set pen colour move to point draw a line fill a shape ... Windows GDI replays each step Sharp picture Shapes, not pixels, so it stays crisp at any size

🔬 Inside the File

Looking at the shape of a WMF file makes the metafile idea concrete. The file is a header followed by a run of records, and each record is one drawing command.

The layout of a Windows Metafile

Header            # size, type and a few details
Record            # set the pen colour
Record            # move to a point
Record            # draw a line to another point
Record            # fill a shape
...               # one record per drawing step

Each record holds a single GDI function call with its values, so the file reads almost like a to-do list for the screen. A common variant known as a placeable WMF adds a small extra header at the front that records the intended size and position, which helps other programs place the image correctly. This placeable form starts with a recognisable signature, the bytes D7 CD C6 9A at the very beginning, which lets software identify a WMF reliably by its content rather than trusting the file name alone. This simple structure is easy for software to read, which is part of why so many graphics tools can open WMF files even outside Windows.

📐 Why Vector Matters

The single most useful thing to know about a WMF file is that it is mainly a vector image, and that word carries real practical weight.

A vector image is built from shapes and lines described by maths, so it can be scaled to any size and stay perfectly crisp, whether shrunk to an icon or blown up to fill a poster. A pixel-based image, by contrast, is a fixed grid of dots that turns blocky when enlarged. This is why WMF was a natural fit for clip art and logos that needed to appear at many sizes, and why the best way to convert one for modern use is often to another vector format such as SVG, which keeps that same freedom to resize. When you do need a pixel image, WMF converts to PNG or JPG just as easily, though you then fix the picture at one size.

Scales

Scales Cleanly

Resize to any dimension and the lines and shapes stay sharp, never blocky.

Small

Compact for Line Art

Storing steps rather than pixels keeps simple drawings small in size.

SVG

Maps to SVG

Being vector, it converts naturally to SVG for use on the modern web.

⚖️ WMF vs EMF

You will often see WMF mentioned alongside EMF, and knowing how they relate clears up a lot. EMF is the newer format that Microsoft built to replace WMF.

WMF is the original sixteen-bit format from the early days of Windows, while EMF, the Enhanced Metafile, is its thirty-two-bit successor introduced a few years later. EMF fixed several of WMF's limits, adding fuller colour support, a proper header and device independence, meaning a picture looks the same whatever screen or printer shows it. Both work the same basic way, as a header followed by recorded GDI commands, so the jump from one to the other is an upgrade rather than a rethink. In everyday terms WMF is the older, simpler file you still meet in old clip art, and EMF is the richer format that modern Office artwork tends to use. A compressed EMF carries the .emz extension, just as a compressed WMF uses .wmz.

TraitWMFEMF
IntroducedWindows 3.0, 1990Windows NT, 1993
Architecture16-bit32-bit
Device independent~ Limited Yes
Colour support~ Basic Fuller
Compressed form.wmz.emz

📂 How to Open a WMF File

Opening a WMF file is easy on Windows and quite doable elsewhere, and the right tool depends on whether you only want to view it or also to edit it.

The quickest way to see a WMF file without installing anything is the Univik File Viewer, which opens the image straight in your browser. On Windows, image tools such as IrfanView open WMF files directly through the built-in graphics system, and Microsoft Office apps like Word and PowerPoint have long shown them as well. If you want to edit the shapes rather than just look, a vector editor is the tool to reach for, and Inkscape imports a WMF as editable paths you can recolour and reshape, while LibreOffice Draw opens them too. On a Mac, where WMF is not native, the simplest route is to view or convert it with a tool that understands the format rather than expecting it to open by double-click.

1

View in a browser

The Univik File Viewer shows a WMF instantly with nothing to install.

2

Open on Windows

IrfanView, Word and PowerPoint display WMF files using the built-in graphics system.

3

Edit the vectors

Inkscape or LibreOffice Draw import a WMF as editable shapes you can change.

🔄 How to Convert It

Because WMF is an older Windows format, converting it to something more widely supported is one of the most common things people want to do, and it is straightforward.

The easiest path is the Univik File Converter, which turns a WMF into a modern format in your browser without any software to set up. For most uses the best target is SVG, since both WMF and SVG are vector formats, so the picture keeps its ability to scale cleanly and works everywhere on the modern web. When you need a plain picture instead, converting to PNG gives a lossless image with transparency, and JPG suits photo-style artwork at a smaller size, though both fix the image at one resolution. PDF is a good choice when the drawing is bound for print or a document. Whichever you pick, converting from WMF is quick, and keeping the original file means you can always convert again to a different format later.

What to convert a WMF file to .wmf SVG editable, scales for the web best default PNG plain picture, transparency JPG small, photo style images PDF print or a document The original .wmf stays untouched, so you can convert again anytime
💡 Aim for SVG when you can: Since WMF is a vector format, converting to SVG keeps the picture sharp at any size. Choose PNG or JPG only when you specifically need a fixed-size pixel image.

🗂️ Where WMF Is Used

WMF turns up in a few recognisable places, almost all of them tied to Windows and Microsoft Office over the years.

Its best-known home is Office clip art, the ready-made drawings that shipped with Word, PowerPoint and Publisher for decades, most of which were stored as WMF or its successor EMF. Because these are vector pictures, you could drop one into a document and resize it freely, and in Office you could even ungroup the artwork to recolour individual shapes. Beyond clip art, WMF was a handy way to move a drawing between Windows programs, since almost every Windows application could read and write it through the shared graphics system. You still meet WMF files today mainly when opening older documents, templates and clip art collections, which is why knowing how to view and convert them remains useful.

⚠️ Limitations

WMF is a capable old format, but it carries a few limits that are worth knowing before you rely on it for anything new.

Its sixteen-bit design caps how precisely it can place things and how rich its colour can be, which is part of why EMF replaced it. It stores colour only as plain RGB, so the print-focused CMYK colour used in professional design is lost when a picture is saved as WMF, and it cannot embed fonts, so text can shift if the right font is missing. Being so closely tied to Windows, it is also less at home on other systems, where you generally convert it rather than open it directly. None of this is a problem for viewing or converting the WMF files you already have, but for creating new artwork a modern vector format such as SVG is usually the better choice.

⚠️ An older format: WMF is fine for viewing and converting existing files, but its age shows in limited colour and precision. For new vector artwork, a current format like SVG is the stronger option.

🛡️ Is a WMF File Safe?

A question that often comes up with WMF is whether the files are safe to open, and the honest answer is that they are low risk today but carry a piece of history worth knowing.

A WMF file holds drawing data rather than a program, so in normal use it cannot run code and is treated as low risk. The history is that back in 2005 a serious flaw was found in how older, unpatched versions of Windows processed metafiles, where a specially crafted file could trick the system into running harmful code. Microsoft fixed this with updates long ago, and modern, up-to-date systems are not exposed to it. The sensible habits that follow are ordinary ones. Keep your system updated, and treat a WMF from an unknown email or website with the same caution you would give any unexpected attachment, since a file's real type is set by its contents rather than its name. For the everyday WMF files you already have from documents and clip art, opening and converting them is routine and safe.

⚠️ Low risk, with one caveat: A WMF holds picture data, not a program, so it is low risk on a patched system. The 2005 metafile flaw was fixed long ago, but as with any file, treat one from an untrusted source with care.

🏛️ A Short History

WMF arrived with Windows 3.0 around 1990 as a sixteen-bit way to store and share graphics, and it quickly became the standard picture format inside Microsoft Office.

As Windows moved to thirty-two-bit systems, WMF's limits started to show, so Microsoft introduced EMF, the Enhanced Metafile, in 1993 to carry richer colour and work the same across screens and printers. A further extension called EMF+ later added even more modern drawing features. Through all of this WMF stayed in use for its simplicity and its huge library of existing clip art, and it remains a format you meet whenever you open older Windows documents and artwork. Its long life is a sign of how neatly the metafile idea, storing a picture as drawing steps, fitted the way Windows works.

❓ Frequently Asked Questions

A WMF file is a Windows Metafile, an image format Microsoft created for Windows that stores a picture as a list of drawing instructions rather than a grid of pixels. That makes it a vector image, which can be resized to any dimension and stay sharp, much like an SVG file. Instead of recording each pixel, it records Windows GDI commands, the steps the system uses to draw shapes and lines, and opening the file replays those steps to rebuild the picture. WMF was for years the built-in graphics format for Microsoft Office, so a lot of older clip art and Office artwork comes as WMF files.

The quickest way with nothing to install is an online viewer such as the Univik File Viewer, which shows the image straight in your browser. On Windows, image tools like IrfanView open WMF files directly through the built-in graphics system, and Office apps such as Word and PowerPoint display them too. To edit the shapes rather than just view them, a vector editor is the tool to use, and Inkscape imports a WMF as editable paths while LibreOffice Draw opens them as well. On a Mac, where WMF is not native, the simplest approach is to view or convert it with a tool that understands the format.

The easiest route is an online converter such as the Univik File Converter, which turns a WMF into a modern format in your browser with nothing to set up. For most uses the best target is SVG, since both are vector formats, so the picture keeps its ability to scale cleanly and works everywhere on the web. When you need a plain picture instead, PNG gives a lossless image with transparency and JPG suits photo-style artwork at a smaller size, though both fix the image at one resolution. PDF is a good choice for print or documents. Keeping the original WMF means you can always convert again later.

WMF is the original sixteen-bit Windows Metafile from the early days of Windows, while EMF, the Enhanced Metafile, is its thirty-two-bit successor introduced a few years later. EMF fixed several of WMF's limits, adding fuller colour, a proper header and device independence, so a picture looks the same on any screen or printer. Both work the same basic way, as a header followed by recorded GDI commands, so EMF is an upgrade rather than a redesign. In practice WMF is the older, simpler file you meet in old clip art, and EMF is the richer format modern Office artwork tends to use. A compressed EMF uses the .emz extension, as a compressed WMF uses .wmz.

A WMF file is mainly a vector image, meaning it is built from shapes and lines described by maths rather than a fixed grid of pixels, letting it scale to any dimension while staying perfectly crisp. It can, however, also hold a bitmap picture tucked inside alongside its drawing commands, so a given WMF may mix vector shapes with an embedded raster image. In the great majority of cases, though, you can treat a WMF as a vector graphic, which is why converting one to SVG keeps its quality and why it was so well suited to clip art that needed to appear at many sizes.

WMF is tied closely to Windows because it stores Windows GDI commands, the very instructions the Windows graphics system uses to draw. That means Windows can replay them directly, while other systems need software that understands the format to interpret those commands. It is not that the file is locked to Windows, simply that non-Windows tools have to translate it. The practical answer on a Mac or Linux machine is to use a viewer or converter that supports WMF, or to convert the file to a widely supported format such as SVG or PNG, after which it opens anywhere.

Yes, and because it is a vector format you can edit the actual shapes, not just crop or paint over a picture. A vector editor such as Inkscape imports a WMF as editable paths, letting you move, recolour and reshape the individual lines and fills, and LibreOffice Draw can open them too. In Microsoft Office you can often ungroup WMF clip art into its separate shapes to recolour parts of it. If you plan to keep editing the artwork, a common step is to convert the WMF to SVG first, which gives you a modern vector file that every current design tool understands.

In normal use they are low risk, because a WMF holds picture data rather than a program, so it cannot run code by itself. The reason the question comes up is a well-known flaw from 2005, when older, unpatched versions of Windows could be tricked by a specially crafted metafile into running harmful code. Microsoft fixed that long ago, and a modern, updated system is not exposed to it. The sensible habits are the ordinary ones. Keep your system up to date, and treat a WMF from an unknown email or website with the same care as any unexpected attachment. For the everyday WMF files you already have from documents and clip art, opening them is routine.

Because WMF is a Windows format, a Mac will not usually open one by double-clicking, so the practical routes are a viewer or a converter. The quickest is an online viewer such as the Univik File Viewer, which shows the image in your browser whatever the operating system. To edit or keep the file, free cross-platform tools work well on macOS, with Inkscape importing a WMF as editable vector paths and LibreOffice Draw opening it too. Often the tidiest approach is to convert the WMF to a format macOS handles everywhere, such as SVG for editing or PNG for sharing, after which it opens in any Mac app without special software.

The reliable way is to look at the file's contents rather than its name, since an extension can be renamed. A placeable WMF, the common form, begins with a recognisable signature, the bytes D7 CD C6 9A right at the start, and software uses that fingerprint to identify the format for certain. A bare WMF without the placeable header starts with a different short sequence instead. In practice you rarely need to check by hand, because a good viewer or converter reads those opening bytes and tells you what the file is, which is also why simply renaming something to end in .wmf does not make it a genuine metafile.

For anything on the web the answer is SVG, not WMF. Both are vector formats that scale cleanly, but WMF is a Windows format that browsers do not display, whereas SVG was designed for the web and every modern browser shows it directly. So if you have artwork as a WMF and want it on a web page, the step is to convert it to SVG, which keeps the picture sharp at any size and works everywhere. WMF still has its place for older Windows documents and Office clip art, but as a format to publish online it has been fully overtaken by SVG.

A WMZ file is simply a WMF that has been compressed, using the same zip method used to shrink other files. The name is WMF with a z on the end to signal the compression, and inside it is an ordinary Windows Metafile made smaller for storage or sharing. To use one you generally decompress it back to a plain WMF, and many graphics tools that handle WMF will open a WMZ directly and do that step for you. The same idea applies to the enhanced format, where a compressed EMF carries the .emz extension. So a WMZ is not a new kind of picture, just a packed-up WMF.

A couple of things cause this. If the picture looks blocky, the program has probably turned the vector drawing into a fixed grid of pixels at a small size, so enlarging it looks rough. Opening the file in a proper vector tool such as Inkscape, or converting it to SVG, keeps the crisp vector version instead. If shapes or colours look plain wrong, it is often because the tool you used does not fully understand every WMF drawing command, since the format is old and some viewers only support part of it. Trying a different viewer, or converting the file with a tool that reads WMF well, usually fixes the appearance.

📝 Summary

A WMF file is a Windows Metafile, an image format Microsoft built for Windows that stores a picture as a list of drawing instructions rather than a grid of pixels, which makes it a vector image that stays sharp at any size. Instead of recording each pixel it records Windows GDI commands, the steps the system uses to draw shapes and lines, so the file is really a header followed by a run of records, each one a single drawing command, and opening it replays those commands to rebuild the picture. That design ties WMF closely to Windows and explains why it was for years the built-in graphics format for Microsoft Office, where most of the old clip art in Word, PowerPoint and Publisher was stored as WMF or its successor EMF. Being a vector format, a WMF can be resized freely and converts naturally to SVG, the modern web vector format, while PNG, JPG or PDF suit fixed-size or print needs. WMF is the original sixteen-bit format from Windows 3.0 in 1990, and EMF, the thirty-two-bit Enhanced Metafile from 1993, is its richer successor with fuller colour and device independence, later extended by EMF+, with compressed forms carrying the .wmz and .emz extensions. To open a WMF the quickest route is an online viewer like the Univik File Viewer, while IrfanView and Office apps show them on Windows and Inkscape or LibreOffice Draw import them for editing, and to convert one the Univik File Converter turns it into SVG, PNG, JPG or PDF in the browser. Its age brings limits, such as sixteen-bit precision, RGB-only colour with no CMYK and no embedded fonts, so for brand new artwork a current vector format like SVG is the better choice, but for viewing and converting the WMF files you already have it remains simple and well supported.