Sample SVG images for testing renderers, free and CC0
SVG is vector graphics written as XML, which makes it both an image and a document that could, in principle, carry script. These files are hand-written with no script, no event handlers and no external references, and they are served with a sandbox Content-Security-Policy, so they render their shapes but can execute nothing.
svg/simple-shapes.svg draws a rectangle, a circle and a polyline path, with explicit width
and height attributes. Those attributes matter: an SVG without them has no intrinsic size,
and image tools disagree about how large to render it.
svg/with-embedded-png.svg contains a PNG as a data URI and no other raster content, so
nothing is fetched from the network when it renders. It tests whether a sanitiser keeps safe
embedded images, and whether a rasteriser handles data URIs.
Use them for image upload forms, SVG sanitisers, rasterisers and icon pipelines. Related formats: PNG and WebP.
| File | Size | Properties | Description |
|---|---|---|---|
icons-24x24.svg
|
1.4 KB (1,375 bytes) | 144x24, utf-8, LF | An icon sprite: six 24 by 24 icons, each defined once as a symbol and shown with use. For icon pipelines and sanitisers that have to follow a use to its symbol.
Snippets
|
simple-shapes.svg
|
683 B | 200x200, utf-8, LF | A rectangle, a circle and a polyline path with explicit width and height attributes. No script, no external references.
Snippets
|
text-and-gradient.svg
|
1.1 KB (1,145 bytes) | 320x200, utf-8, LF | A linear and a radial gradient behind three lines of text in sans-serif, serif and monospace families. For rasterisers that mishandle gradients, font fallback or text anchoring.
Snippets
|
viewbox-responsive.svg
|
604 B | NonexNone, utf-8, LF | A viewBox and no width or height, so the file has no intrinsic size and fills whatever box it is placed in. Tools disagree about how large to render it.
Snippets
|
with-embedded-png.svg
|
3.4 KB (3,370 bytes) | 200x200, utf-8, LF | An SVG whose only raster content is a PNG data URI, so nothing is fetched from the network when it renders.
Snippets
|
Every SVG file in one command, each checked against its hash: npx loremfile get --format svg, or loremfile get --format svg after pip install loremfile.
Related formats
File names follow the naming grammar. Verify a download against sha256sums.txt.