Download 5 MB PDF file for testing

Open the single page and check document-upload behavior. 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 · PDF · 772 B
Exact size

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

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 PDF comes up

  • Confirming your Vercel or similar function returns a friendly error instead of a raw 413.
  • Testing whether a front end blocks large files before sending them, rather than relying on the server.
  • Sizing document uploads for portals that advertise a "5 MB maximum" for applications or CVs.

Limits it lands on

  • Vercel caps serverless function request bodies at 4.5 MB and answers larger ones with 413 FUNCTION_PAYLOAD_TOO_LARGE; this file is over that cap.
  • Sent through AWS API Gateway to Lambda, base64 encoding turns it into roughly 6.99 million bytes — above Lambda's 6 MB synchronous payload limit.

What is inside the file

The document body is identical to the smaller PDFs; only the hidden stream grows, to 5,242,160 bytes.

File name on download: sample-5mb.pdf, so test logs show the size at a glance.

Questions

Is 5 MB here 5,000,000 bytes?

No — it is 5,242,880 bytes (5 × 1,048,576). If a form says "5 MB" and means decimal megabytes, this file is slightly over.

Can I upload it to Lambda directly?

Not through a synchronous invocation: the 6 MB payload limit applies to the encoded request, and base64 inflates binary bodies by about a third.

Reference and checks

Format reference: PDF 32000-1.

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: Merge PDF · Compress PDF.

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