Sample PDF Generator
runs in your browserno sign-upfree
Download a sample PDF of any size — 1 MB, 5 MB, 10 MB or exact bytes — with as many pages as you need. A valid dummy PDF for testing, made on your device.
Files are made on your device — nothing is uploaded or stored on a server
About this tool
Download a sample PDF of exactly the size you need — 100 KB, 1 MB, 5 MB, 10 MB, 50 MB or any number of bytes — with 1 to 500 pages in A4 or US Letter. It is a real, valid PDF that opens in every viewer, ideal for testing upload limits, previews, email attachments and PDF tools. The file is made in your browser, so there is no waiting for a server.
How to use
- Choose the size of the PDF, or untick "Exact file size" for the smallest file.
- Set the number of pages and the page size.
- Press "Download sample PDF".
FAQ
Is this a real PDF or just a renamed file?
A real PDF: each page has a heading, page number and sample text. It opens in Adobe Reader, browsers, Preview and any PDF tool, and passes PDF checks.
How is the file exactly the size I chose, and still valid?
The file is made normally, then filled up in a place its format sets aside for extra data — a comment in a JPG or PNG, an unused object in a PDF, a comment in a Word document, or more rows in a CSV or JSON file. So it opens normally in any app, and the size matches to the byte.
Is 1 MB 1,000,000 or 1,048,576 bytes?
By default 1 MB = 1,048,576 bytes (1024 × 1024), which is what Windows and most upload limits (PHP, Nginx, web forms) use. Tick "Decimal" for 1 MB = 1,000,000 bytes, as macOS and storage makers count. The exact byte count is always shown.
How many pages can the PDF have?
From 1 to 500. The page count and file size are independent, so you can make a 1-page PDF of 20 MB or a 300-page PDF of 2 MB, whatever your test needs.
Are the files uploaded or stored anywhere?
No. Each file is made by your browser on your own device and saved straight to your downloads. Nothing is uploaded, and nothing is kept on our server.