Skip to content

A 5 MB GIF test file

100% Free No signup Instant download Browser-only 5 languages
Free download(5 MB)

gif-5mb.gif

File info

File Format GIF
File Size 5 MB(5,242,880 bytes)
MIME Type image/gif
MD5 ec243b968221a1b72f45440b566d88f4
SHA-1 f80f7196b6ed0c245aee8ea52f8209d01be2a85e
SHA-256 a61bea4e04241f467bed25c689308774411716e5d9b93c2c228c02fb83463c94

Download via command line

curl
curl -O https://devlab.itlibra.com/files/images/gif/gif-5mb.gif
wget
wget https://devlab.itlibra.com/files/images/gif/gif-5mb.gif
PowerShell
Invoke-WebRequest -Uri "https://devlab.itlibra.com/files/images/gif/gif-5mb.gif" -OutFile "gif-5mb.gif"

About this file

A 5 MB test file in GIF format, sized to exactly 5,242,880 bytes. Free to download with no signup, for verifying upload limits and file-handling behaviour.

The MD5, SHA-1 and SHA-256 values listed above are the real digests of this file. Recomputing them after download confirms the transfer was not corrupted, and they double as known-good expected values when testing a hashing library.

What this size means in practice

5 MB lands in a useful spot for probing PHP defaults. upload_max_filesize ships as 2M and post_max_size as 8M, so on an untouched PHP install this file is rejected by upload_max_filesize while still fitting inside the POST body cap.

Serverless platforms cut in even earlier: AWS Lambda caps synchronous invocation payloads at 6 MB and Vercel Serverless Functions cap request bodies at 4.5 MB. Use this file to verify what happens when the request dies before your handler ever runs.

Getting a feel for this size

On a 10 Mbps link the transfer takes roughly 4.2 seconds, and about 419 ms at 100 Mbps. Base64-encoded it grows to roughly 6,827 KB.

Estimating a photographic GIF at roughly 0.5 bytes per pixel, this size works out to around 10,485,760 pixels — about 3,739 × 2,804 px at a 4:3 aspect ratio. Compression varies enormously with image content, so treat this purely as an order-of-magnitude figure.

What to check for this format

GIF begins with the ASCII signature GIF87a or GIF89a and uses a palette of up to 256 colours. Because it can hold multiple animation frames, code written for single-frame images either grabs only the first frame or, worse, expands every frame and consumes far more memory than expected.

  • Whether resizing an animated GIF preserves the animation or flattens it to a still
  • Whether thumbnail generation correctly extracts the first frame
  • Whether you cap memory when expanding all frames — usage grows with frame count multiplied by resolution

FAQ

Is this file free to use?
Yes — fully free and no signup required. Use it for any commercial or non-commercial test/verification purpose.
What is inside the file?
Dummy data generated for testing — sized to match the listed size exactly.
What are the hash values for?
Verify integrity after download or use them as test data for hashing libraries.