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
| Size | 50 MB (1 KB counted as 1,024 bytes) |
|---|---|
| Exact length | 52,428,800 bytes |
| In decimal megabytes | 52.429 MB |
| As base64, as sent inside JSON | 69,905,068 bytes |
| Pages | 1 (the rest is unused data that readers skip) |
| Saved as | test-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?
| Limit | Written as | This file |
|---|---|---|
| Express body-parser (default)the largest request body its JSON and form parsers accept. Express body-parser documentation | 100kb | Over: 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 documentation | client_max_body_size 1m | Over: rejected unless the limit is raised |
| PHP upload_max_filesize (default)the largest single uploaded file. PHP manual, core php.ini directives | 2M | Over: 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 directives | 8M | Over: rejected unless the limit is raised |
| Gmail attachments (personal accounts)the largest total size of attachments on a message. Gmail Help, send attachments | 25 MB | Over: 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 413 | 100 MB | Fits |
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?
| Connection | Time to send 52,428,800 bytes |
|---|---|
| 5 Mbps | 1 min 24 s |
| 20 Mbps | 21 s |
| 100 Mbps | 4.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.