Download 5 MB JPG image for testing

Preview the image and test your image-upload limit. The preset is 5 MiB (5,242,880 bytes); choose MB for decimal megabytes.

5,242,880 bytes · built in your browser, nothing uploaded
5,242,880 bytes
5 MiB · JPG · 1,927 B
Exact size

1 MB = 1,000,000 B · 1 MiB = 1,048,576 B

WidthHeight
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: 5,242,880 B. Generate and download each file to test your endpoint.

Where a 5 MB JPG comes up

  • Testing an image upload route built on API Gateway and Lambda.
  • Checking bots that send photos through Telegram.
  • Simulating a typical smartphone photo size for gallery and feed uploads.

Limits it lands on

  • Telegram's Bot API accepts photos up to 10 MB with sendPhoto, so this one goes through.
  • Base64-encoded for a Lambda proxy integration it becomes about 6.99 million bytes, over the 6 MB synchronous limit.
  • It is also above Vercel's 4.5 MB serverless request body maximum.

What is inside the file

About 80 padding segments sit between the start-of-image marker and the encoded picture; the image data itself is unchanged.

The canvas is drawn with a gradient and texture blocks so the encoder produces a realistic, non-trivial JPEG.

Questions

Why use a 5 MB photo for serverless tests?

It is a normal phone-photo size, yet it is the point where encoding overhead pushes many serverless upload paths over their limit.

Does the image look different at each size?

No — the visible picture is the same 800 × 600 image; only the comment padding changes.

Reference and checks

Format reference: ITU-T T.81 (JPEG).

Preset target: 5 MiB (5,242,880 bytes). Verify the downloaded file's byte count.

Generate another size in this format · Technical notes for every format · Guide to testing file upload limits · Data processing and privacy

Related tools: Image Convert · Resize Image · Compress Image.

Noticed an issue with this test file? Report an issue →