Download a sample PDF of any size

Testing an upload form, a size limit or an email attachment? Choose PDF, JPG or PNG, press a size or type your own, and get a file of exactly that many bytes. It is made in your browser, so even 50 MB takes no time to download.

Made on your device: nothing is uploaded or saved. Free, with no sign-up.

Sample file maker

Kind of file

The file is made on your device and goes straight to your downloads. Nothing is sent or received.

How it works

  1. Choose PDF, JPG or PNG.
  2. Press a size such as 2 MB, or type your own. For a PDF, choose the number of pages too.
  3. Press Make the file and download it. Its exact size in bytes is shown next to it.

Trying a size limit

A form that allows "up to 2 MB" may count 2,000,000 bytes or 2,097,152. Make one file of each, 2 MB counted both ways, and try them: if the bigger one is refused, the form counts in 1,000s. A file a little over the limit, such as 2.1 MB, shows whether the form explains what is wrong or just fails.

For a real document that is too big or too small for a form, use Compress PDF to Size or Increase PDF Size instead: they keep your pages and change only the size.

Frequently asked questions

Is the file exactly the size I chose?

Yes, to the byte. 2 MB is 2,097,152 bytes when a KB is counted as 1,024 bytes, as Windows and most upload forms count. Choose 1,000 instead to match how phones and Macs show sizes: then 2 MB is 2,000,000 bytes.

What is inside the file?

A PDF has A4 pages that say "Sample PDF file", the page number and the size. A JPG or PNG is a picture that says its size and its pixels. The rest of the size is filler that readers and viewers skip, so the file opens quickly and shows nothing odd.

Why make it here instead of downloading one?

A sample file from a website is a real download of the full size, which takes time and data on a phone, and comes only in the sizes that site chose. Here the file is made on your device in a moment, in any size from 2 KB to 50 MB, and nothing is sent or received.

Can a sample PDF have many pages?

Up to 50. Each page adds about a kilobyte to the smallest size the file can be, so a very small PDF has to have few pages.

Is anything I make sent anywhere?

No. The file is drawn and put together in your browser, and goes straight to your downloads. Nothing about it reaches a server.

Page updated by Tarun Parmar. Something wrong or missing? Tell me.