Download a sample GIF image of any size
Pick a size and get a valid GIF89a image with a real picture, generated in your browser.
1 MB = 1,000,000 B · 1 MiB = 1,048,576 B
Advanced: test an upload limit
Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.
How is the sample GIF file built?
Each file is a single-frame GIF89a image with a 256-colour gradient palette. The picture grows with the size you ask for, up to 2048 × 1536 pixels, and a Comment Extension block takes up the remaining bytes. Comment blocks are part of the GIF89a format, so decoders skip them without complaint.
The smallest valid GIF file is 852 bytes; any byte count from there up to 2 GiB can be selected. MIME type: image/gif.
Which GIF size do you need?
What is inside a 1 MiB GIF file?
The 1 MiB sample is 1024 × 768 pixels. Its image data takes 888,222 bytes because the LZW stream is written with 9-bit codes and a clear code every 254 pixels, which keeps the encoder simple but gives almost no compression. A comment block of 156,076 bytes brings the file to exactly 1,048,576 bytes. An optimiser that strips comments and re-encodes the pixels makes the file much smaller, so the size drop shows that step ran.
When is a sample GIF file useful?
- Testing image fields that still accept GIF, such as avatars, forum posts and email editors.
- Checking that a thumbnail service handles a palette image, not only RGB JPEG and PNG.
- Measuring how an upload limit treats a large but simple image.
Questions about GIF test files
Is the GIF animated?
No. It has one frame. It is meant for size and decoding tests, not animation tests.
Why is the file larger than a normal GIF of the same size?
The pixels are stored with almost no LZW compression, and a comment block fills the rest. A normal encoder would make the same picture much smaller.
Format reference and related tools
Format reference: GIF89a specification (W3C).
Other formats in this family (Images): PNG · JPG · WebP · SVG · BMP · TIFF · ICO.
Related: Image Convert · Compress Image · Bytes to MB converter
Noticed an issue with this test file? Report an issue →