.EMF

EMF File

Enhanced Metafile (Windows vector graphic)
Ask a question
QUICK ANSWER

An EMF file is a Windows vector graphic made by Microsoft's Enhanced Metafile format, storing drawing commands rather than pixels. On Windows, open it in IrfanView (free) or insert it into Word/PowerPoint. To use it on Mac or Linux, or to convert it to PNG/SVG, use LibreOffice Draw or Inkscape, both free. The most common encounter is a file named image001.emf inside an email or Office document.

Developer: Microsoft Category: Vector Image Files Open standard MIME: image/emf (also seen as image/x-emf)
OPENS ON Windows macOS Linux
Related: .EMZ · .CDR · .ODG · .VSDX

On this page

19k+ extensions indexed
Last reviewed Aug 12, 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 EMF file format?

.emf is a vector graphics file format used by the Windows operating system, developed by Microsoft in 1993. Technically, an .emf file stores a recorded sequence of Windows GDI drawing commands rather than a pixel grid, so vector content scales without quality loss. .emf files can also embed bitmap images and text data alongside vector elements.

Windows uses .emf files as spool buffers during printing: a temporary .emf file is created when a print job is submitted and automatically removed once printing has completed.

The .emf format is device-independent and retains the DPI of the stored image. Thus, the file renders consistently on any output device, such as a printer, plotter, or screen.

.emf is a successor to the .WMF format. The newer format supports 32-bit data, while .wmf only supported 16-bit. .emf also offers a wider color space (RGB and CMYK), support for high-resolution graphics, and more compact file sizes than equivalent raster images. A GZIP-compressed variant, .EMZ, wraps the same content in a smaller archive and is commonly used when embedding metafiles in Microsoft Office or LibreOffice documents. For modern web use, .SVG is a widely adopted open alternative with comparable scalability.

An .emf file is identified by the ASCII magic string EMF (bytes 20 45 4D 46) at offset 40 inside the file header. The format structure is publicly documented by Microsoft as the MS-EMF specification.

Security & safety

RISK: LOW

EMF files contain drawing commands, not executable code or macros, so a normal EMF is safe to view. The realistic risk is parser exploits: Windows metafile rendering has a CVE history (the WMF flaw of 2005-2006 and periodic GDI/EMF parsing bugs since), so keep Windows and Office patched and be wary of unsolicited metafile attachments from unknown senders. An image001.emf in an ordinary business document/email is almost always a harmless Office artifact (often a signature logo or a pasted diagram).

Format details

in a nutshell
FULL NAMEEnhanced Metafile (Windows vector graphic)
DEVELOPERMicrosoftsince 1993 (Windows NT 3.1); format documented publicly as MS-EMF
MIME TYPEimage/emf (also seen as image/x-emf)
TYPEWindows GDI vector image - a recorded sequence of drawing commands (can embed bitmaps)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
01000000
ASCII
····
An EMF file starts with the EMR_HEADER record: DWORD 0x00000001 (record type) at offset 0. The reliable signature is the ASCII string ' EMF' (bytes 20 45 4D 46) at offset 40, inside the header. Distinct from the GZIP-compressed variant EMZ (magic 1F 8B). Old 16-bit WMF metafiles start differently (D7 CD C6 9A or 01 00 09 00).

Programs that open EMF files

