A 5 MB PDF test file
File info
| File Format | |
|---|---|
| File Size | 5 MB(5,242,880 bytes) |
| MIME Type | application/pdf |
| MD5 | 98913f7ab4db8491acf35876f1eef29a |
| SHA-1 | 06c551bdf96b86b91b2f2dfc728160ca6320d0f0 |
| SHA-256 | 08a0862f52184bfe62b2ffb79779e26ea753397c43f52afcf61c25f2fe41b4c4 |
Download via command line
curl -O https://devlab.itlibra.com/files/pdf/pdf-5mb.pdf
wget https://devlab.itlibra.com/files/pdf/pdf-5mb.pdf
Invoke-WebRequest -Uri "https://devlab.itlibra.com/files/pdf/pdf-5mb.pdf" -OutFile "pdf-5mb.pdf"
About this file
A 5 MB test file in PDF format, sized to exactly 5,242,880 bytes. Free to download with no signup, for verifying upload limits and file-handling behaviour.
The MD5, SHA-1 and SHA-256 values listed above are the real digests of this file. Recomputing them after download confirms the transfer was not corrupted, and they double as known-good expected values when testing a hashing library.
What this size means in practice
5 MB lands in a useful spot for probing PHP defaults. upload_max_filesize ships as 2M and post_max_size as 8M, so on an untouched PHP install this file is rejected by upload_max_filesize while still fitting inside the POST body cap.
Serverless platforms cut in even earlier: AWS Lambda caps synchronous invocation payloads at 6 MB and Vercel Serverless Functions cap request bodies at 4.5 MB. Use this file to verify what happens when the request dies before your handler ever runs.
Getting a feel for this size
On a 10 Mbps link the transfer takes roughly 4.2 seconds, and about 419 ms at 100 Mbps. Base64-encoded it grows to roughly 6,827 KB.
Assuming a text-oriented PDF with embedded fonts runs about 80 KB per page, this size is on the order of 64 pages. Image-heavy PDFs will hold far fewer pages at the same size.
What to check for this format
PDF starts with the %PDF- signature and keeps a cross-reference table (xref) at the end that points to every object. Because of that layout, losing the tail of the file makes the whole document unreadable — which makes PDF a good subject for truncation-detection tests.
- Whether page-count extraction and text extraction finish without timing out on large files
- The time and memory cost of thumbnail generation, i.e. rasterising the first page
- Because PDF can embed JavaScript and external references, whether your sanitisation path runs when accepting user uploads
FAQ
- Is this file free to use?
- Yes — fully free and no signup required. Use it for any commercial or non-commercial test/verification purpose.
- What is inside the file?
- Dummy data generated for testing — sized to match the listed size exactly.
- What are the hash values for?
- Verify integrity after download or use them as test data for hashing libraries.
Other sizes in the same format
102,400 bytes
application/pdf
104,857,600 bytes
application/pdf
10,240 bytes
application/pdf
10,485,760 bytes
application/pdf
1,048,576 bytes
application/pdf
26,214,400 bytes
application/pdf
512,000 bytes
application/pdf
52,428,800 bytes
application/pdf