Download 2 MB JPG image for testing

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

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

Where a 2 MB JPG comes up

  • Testing the "exceeds the maximum upload size for this site" message in WordPress.
  • Checking image upload limits in CMS and forum software built on PHP.
  • Comparing how image optimiser plugins treat oversized metadata.

Limits it lands on

  • WordPress inherits PHP's upload_max_filesize, which is 2M out of the box, so this image is exactly the boundary.
  • It is under Django's 2.5 MB in-memory upload threshold, so a Django app keeps it in RAM.

What is inside the file

An 800 × 600 base image followed by roughly 32 comment segments. The pixels are a fraction of the file; the rest is standards-compliant metadata.

File name: sample-2mb.jpg.

Questions

Why does WordPress reject it on my host?

If the host set upload_max_filesize below 2M — or WordPress shows a lower maximum on the Media page — the limit is lower than this file.

How do I raise the limit?

Increase upload_max_filesize and post_max_size in php.ini or your host's control panel; WordPress itself has no separate setting.

Reference and checks

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

Preset target: 2 MiB (2,097,152 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 →