Download 1 MB JPG image for testing

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

1,048,576 bytes · built in your browser, nothing uploaded
1,048,576 bytes
1 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: 1,048,576 B. Generate and download each file to test your endpoint.

Where a 1 MB JPG comes up

  • Testing a Google Form file-upload question set to its 1 MB option.
  • Checking avatar and profile-picture uploads that reject anything over 1 MB.
  • Reproducing 413 errors from an nginx server that still runs the default body size.

Limits it lands on

  • Google Forms offers 1 MB, 10 MB, 100 MB, 1 GB and 10 GB as per-file maximums; this photo is exactly the smallest option.
  • nginx's default client_max_body_size of 1m covers the full request, so this image plus form fields is refused.

What is inside the file

Your browser encodes an 800 × 600 gradient image (around 60–80 KB at quality 0.85), then about 16 COM comment segments of up to 65,533 bytes fill it to the exact size.

COM segments are part of the JPEG standard, so Photos, Preview and every browser display the picture normally.

Questions

Is it a real photo?

It is a real JPEG image of a colour gradient with the dimensions written on it — not random bytes renamed to .jpg.

Will image tools strip the padding?

Many optimisers drop comment segments, so a re-saved copy will be much smaller. That is expected.

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