Sample SVG Files — Download Test Vector Graphics (Simple to Complex)

Scalable Vector Graphics · .svg · MIME type image/svg+xml

3 files2 KB406 KBDirect linksNo ads, no sign-upFree for any useSHA-256 verified

Download a sample SVG file at three levels of complexity — about 20, 600 and 6,000 path elements — to test rendering performance, sanitisation, rasterisation and upload handling. Each file is valid XML with a viewBox, a gradient, text elements and an aria-label, and contains no scripts, external references or embedded rasters.

SVG is the only vector format browsers render natively, which makes it ideal for logos and icons and risky as an upload format: an SVG can contain JavaScript. If you accept SVG from users, these clean files are your baseline; your sanitiser should pass them unchanged.

SVG sample preview
Preview: sample-vector-simple.svg — every file on this page uses the same test pattern at a different size or resolution.

Download sample SVG files

FileDetailsSizeDownload
sample-vector-simple.svg
simple • 20 paths
1200 × 6302 KB
2,217 bytes
Download SVG
sample-vector-medium.svg
medium • 600 paths
1200 × 63041 KB
41,430 bytes
Download SVG
sample-vector-complex.svg
complex • 6000 paths
1200 × 630406 KB
406,399 bytes
Download SVG
3 files · direct links · no sign-up · CORS enabled

Need one of every images format? Download the images sample pack (1.3 MB, one small file of every images format (10 files)).

Use these files from the command line or CI

Every URL is stable and CORS-open. Pin the SHA-256 in your test and you will know the moment a fixture changes.

# Download one file
curl -O https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/images/svg/sample-vector-simple.svg

# Verify it (SHA-256 is listed for every file above)
shasum -a 256 sample-vector-simple.svg

# Machine-readable index of every sample file
curl https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/index.json | jq '.files[] | select(.format=="svg")'

SVG format at a glance

Full nameScalable Vector Graphics
Extensions.svg
MIME typeimage/svg+xml
StandardW3C SVG 1.1 (2011), SVG 2 (working draft)
TypeVector, XML text — resolution independent
TransparencyYes
AnimationYes (SMIL, CSS)
ScriptingPossible — sanitise user uploads
Starts with<?xml … or <svg

What people test with sample SVG files

  • SVG sanitisation and CSP tests (these files contain no script and should survive intact)
  • Rasterising SVG to PNG at multiple sizes
  • Rendering performance with thousands of paths
  • Icon and logo upload flows
Testing notes. The complex file is roughly 600 KB of XML — large enough to make slow renderers visible, small enough to open in any editor.

Frequently asked questions

Is it safe to let users upload SVG files?

Only with sanitisation. SVG can embed <script>, event handlers and external references. Strip them server-side (or rasterise to PNG) and serve user SVGs from a separate origin with a strict Content-Security-Policy. Our sample files contain none of those, so they are a good 'should pass' control.

How do I convert SVG to PNG or JPG?

Any browser can rasterise it: draw the SVG onto a canvas and export. Our free Image Converter does exactly that client-side, and our Favicon Generator turns an SVG logo into a full icon set.

Are these SVG files safe to download?

Yes. Every file is generated by our own open script from scratch — nothing is scraped or user-uploaded — and contains no scripts, macros or executables. The SHA-256 of each file is published on this page so you can verify what you received.

Can I use the sample SVG files commercially?

Yes. They are free for any purpose, including commercial products, test suites, demos and redistribution, with no attribution required. There is nothing to license and no one to ask.

Can I hotlink these files or use them in CI?

Yes. Every link is a stable direct URL over HTTPS with Access-Control-Allow-Origin: * and long cache headers, so curl, wget, fetch() and test runners can pull them directly. A JSON index of every file is linked from each page (see the command-line section).

Related sample files

Free tools that work with SVG

  • Image ConverterConvert images between PNG, JPG, and WebP right in your browser. Files never leave your device.
  • Favicon GeneratorTurn any logo into a complete favicon package — favicon.ico, all PNG sizes, Apple touch icon, and webmanifest — in one click.

Testing a file pipeline? We build them.

Uploads, conversions, previews, document processing and media workflows are the kind of production systems Pine & Birch designs and runs for clients — which is why we needed these files in the first place.

See how we can help
Free sample files by Pine & Birch — technology consulting, Toronto. Free for any use, no attribution required.