Download 20 MB PDF file for testing

Open the single page and check document-upload behavior. The preset is 20 MiB (20,971,520 bytes); choose MB for decimal megabytes.

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

Where a 20 MB PDF comes up

  • Checking how your app reacts when a user tries to email a 20 MB report.
  • Testing Telegram bots that download user documents.
  • Verifying that a document management system uploads in chunks instead of one request.

Limits it lands on

  • Outlook limits internet email accounts to 20 MB attachments by default, and iCloud Mail caps messages at 20 MB — this file meets both ceilings before encoding.
  • Telegram's Bot API lets bots download files up to 20 MB with getFile, so this is the largest document a bot can fetch.
  • Gmail allows 25 MB of attachments, but after base64 encoding the message carries about 28 million bytes.

What is inside the file

A 20,970,798-byte padding stream follows the page; total structural overhead is 722 bytes.

Created locally in your browser — nothing is downloaded from a server, so generating it costs no bandwidth.

Questions

Will Gmail send a 20 MB PDF?

Gmail counts 25 MB of attachments, so 20 MB is within the limit, but other providers in the chain may compare the encoded message size, which is about a third larger.

What about Outlook?

With default settings for an internet account, 20 MB is the ceiling, so this file is the boundary case.

Reference and checks

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