.CGM

CGM File

Computer Graphics Metafile
Ask a question
QUICK ANSWER

A CGM file is a Computer Graphics Metafile - an ISO/IEC 8632 vector graphics format from 1987, used in aviation, defense, and engineering documentation. Most image viewers cannot open it; use IrfanView with the plugins pack (free, Windows) or an online converter to get SVG or PDF.

Developer: ISO/IEC + ANSI (vendor-neutral standard); originally a US FIPS Category: Vector Image Files Open standard MIME: image/cgm
OPENS ON Windows macOS Linux Web
Related: .EMZ · .CDR · .ODG · .VSDX

On this page

19k+ extensions indexed
Last reviewed Jul 9, 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 CGM file format?

.cgm files store raster or vector graphics and text. The format is supported by various graphics editing and technical illustration tools, and remains widely used in aerospace, defense, and engineering documentation - sectors where its long-established standardization carries more weight than everyday consumer tooling.

The main goal of creating the .cgm format was to develop a universal, platform-independent standard for storing graphics data. The CGM standard was defined by the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC), published as ISO/IEC 8632, and simultaneously adopted as a US federal standard (FIPS PUB 128) in 1987. While .svg has largely taken over general-purpose web graphics, .cgm remains the mandated format in aviation (ATA Spec 2300, S1000D) and defense (CALS) documentation standards.

The CGM standard defines how vector and raster graphics are to be stored in .cgm files. Each graphic element has a list of attributes that define its appearance and rendering. CGM supports RGB direct color and indexed color models, with up to 24-bit direct color, along with additional color specifications used in industry-specific profiles - unlike the CMYK-oriented .eps format common in print workflows.

.cgm files can store various types of graphics data thanks to a rich array of elements that implement many standards. The CGM standard defines, for example:

  • which types of data can be stored (lines, polylines, polygons, text glyphs, filled areas, and embedded raster cell arrays),
  • how the contents will be displayed in a device-independent Virtual Device Coordinate (VDC) space,
  • how images may be edited and extended through profile-specific element sets,
  • support for external devices and interactive features via the WebCGM 2.1 profile.

CGM can store data depending on how the output image is to be generated and what properties it should have. CGM stores data using one of three standard encodings:

  • Binary - fast file write and read; uses big-endian integer ordering,
  • Character - portable character-based encoding designed for 7-bit ASCII transmission channels,
  • Clear-Text - human-readable and easy to edit using standard text editors; a Clear-Text .cgm file begins with the ASCII keyword BEGMF.

Security & safety

RISK: LOW

A CGM file is a passive vector graphic with no scripting, so the format itself is low risk. Practical cautions: many 'CGM viewers' surfaced by search are dead or bundled with adware - stick to the reputable tools listed; and because CGM is common in aerospace/defense, files may be technically sensitive, so avoid uploading confidential drawings to online converters.

Format details

in a nutshell
FULL NAMEComputer Graphics Metafileaka CGM vector graphic, ISO/IEC 8632 metafile
DEVELOPERISO/IEC + ANSI (vendor-neutral standard); originally a US FIPSsince 1987 (first standardized as ISO 8632 / ANSI; US FIPS PUB 128)
MIME TYPEimage/cgm
TYPE2D vector graphics metafile (can also embed raster); ISO/IEC 8632 standard
STANDARDOpen · royalty-free

Programs that open CGM files

Windows4 apps
CorelDRAW Paid File > Import, select the .cgm to edit it as vector art.
ABViewer Paid Open the .cgm to view/measure/convert; CADSoftTools ABViewer supports CGM (free trial).
IrfanView (+ plugins) Free Install the IrfanView Plugins pack (includes the CGM reader), then File > Open the .cgm.
Inkscape (via converter) Open-source Inkscape doesn't read CGM directly - convert to SVG first (UniConvertor / online), then open in Inkscape.
macOS1 app
Adobe Illustrator Paid File > Open / Place the .cgm (legacy CGM import; older versions had better support).
Linux1 app
UniConvertor (sK1) Open-source Command-line convert CGM to SVG/PDF: uniconvertor input.cgm output.svg, then view/edit in Inkscape.
Web1 app
CloudConvert Freemium Upload the .cgm and convert to SVG/PDF/PNG online (for non-confidential files).

