Images · JPG

A 2 MB JPG file, on demand.

2,097,152 bytes of JPEG — the largest image a WordPress site on default PHP settings will take into its media library.

2,097,152 bytes · built in your browser, nothing uploaded
0 bytes
Exact size

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.

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