Sample SVG Files — Download Test Vector Graphics (Simple to Complex)
Scalable Vector Graphics · .svg · MIME type image/svg+xml
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.
Download sample SVG files
| File | Details | Size | Download |
|---|---|---|---|
sample-vector-simple.svg | 1200 × 630 | 2 KB | |
sample-vector-medium.svg | 1200 × 630 | 41 KB | |
sample-vector-complex.svg | 1200 × 630 | 406 KB |
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 name | Scalable Vector Graphics |
|---|---|
| Extensions | .svg |
| MIME type | image/svg+xml |
| Standard | W3C SVG 1.1 (2011), SVG 2 (working draft) |
| Type | Vector, XML text — resolution independent |
| Transparency | Yes |
| Animation | Yes (SMIL, CSS) |
| Scripting | Possible — 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
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 Converter — Convert images between PNG, JPG, and WebP right in your browser. Files never leave your device.
- Favicon Generator — Turn 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