Technical details

deep spec
StandardISO/IEC 8632:1999 (CGM:1999), Parts 1-4; also ANSI X3.122 and US FIPS PUB 128 (1987)
MIME typeimage/cgm (registered); alternatives include image/x-cgm and application/cgm
EncodingsThree defined by the standard: Binary (Part 3), Character (Part 2), and Clear-Text (Part 4)
File structureOrdered sequence of metafile elements: Begin Metafile → Begin Picture → graphic primitives and attributes → End Picture → End Metafile
Graphic primitivesPolyline, disjoint polyline, polymarker, filled-area set, polygon, rectangle, circle, ellipse, circular arc, text, restricted text, cell array, tile array
Color supportIndexed color (color table entries) and direct RGB color; up to 24-bit direct color per the standard
Coordinate systemDevice-independent Virtual Device Coordinates (VDC); precision set by VDC integer or real parameters - effectively unbounded coordinate range
Binary byte orderBig-endian; binary encoding uses big-endian integer and word ordering as specified in ISO/IEC 8632 Part 3
CompressionNone in the base standard; some profiles permit compressed embedded raster within cell array and tile array primitives
Raster embeddingRaster pixel data embedded inside the vector structure via cell array and tile array primitives
Text handlingBasic text with font index and character attributes; restricted text constrained to a bounding box; append text for continuation
Industry profilesATA Spec 2300 / iSpec 2200 (civil aviation), CALS / MIL-D-28003 (defense), S1000D (interactive technical manuals), WebCGM 2.1 (W3C/OASIS)
WebCGM extensionWebCGM 2.1 (W3C/OASIS, 2010) adds hyperlinks, named groups, metadata, and interactivity for web-deployed technical documentation
File identificationNo single magic number across all encodings; Clear-Text .cgm begins with ASCII keyword BEGMF; Binary starts with a BEGMF command element (element class 0, id 1)
Primary use domainsAerospace technical manuals, military/defense documentation, engineering illustrations; SVG has superseded .cgm for general web and consumer use
Released1987 (first standardized as ISO 8632 / ANSI; US FIPS PUB 128)
Latest versionCGM:1999 (ISO/IEC 8632:1999); WebCGM 2.1 published by W3C/OASIS in 2010
Open standardYes · royalty-free
Specificationwww.iso.org

CGM conversions

Community Q&A

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

Frequently asked questions

How do I open a CGM file?
Use a tool that supports the format: IrfanView with its plugin pack (free), ABViewer, or CorelDRAW. If you only need to view/share it, convert it to SVG or PDF first.
What program opens .cgm files for free?
IrfanView (with the Plugins pack) on Windows, and UniConvertor on Linux for converting. Online converters can turn CGM into SVG/PDF/PNG without installing anything.
How do I convert CGM to SVG or PDF?
Use UniConvertor (command line), an online converter like CloudConvert, or import into a vector editor and export. SVG keeps it scalable; PDF is best for documents.
Why won't my image viewer open a CGM file?
CGM is a niche technical-illustration standard, not a common photo format, so most basic viewers lack a decoder. Use IrfanView+plugins or convert it first.
What is CGM used for?
Mainly 2D technical illustrations in aviation (ATA/S1000D), defense (CALS), and engineering documentation, where a vendor-neutral ISO vector standard is required.
Is CGM the same as SVG?
Both are vector formats, but CGM (ISO/IEC 8632, 1987) predates SVG and is binary/standardized for technical docs; SVG is the XML web standard. CGM converts cleanly to SVG.

References

1ISO/IEC 8632 - Computer Graphics Metafile (standard)www.iso.org
2W3C - WebCGM 2.1www.w3.org

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.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database 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