1 MB SVG sample file
An SVG file of exactly 1,048,576 bytes. It is a valid Scalable Vector Graphics file, generated for this site and checked with an independent parser.
Download
sample-svg-1mb.svg
1 MB1,048,576 bytes
Download 1 MB SVGDirect download. No sign-up and no waiting.
- Type
- image/svg+xml
- SHA-256
067062543c1f1645ff2be8047b2fcc0b8935c25da5c33ff1a1182499d3a326d9- Direct URL
https://sampletestfiles.com/downloads/svg/sample-svg-1mb.svg
What is in this file
A 1200 x 900 vector image made of 14,284 semi-transparent circles and rectangles on a dark background. It contains no scripts, fonts or external references. An XML comment brings it to the exact size.
| Shapes | 14,284 circles and rectangles |
|---|---|
| View box | 1200 x 900 |
| Scripts | 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"/>
<circle cx="485" cy="573" r="9" fill="#1aa6b7" fill-opacity="0.6"/>
<circle cx="604" cy="604" r="31" fill="#3a5fcd" fill-opacity="0.6"/>
<rect x="446" y="502" width="99" height="64" fill="#3a5fcd" fill-opacity="0.55"/>
<circle cx="679" cy="98" r="39" fill="#d64933" fill-opacity="0.6"/>
<circle cx="716" cy="779" r="27" fill="#1aa6b7" fill-opacity="0.6"/>
<rect x="909" y="198" width="130" height="105" fill="#1aa6b7" fill-opacity="0.55"/>
<circle cx="749" cy="556" r="26" fill="#c2409a" fill-opacity="0.6"/>
<circle cx="604" cy="187" r="35" fill="#3a5fcd" fill-opacity="0.6"/>Preview
Displays the file in your browser.
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
- Download tests on mobile connections
- Checking rasterisation to PNG
- Testing icon pipelines and optimisers
Testing notes for SVG
- SVG has no intrinsic byte-to-pixel relationship: a few hundred bytes can describe an image of any dimensions.
- 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.
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 | 067062543c1f1645ff2be8047b2fcc0b8935c25da5c33ff1a1182499d3a326d9 |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Available on this page |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Images |
Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-svg-1mb.svg 'https://sampletestfiles.com/downloads/svg/sample-svg-1mb.svg'
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. A matching value proves that the download is complete and unaltered.
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 x 900 vector image made of 14,284 semi-transparent circles and rectangles on a dark background. It contains no scripts, fonts or external references. An XML comment brings it 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.