Stax

…

Tools

50 MB PDF File — Sample Download, Exact Size

A valid 50 MB sample PDF of exactly 52,428,800 bytes, built in your browser: free, no sign-up, nothing uploaded. Shows which upload limits it meets.

Last updated:

A 50 MB PDF is 52,428,800 bytes, too big for an email attachment but still comfortably under Cloudflare's upload limit of 100 MB on the Free and Pro plans. It is the size for testing large-upload paths: chunked transfers, resumable uploads and what the interface does while a long upload runs. The button below builds one on your device in a moment.

This is a big file for a browser tab: it is built in memory, so on a phone or an older laptop close other tabs first.

Built on your device in a moment: nothing is uploaded, and no file is hosted. A different size, another file type or a PDF with several pages: test file generator.

The exact file

Size50 MB (1 KB counted as 1,024 bytes)
Exact length52,428,800 bytes
In decimal megabytes52.429 MB
As base64, as sent inside JSON69,905,068 bytes
Pages1 (the rest is unused data that readers skip)
Saved astest-file-50mb.pdf

Over email, under Cloudflare

Gmail's limit for attachments on a personal account is 25 MB, so this file is about twice too large and a mail client has to refuse it or offer a link instead. Cloudflare's documentation gives 100 MB as the largest upload on its Free and Pro plans, so a site behind them accepts this file as far as Cloudflare is concerned. Your own server may stop it earlier.

Will a 50 MB PDF pass these upload limits?

LimitWritten asThis file
Express body-parser (default)the largest request body its JSON and form parsers accept. Express body-parser documentation100kbOver: rejected unless the limit is raised
nginx (default)the largest request body nginx passes on; a bigger one gets a 413 error. nginx core module documentationclient_max_body_size 1mOver: rejected unless the limit is raised
PHP upload_max_filesize (default)the largest single uploaded file. PHP manual, core php.ini directives2MOver: rejected unless the limit is raised
PHP post_max_size (default)the largest whole POST request, all fields and files together. PHP manual, core php.ini directives8MOver: rejected unless the limit is raised
Gmail attachments (personal accounts)the largest total size of attachments on a message. Gmail Help, send attachments25 MBOver: rejected unless the limit is raised
Cloudflare upload limit (Free and Pro plans)the largest request body Cloudflare passes to your site. Cloudflare support docs, error 413100 MBFits

Each limit is the default or documented figure from the source named beside it. Your own server or plan may differ, and an upload is a request that carries headers as well as the file, which the "right at the limit" verdict allows for.

A long upload

At 5 Mbps the file takes about 1 min 24 s to send, at 20 Mbps about 21 seconds and at 100 Mbps about 4.2 seconds. The slow case is long enough to test pausing, cancelling, losing the connection part way and resuming, none of which a small file ever exercises.

How long does a 50 MB upload take?

ConnectionTime to send 52,428,800 bytes
5 Mbps1 min 24 s
20 Mbps21 s
100 Mbps4.2 s

Best case: bytes times eight, divided by the speed in megabits per second, ignoring protocol overhead and the connection's ups and downs.

The JSON and memory cost

Sent as base64 inside JSON, this file is 69,905,068 characters, which is why large files are normally sent as multipart or in chunks rather than encoded. Building the file also needs 50 MB of your browser's memory, so on a phone close other tabs first.

Frequently asked questions

How do I download a 50 MB PDF file?
Press the download button on this page. Your browser builds a valid PDF of exactly 52,428,800 bytes in a moment and saves it as test-file-50mb.pdf. Nothing is uploaded and no file is hosted, so there is no link to copy: the file exists only on your device.
Can I upload a 50 MB file through Cloudflare?
On the Free and Pro plans the limit in Cloudflare's documentation is 100 MB, so a 50 MB upload passes Cloudflare. Your origin server and any application limit still apply, and the smallest limit in the chain is the one that decides.
Why can't I email a 50 MB PDF?
Gmail limits attachments to 25 MB on personal accounts, and most other mail services set a limit in the same range. Use a shared link from a cloud drive instead, or split the document into parts that each fit.
Is it normal for building a 50 MB file to take a moment?
A moment, yes: the file is assembled in memory on your device, so it takes longer on a phone or an older laptop than on a desktop. If it fails, close other tabs and try again.

Related tools