.svgz File Extension

Learn what a .svgz file is, how to open and verify compressed SVG artwork, how Poly supports it, and when plain SVG works better.

File extension details for .svgz

Storage Only
File typeGzip-compressed Scalable Vector Graphics file
MIME type
EncodingBinary Gzip wrapper containing XML-based SVG artwork
Operating systemsWindows, macOS, Linux
Opens withAdobe Illustrator, Inkscape, GNU gzip
Poly supportYes. Poly stores, syncs, shares, versions, and downloads SVGZ files.
Indexed by PolyPartial. Poly indexes the filename and basic file properties, not the compressed SVG content.
Preview in PolyNo. Decompress the file to .svg for a dependable image preview.
Poly agentNo. The Poly agent cannot read or render SVG inside the Gzip stream.

What kind of file is a .svgz?

An .svgz file is Scalable Vector Graphics compressed with Gzip. After decompression, its content is the same XML-based vector artwork normally stored in an .svg file. W3C recommends the lowercase .svgz suffix for this convention.1

SVGZ commonly uses the image/svg+xml MIME type together with a gzip content encoding. It is not a separate graphics language, and application/gzip alone says only that the outer stream is compressed.

The outer file begins with Gzip magic bytes 1F 8B. A reliable check must then decompress the stream, parse the result as XML, and confirm an svg root element in the http://www.w3.org/2000/svg namespace. The Gzip signature by itself does not prove that the payload is SVG.2

Renaming drawing.svg to drawing.svgz does not compress it. Renaming a .gz file to .svgz does not make its payload SVG.

How do I open a .svgz on my computer?

  • On Windows or macOS, Adobe Illustrator can open and save SVG Compressed files.3
  • On Windows, macOS, or Linux, Inkscape supports compressed Inkscape SVG and compressed plain SVG.4
  • On any system with Gzip tools, decompress the file before viewing or editing its XML.

For example, write an ordinary SVG copy without changing the original:

gzip -dc drawing.svgz > drawing.svg

Then open drawing.svg in a current browser, vector editor, or text editor. A browser may display SVGZ delivered by a web server, but the server must send image/svg+xml and the correct Content-Encoding: gzip header. Incorrect headers are a common reason an otherwise valid file downloads or fails to render.5

Poly support for .svgz

Poly safely stores, syncs, shares, versions, and downloads .svgz files, and makes them searchable by filename. It does not currently infer or decompress SVGZ for image processing, so it does not generate an SVG thumbnail, visual search representation, in-app image preview, or agent-readable rendering from this suffix.

Decompress the file to .svg before adding it to Poly when you need those image features. Keep the .svgz original too if it is part of a web deployment or design handoff.

History of .svgz

W3C published SVG 1.0 as a Recommendation on September 4, 2001. That first specification recommended .svg for ordinary SVG and .svgz for its Gzip-compressed form.16 The convention was useful because verbose XML often compresses well while retaining the SVG drawing after decompression.

W3C later reported five sample SVG documents shrinking by 77% to 84% with Gzip. Those figures illustrate the potential rather than guarantee a result. Files dominated by already compressed JPEG or PNG images usually save less.7

Working with .svgz and alternatives

ChoiceBest fitTradeoff
SVGZLegacy workflows requiring a pre-compressed SVG fileUneven app and server handling
SVGEditing, source control, and broad browser workflowsLarger on disk before compression
PNGFixed-size raster output with transparencyLoses editable paths and resolution independence
PDFPrint and document exchangeWeb embedding and SVG behavior may not carry over

For modern websites, an uncompressed .svg resource with server-managed HTTP compression is often simpler. The filename and media type remain ordinary SVG, while the server negotiates compression for transfer.5

Treat untrusted SVGZ as both compressed input and potentially active SVG. Limit decompression resources, then inspect scripts, event attributes, links, external resources, and foreignObject content before publishing or opening it in a document context.8

Footnotes

  1. World Wide Web Consortium. SVG 1.0 Introduction. Recommends .svgz for Gzip-compressed SVG files. 2
  2. Internet Engineering Task Force. RFC 6713: The application/zlib and application/gzip Media Types. Registers the Gzip magic bytes and binary encoding.
  3. Adobe. Supported File Formats for Illustrator. Lists SVG Compressed for opening, placing, and saving.
  4. Inkscape. Files: Save. Documents compressed Inkscape SVG and compressed plain SVG output.
  5. World Wide Web Consortium. SVG 2 Conformance Criteria. Specifies media-type and content-encoding requirements for compressed SVG served over HTTP. 2
  6. World Wide Web Consortium. Scalable Vector Graphics (SVG) 1.0 Specification. W3C Recommendation dated September 4, 2001.
  7. World Wide Web Consortium. Minimizing SVG File Sizes. Reports Gzip sizes for five example SVG documents.
  8. World Wide Web Consortium. Media Type Registration for image/svg+xml. Describes scripting, external-resource, privacy, and XML security considerations.
© Poly Corp. 2026