SVG 1.1 (Second Edition) – 16 August 2011TopContentsPreviousNextElementsAttributesProperties

Appendix J: Minimizing SVG File Sizes

This appendix is informative, not normative.

Considerable effort has been made to make SVG file sizes as small as possible while still retaining the benefits of XML and achieving compatibility and leverage with other W3C specifications.

Here are some of the features in SVG that promote small file sizes:

Additionally, HTTP/1.1 allows for compressed data to be passed from server to client, which can result in significant file size reduction. Here are some sample compression results using gzip compression on SVG documents [RFC1952]:

Uncompressed SVGWith gzip compressionCompression ratio
12,9122,46381%
12,1642,55379%
11,6132,61777%
18,6894,07778%
13,0242,04184%

A related issue is progressive rendering. Some SVG viewers will support:

Here are techniques for minimizing SVG file sizes and minimizing the time before the user is able to start interacting with the SVG document fragments:

SVG 1.1 (Second Edition) – 16 August 2011TopContentsPreviousNextElementsAttributesProperties