` or `` to a copy of the sample and verify your sanitizer (DOMPurify, SVG Sanitizer) strips it. Always test SVG uploads for XSS — SVG is XML and executes JavaScript when opened directly in a browser."}},{"@type":"Question","name":"What SVG file size should I use to test browser rendering performance?","acceptedAnswer":{"@type":"Answer","text":"SVG rendering cost depends on path complexity, not file size alone. The sample SVGs include enough paths to be representative. Load 50–100 instances in a DOM and measure frame rate with `requestAnimationFrame`. If you animate SVG properties (transforms, fills), the 5 MB sample with many path elements will reveal paint and composite bottlenecks in Chrome DevTools Performance."}},{"@type":"Question","name":"How do I test server-side SVG rasterization (SVG → PNG)?","acceptedAnswer":{"@type":"Answer","text":"Use the sample SVG with Sharp (`sharp('input.svg').png().toBuffer()`), Inkscape (`inkscape --export-png=out.png`), or CairoSVG (`cairosvg input.svg -o out.png`). Measure rasterization time against the 1 MB and 5 MB files. SVG rasterization is CPU-intensive for complex paths — the 5 MB file will expose whether you need to queue it as a background job."}},{"@type":"Question","name":"How do I test inline SVG vs. `` rendering differences?","acceptedAnswer":{"@type":"Answer","text":"Load the sample SVG both ways and measure: (1) as `` — the SVG is isolated, scripts are blocked, and external resources are forbidden; (2) inline in HTML — scripts run, CSS applies, and the SVG can be targeted by JavaScript. Use this to verify your rendering path handles both correctly, especially for CSS variable theming and event binding."}},{"@type":"Question","name":"How do I test my CMS's handling of SVG files?","acceptedAnswer":{"@type":"Answer","text":"Upload the 100 KB sample to your CMS and verify: (1) MIME type stored as `image/svg+xml`; (2) the file is not re-encoded as PNG (a common CMS bug); (3) sanitization runs before storage; (4) the CMS generates a rasterized thumbnail for the media library. Test the 1 MB sample to confirm large SVG uploads don't time out during sanitization."}}]}

Sample SVG Files

Image

SVG — scalable vector graphics, resolution-independent

Download by size

SizeDownload
100KB100 KB
1MB1 MB
5MB5 MB
10MB10 MB
50MB50 MB

Need a custom SVG file?

Configure exact parameters and download on demand.

⚙ Generate SVG

Download via curl

# Download the 1 MB SVG file
curl -L "http://localhost:8000/files/svg/TestFile-svg-1mb.svg" \
  -o sample-svg-1mb.svg

# Generate a custom file via API
curl -X POST https://gettestfiles-api.fly.dev/generate/svg \
  -H "Content-Type: application/json" \
  -d '{}' --output custom.svg

Related formats

Frequently asked questions