Free PNG sample files
Lossless images with optional transparency. The standard for screenshots, logos and interface graphics. Download valid PNG test files in 10 exact sizes, from 1 KB to 10 MB, each with a checksum.
- Extension
- .png
- MIME type
- image/png
- Kind
- Binary
- Category
- Images
PNG files by size
Every file below is a valid Portable Network Graphics file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.
| File | Size | Contents | Download |
|---|---|---|---|
| 1 KB PNG samplesample-png-1kb.png | 1 KB1,024 bytes | 21 × 14 px | Download PNG |
| 5 KB PNG samplesample-png-5kb.png | 5 KB5,120 bytes | 47 × 35 px | Download PNG |
| 10 KB PNG samplesample-png-10kb.png | 10 KB10,240 bytes | 67 × 50 px | Download PNG |
| 25 KB PNG samplesample-png-25kb.png | 25 KB25,600 bytes | 106 × 79 px | Download PNG |
| 50 KB PNG samplesample-png-50kb.png | 50 KB51,200 bytes | 150 × 113 px | Download PNG |
| 100 KB PNG samplesample-png-100kb.png | 100 KB102,400 bytes | 212 × 160 px | Download PNG |
| 500 KB PNG samplesample-png-500kb.png | 500 KB512,000 bytes | 473 × 360 px | Download PNG |
| 1 MB PNG samplesample-png-1mb.png | 1 MB1,048,576 bytes | 677 × 515 px | Download PNG |
| 5 MB PNG samplesample-png-5mb.png | 5 MB5,242,880 bytes | 1,514 × 1,153 px | Download PNG |
| 10 MB PNG samplesample-png-10mb.png | 10 MB10,485,760 bytes | 2,141 × 1,632 px | Download PNG |
More PNG samples
Hand-designed files with realistic content or a specific edge case.
| File | Size | Contents | Download |
|---|---|---|---|
| Test card PNG, 1920 × 1080sample-test-card-1920x1080.png | 195 KB199,649 bytes | 1920 × 1080 px | Download PNG |
| Transparent PNG with an alpha gradient, 512 × 512sample-transparent-512x512.png | 42.0 KB42,984 bytes | 512 × 512 px | Download PNG |
| One-pixel PNG (1 × 1)sample-pixel-1x1.png | 69 B69 bytes | 1 × 1 px | Download PNG |
What is a PNG file?
PNG compresses images without losing any information and supports an alpha channel for smooth transparency. It works best on flat colour and sharp edges, and produces large files for photographs.
A PNG file is an eight-byte signature followed by chunks. Each chunk has a length, a four-letter type and a CRC checksum, so corruption is detected rather than silently displayed.
How to recognise a PNG file
| Extension | .png |
|---|---|
| MIME type | image/png |
| Standard | W3C PNG Specification (also ISO/IEC 15948) |
| Compression | Lossless deflate |
| Colour | Greyscale, palette or truecolour, 1 to 16 bits per channel |
| Transparency | Full alpha channel |
What to test for
These are the behaviours that most often go wrong when software handles PNG files.
- PNG compresses flat colour extremely well, so a tiny file can expand to a very large bitmap. Check dimensions before decoding.
- Converting a transparent PNG to JPEG needs a background colour; pipelines that forget produce black backgrounds.
- Every chunk carries a CRC, so a strict decoder rejects a file that was altered in transit.
Strengths of PNG
- Lossless, so screenshots, diagrams and text stay perfectly sharp.
- Full alpha transparency.
Limitations of PNG
- Photographs are several times larger than the equivalent JPEG.
- No animation in the baseline format.
Typical uses of PNG test files
- Testing image uploads that must stay lossless
- Checking transparency handling
- Testing image optimisation and conversion
- Verifying dimension limits
Software that opens PNG
- Every browser and image viewer
- Screenshot tools on all platforms
- libpng, sharp, Pillow and ImageMagick libraries
Specifications
Related
PNG sample files: questions
- Why are the sized PNG samples stored without compression?
- It makes the size exact and predictable: the pixel data is written in uncompressed deflate blocks, so byte count follows pixel count. The files are fully valid PNGs. For a normally compressed PNG, use the 1920 × 1080 test card.
- Is there a sample with transparency?
- Yes. The curated library includes a 512 × 512 PNG with an alpha gradient.
- What is the MIME type of a PNG file?
- The MIME type is image/png. The file extension is .png.
- Is a sample PNG file the same as a dummy or example PNG file?
- Yes. Sample, test, dummy and example PNG files are different names for the same thing: a PNG file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy PNG file.