Skip to main content

5 MB JPG test file

A JPEG image of exactly 5,242,880 bytes, created instantly in your browser. Nothing is uploaded, and there is no sign-up.

Testing a limit? Grab the edge cases too

Need another size or name? Open it in the generator.

What’s inside the file

A valid 1×1 pixel JPEG followed by padding. Browsers and image libraries open it; the padding makes it the exact size you need.

  • Size: 5,242,880 bytes = 5 MB (binary) ≈ 5.24 MB (decimal)
  • MIME type: image/jpeg
  • File name: dummy-5mb.jpg

Will a 5 MB file upload?

How a 5 MB file compares with published limits (verified 2026-09-27):

ServiceLimit5 MB file
Gmail — email attachments (total per message)25 MBFits
Outlook.com — email attachments25 MBFits
Yahoo Mail — email attachments (total per message)25 MBFits
WhatsApp — documents / files2 GBFits
Discord (free) — file attachments20 MBFits
Slack — file upload1 GBFits
Facebook Messenger — files in chats100 MBFits
Notion (Free) — file upload5 MBFits
Trello (Free) — card attachment from computer10 MBFits
X (Twitter) — image5 MBFits
LinkedIn — document post (pdf, docx, pptx)100 MBFits
Shopify — product image20 MBFits
Typeform — file upload question10 MBFits

Sources and 40+ more limits (servers, frameworks, cloud storage): file upload limits reference.

Good for testing

  • Profile-photo and avatar upload limits
  • Image resize / thumbnail workers
  • CDN and image-optimisation rules

Questions

Is this 5 MB JPG exactly 5,242,880 bytes?

Yes. The file is exactly 5,242,880 bytes (5 MB with 1 MB = 1,024 × 1,024 bytes). If the system you test counts 1 MB as 1,000,000 bytes, use the 5,000,000-byte button instead.

Will the JPG file open?

A valid 1×1 pixel JPEG followed by padding. Browsers and image libraries open it; the padding makes it the exact size you need.

Is it safe? Where does the file come from?

The file is created by JavaScript in your own browser when you click the button. Nothing is uploaded or downloaded from a server, and the file contains no macros, scripts or personal data.

More about the format: JPG format guide.