Windows6 apps
IrfanView Free Opens EMF directly (uses Windows GDI+); great for quick view and batch conversion to PNG/JPG.
Inkscape Open-source File > Open imports the EMF as editable vector paths; ideal to recolor/edit and export SVG. Free.
LibreOffice Draw Open-source File > Open the .emf to view/edit the vector content and export PNG/SVG/PDF. Free.
Windows Photos Built-in Double-click - Windows can preview many EMF files natively via GDI+ (rendering only, no editing).
Microsoft Word / PowerPoint (Microsoft 365) Paid Insert > Pictures > This Device > select the .emf - Office renders it natively; right-click > Save as Picture exports PNG/JPG/SVG.
XnView MP Free Open the .emf directly and use Save As to convert to PNG/JPG/TIFF.
macOS3 apps
Adobe Illustrator Paid File > Open imports the EMF as editable vector art (best effort; some GDI records may differ).
Inkscape Open-source File > Open the .emf to view/edit as vectors and export SVG/PNG.
LibreOffice Draw Open-source Best macOS option - open the .emf in Draw (its own EMF interpreter, no GDI needed) and export to PNG/SVG/PDF.
Linux2 apps
Inkscape Open-source File > Open the .emf - converts the vector data for editing and SVG export.
LibreOffice Draw Open-source Open the .emf in Draw to view/convert; the most reliable Linux option.

Technical details

deep spec
Magic signatureASCII string ` EMF` (bytes `20 45 4D 46`) at offset 40 in the EMR_HEADER record; DWORD `0x00000001` at offset 0 (record type)
MIME type`image/emf` (also seen as `image/x-emf`)
Data width32-bit integer fields throughout (predecessor WMF used 16-bit)
Color spacesRGB and CMYK both supported
Coordinate unitsDevice-independent logical units; default mapping mode uses 0.01 mm precision per unit
File structureSequential variable-length records; each record begins with a 4-byte type DWORD and 4-byte size DWORD
Bitmap embeddingEMR_STRETCHDIBITS and related records embed Device-Independent Bitmaps (DIB) within the vector stream
Header contentEMR_HEADER record stores bounding box (logical units and pixels), reference device resolution, description string, and optional pixel format descriptor
Compressed variant`.emz` - GZIP-compressed `.emf`; identifiable by magic bytes `1F 8B` at offset 0
Print spool roleWindows print subsystem uses `.emf` as the Enhanced Metafile Spool Format; spool files are temporary and deleted on job completion
GDI record typesOver 100 defined record types covering paths, curves, text, transforms, clipping regions, palette, and bitmap operations
EndiannessLittle-endian; all multi-byte integers stored with least-significant byte first
Coordinate rangeBounding rectangle stored as 32-bit signed integers; logical canvas spans up to ~2.1 billion units per axis
Office containerNatively embedded in `.docx`, `.pptx`, `.xlsx` (OOXML) and ODF packages as a preferred vector clip art format
Released1993 (Windows NT 3.1); format documented publicly as MS-EMF
Open standardYes · royalty-free
Specificationlearn.microsoft.com

EMF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with EMF 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 EMF files.

Frequently asked questions

How do I open an EMF file?
On Windows, double-click to preview in Windows Photos, open it in free IrfanView/XnView, or insert it into Word/PowerPoint (Insert > Pictures). On Mac/Linux, open it in LibreOffice Draw or Inkscape (free). To edit the vectors, use Inkscape or Illustrator.
How do I convert EMF to PNG or JPG?
Quickest on Windows: open in IrfanView/XnView and Save As PNG, or insert into Word/PowerPoint, right-click and choose 'Save as Picture'. Anywhere: open in LibreOffice Draw or Inkscape and export PNG. Prefer PNG over JPG for diagrams and line art.
What is the difference between EMF and EMZ?
Same image - EMZ is an EMF compressed with GZIP (like SVGZ vs SVG). Decompressing an EMZ with 7-Zip or gunzip gives you the original EMF losslessly. Both store the same vector drawing.
What is the difference between EMF and WMF?
WMF is the older 16-bit Windows Metafile; 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.
Can I open an EMF 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 EMF interpreters and can export PNG/SVG/PDF. Adobe Illustrator also imports EMF.
Is an EMF a vector or raster image?
Usually vector - it stores drawing commands and scales cleanly - but EMF records can embed bitmaps, so some EMF files are effectively wrapped raster images.

References

1Microsoft Open Specifications - MS-EMF: Enhanced Metafile Formatlearn.microsoft.com
2Microsoft Learn - Metafiles (GDI+)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

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

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