Free SVG sample, test and dummy files

Vector images written as XML. They scale to any size and can contain scripts, so uploads need sanitising. Download valid SVG test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.svg
MIME type
image/svg+xml
Kind
Text
Category
Images

Create a SVG file of any size

Choose any size from 300 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

SVG files by size

Every file below is a valid Scalable Vector Graphics file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

SVG sample files by size
FileSizeContentsDownload
1 KB SVG samplesample-svg-1kb.svg 1 KB1,024 bytes Shapes: 9 Download SVG
5 KB SVG samplesample-svg-5kb.svg 5 KB5,120 bytes Shapes: 64 Download SVG
10 KB SVG samplesample-svg-10kb.svg 10 KB10,240 bytes Shapes: 134 Download SVG
25 KB SVG samplesample-svg-25kb.svg 25 KB25,600 bytes Shapes: 343 Download SVG
50 KB SVG samplesample-svg-50kb.svg 50 KB51,200 bytes Shapes: 695 Download SVG
100 KB SVG samplesample-svg-100kb.svg 100 KB102,400 bytes Shapes: 1,392 Download SVG
200 KB SVG samplesample-svg-200kb.svg 200 KB204,800 bytes Shapes: 2,791 Download SVG
500 KB SVG samplesample-svg-500kb.svg 500 KB512,000 bytes Shapes: 6,976 Download SVG
1 MB SVG samplesample-svg-1mb.svg 1 MB1,048,576 bytes Shapes: 14,286 Download SVG
2 MB SVG samplesample-svg-2mb.svg 2 MB2,097,152 bytes Shapes: 28,599 Download SVG
3 MB SVG samplesample-svg-3mb.svg 3 MB3,145,728 bytes Shapes: 42,906 Download SVG
5 MB SVG samplesample-svg-5mb.svg 5 MB5,242,880 bytes Shapes: 71,510 Download SVG
10 MB SVG samplesample-svg-10mb.svg 10 MB10,485,760 bytes Shapes: 142,970 Download SVG
15 MB SVG samplesample-svg-15mb.svg 15 MB15,728,640 bytes Shapes: 214,461 Download SVG
20 MB SVG samplesample-svg-20mb.svg 20 MB20,971,520 bytes Shapes: 285,961 Download SVG
25 MB SVG samplesample-svg-25mb.svg 25 MB26,214,400 bytes Shapes: 357,420 Download SVG
30 MB SVG samplesample-svg-30mb.svg 30 MB31,457,280 bytes Shapes: 428,875 Download SVG
50 MB SVG samplesample-svg-50mb.svg 50 MB52,428,800 bytes Shapes: 714,816 Download SVG
100 MB SVG samplesample-svg-100mb.svg 100 MB104,857,600 bytes Shapes: 1,429,465 Download SVG

What is an SVG file?

SVG describes shapes, paths and text in XML, so images stay sharp at any size and are often smaller than bitmaps. It is the usual format for icons, logos and charts on the web.

An SVG file is a document, not just a picture. It can include scripts, external references and embedded HTML, which browsers will run when the file is opened directly.

How to recognise an SVG file

Software recognises an SVG file by its file signature: fixed bytes at the start of the file, also called magic bytes or a magic number.

The first bytes of every file. Often preceded by an XML declaration.
Extension.svg
MIME typeimage/svg+xml
StandardW3C SVG 1.1 and SVG 2
EncodingXML, usually UTF-8
Compressed form.svgz (gzip)
Can containShapes, text, gradients, filters, scripts, external references

What to test for

These are the behaviours that most often go wrong when software handles SVG files.

Strengths of SVG

  • Sharp at any size, from an icon to a billboard.
  • Text-based, so it can be styled with CSS, edited by hand and compressed well.

Limitations of SVG

  • Poor for photographs and very detailed artwork.
  • Can carry scripts, so uploads must be sanitised.

Typical uses of SVG test files

  • Testing SVG sanitisation on upload
  • Checking rasterisation to PNG
  • Testing icon pipelines and optimisers

Software that opens SVG

  • All web browsers
  • Inkscape, Illustrator and Figma
  • SVGO, resvg and librsvg

Specifications

Related

SVG sample files: questions

Do the SVG samples contain scripts?
No. They contain only circles, rectangles and a title element, with no scripts, fonts or external references.
What is the MIME type of an SVG file?
The MIME type is image/svg+xml. The file extension is .svg.
Is a sample SVG file the same as a dummy or example SVG file?
Yes. Sample, test, dummy and example SVG files are different names for the same thing: an SVG file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy SVG file.