Что такое формат файла SVGZ?
.svgz files are supported by most modern web browsers and graphics editing tools natively or via dedicated plugins.
What kind of data can .svgz files store?
Files with the .svgz extension contain compressed SVG images. The .svgz format uses gzip compression, capable of reducing file size by 50-80% compared to the original .svg. SVG stores its data as XML and can be edited in any text editor; .svgz wraps that same XML in a standard gzip stream (identifiable by the 1F 8B magic bytes at the start of the file), making it a binary file despite the readable XML content inside. .svgz files can contain the same 2D vector graphics elements as plain .svg, such as:
- shapes,
- color gradients,
- masks (transparency settings),
- special image filters.
Can .svgz files be edited?
Original .svg files can be easily edited in even the most basic text editor. .svgz files are compressed and saved in binary format, so the XML cannot be read or edited directly without first decompressing. Dedicated vector editors such as Inkscape and Adobe Illustrator handle .svgz natively. To access the raw XML, decompress using gunzip on the command line or a tool like 7-Zip, which produces an editable .svg file. On modern web servers that apply gzip or Brotli transfer compression automatically, serving plain .svg is often preferred over .svgz to avoid double-compression issues.
Безопасность и защита
РИСК: MEDIUMOnce decompressed, an .svgz is SVG XML, which can EMBED CSS and JavaScript - so a malicious .svgz opened in a browser can run scripts (a cross-site-scripting, redirect and phishing vector). The gzip wrapper can also briefly hide malicious markup from naive scanners. Treat unsolicited .svgz files like web pages, not pictures: don't open them from unknown senders, and websites should decompress and sanitize uploaded SVGZ (strip scripts/event handlers) before serving. Inspecting the decompressed XML in a code editor is safe. Avoid sketchy "free SVGZ opener/converter" sites that bundle adware - a browser, Inkscape and 7-Zip cover every real need.
Детали формата
в двух словахПрограммы, открывающие файлы SVGZ
Технические подробности
глубокая спецификация| Container | gzip (RFC 1952), single-member stream |
| Inner format | SVG XML (UTF-8 text), identical in content to a plain .svg file |
| Magic bytes | 1F 8B 08 at offset 0 - standard gzip header; same signature as .gz files |
| Compression | DEFLATE algorithm via gzip; typically reduces .svg file size by 50-80% |
| Encoding | Binary outer container wrapping UTF-8 XML text |
| Byte order | Little-endian (gzip header and trailer integer fields) |
| Integrity check | CRC-32 of the uncompressed SVG data plus a 4-byte ISIZE field in the gzip trailer |
| MIME type | image/svg+xml served with Content-Encoding: gzip, or image/svg+xml-compressed |
| Web serving | Server must not re-compress .svgz; send without Content-Encoding or with Content-Encoding: identity |
| File members | Single gzip member only - not a multi-file archive like ZIP |
| Internal SVG version | Determined by the version attribute inside the decompressed <svg> element |
| Scalability | Resolution-independent vector coordinate space; no pixel grid or fixed dimension limit |
| Decompression | Any gzip-compatible tool (gunzip, 7-Zip) yields the editable .svg XML |
| Typical file size | 1 KB - 1 MB compressed; commonly 20-50% of the source .svg file size |
| Выпущен | 2001 (defined alongside SVG 1.0; gzip compression of SVG is part of the W3C SVG spec) |
| Последняя версия | Tracks the SVG standard (SVG 1.1, 2011; SVG 2 in development) |
| Открыть стандартное | Да · без роялти |
| Спецификация | www.w3.org |
Конвертации SVGZ
Вопросы и ответы сообщества
спрошено пользователямиВопросов пока нет - станьте первым, кто спросит о файлах SVGZ.