1 MB SVG sample
An SVG file of exactly 1,048,576 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 MB sample, test or dummy SVG file.
Download
sample-svg-1mb.svg
1 MB1,048,576 bytes
Download 1 MB 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
1a06b5f12f2a0252f56e9e99a5a82000c92163f76b9c109fefb7bfda8a26a1ec- 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 14,286 circles and rectangles in six colours. An XML comment before the closing tag brings the file to the exact size.
| Shapes | 14,286 |
|---|---|
| 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-1mb.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 MB)</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 MB matters
A 1,048,576-byte file: exactly the default upload limit of nginx, Spring Boot and Next.js. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| nginx | 1 MB by default (client_max_body_size) | A multipart upload of this file exceeds the limit by the size of the form boundaries. |
| Spring Boot multipart | 1 MB per file by default (max-file-size) | A file of exactly 1 MB is at the limit. |
| Next.js API routes and Server Actions | 1 MB by default | Larger bodies need the size limit raised in configuration. |
| Cloud Firestore documents | 1 MiB (1,048,576 bytes) | The same number of bytes as this file. |
| Apache Kafka messages | About 1 MB by default | Brokers reject larger records unless message.max.bytes is raised. |
Use this file for
- Finding the first upload limit in a new stack
- Testing icon pipelines and optimisers
- Testing SVG sanitisation on upload
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-1mb.svg |
|---|---|
| Format | SVG (Scalable Vector Graphics) |
| Extension | .svg |
| MIME type | image/svg+xml |
| Size | 1,048,576 bytes (1 MB) |
| Kind | Text |
| Signature | 3C 73 76 67 |
| SHA-256 | 1a06b5f12f2a0252f56e9e99a5a82000c92163f76b9c109fefb7bfda8a26a1ec |
| 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-1mb.svg # Linux
shasum -a 256 sample-svg-1mb.svg # macOSOn Windows, run Get-FileHash sample-svg-1mb.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 MB?
- Yes. It is 1,048,576 bytes, which is 1 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 1 MB SVG file?
- A 1200 × 900 vector image: a dark background and 14,286 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.