1 KB SVG sample
An SVG file of exactly 1,024 bytes. It is a valid Scalable Vector Graphics file, generated by this site. Compare its checksum and test it with the parser used by your application. Use it wherever you need a 1 KB sample, test or dummy SVG file.
Download
sample-svg-1kb.svg
1 KB1,024 bytes
Download 1 KB SVGCreated in your browser in a few seconds, then checked against the SHA-256 checksum. The file is not uploaded anywhere. No sign-up.
- Type
- image/svg+xml
- SHA-256
ed384263be1c983ba10408e41493239abe13224f0a5065bb56fe3e4b8ee460b5- Delivery
- Created in your browser from static generator assets (how it works).
What is in this file
A 1200 × 900 vector image: a dark background and 9 circles and rectangles in six colours. An XML comment before the closing tag brings the file to the exact size.
| Shapes | 9 |
|---|---|
| View box | 0 0 1200 900 |
| Scripts | None |
| External references | None |
| Encoding | UTF-8 (ASCII characters only) |
How the file begins
The opening lines of sample-svg-1kb.svg, exactly as they appear in the file.
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 900" width="1200" height="900" role="img" aria-labelledby="t">
<title id="t">Sample SVG image (1 KB)</title>
<rect width="1200" height="900" fill="#16202b"/>
<rect x="579" y="369" width="139" height="45" fill="#e3b505" fill-opacity="0.55"/>
<circle cx="492" cy="272" r="45" fill="#d64933" fill-opacity="0.6"/>
<circle cx="852" cy="299" r="15" fill="#d64933" fill-opacity="0.6"/>
<circle cx="181" cy="236" r="60" fill="#4f9d69" fill-opacity="0.6"/>
<circle cx="638" cy="549" r="53" fill="#e3b505" fill-opacity="0.6"/>
<circle cx="43" cy="342" r="32" fill="#d64933" fill-opacity="0.6"/>
<circle cx="1155" cy="430" r="12" fill="#ebebeb" fill-opacity="0.6"/>
<rect x="529" y="753" width="37" height="17" fill="#e3b505" fill-opacity="0.55"/>Preview
Creates the file in your browser and shows it here.
Where 1 KB matters
The smallest practical test file: 1,024 bytes, small enough to travel in a single network packet. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| Ethernet | 1,500 bytes (typical MTU) | A 1 KB payload fits in one packet with its headers. |
| Browser cookies | 4,096 bytes per cookie | 1 KB is well inside the limit; the 5 KB sample is over it. |
Use this file for
- Smoke tests in CI that must run in milliseconds
- Testing SVG sanitisation on upload
- Checking rasterisation to PNG
Testing notes for SVG
- An SVG shown with an <img> tag cannot run scripts, but the same file opened directly or inlined can. Sanitise uploads or serve them as attachments.
- SVG has no intrinsic byte-to-pixel relationship: a few hundred bytes can describe an image of any dimensions.
Technical details
| File name | sample-svg-1kb.svg |
|---|---|
| Format | SVG (Scalable Vector Graphics) |
| Extension | .svg |
| MIME type | image/svg+xml |
| Size | 1,024 bytes (1 KB) |
| Kind | Text |
| Signature | 3C 73 76 67 |
| SHA-256 | ed384263be1c983ba10408e41493239abe13224f0a5065bb56fe3e4b8ee460b5 |
| Created | 2026-10-21 |
| Validation | See the listed size and SHA-256. Small downloads are checked in the browser; verify streamed downloads manually. A hash match does not prove parser compatibility. |
| Preview | Available on this page |
| Source | Generated in your browser by this site's generator; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Images |
Check the stated structure and checksum against your application requirements. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Verify your copy
This file is created in your browser, so it has no direct URL for curl or wget. The generator is designed to produce reproducible bytes. After saving, compare the checksum with the SHA-256 value above.
sha256sum sample-svg-1kb.svg # Linux
shasum -a 256 sample-svg-1kb.svg # macOSOn Windows, run Get-FileHash sample-svg-1kb.svg -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy.
Related files
Questions about this file
- Is this file exactly 1 KB?
- Yes. It is 1,024 bytes, which is 1 KB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 1 KB SVG file?
- A 1200 × 900 vector image: a dark background and 9 circles and rectangles in six colours. An XML comment before the closing tag brings the file to the exact size.
- Do the SVG samples contain scripts?
- No. They contain only circles, rectangles and a title element, with no scripts, fonts or external references.