Create a sample PDF file at your chosen size

Choose a size and download a one-page PDF for document uploads and basic reader checks. The extra bytes do not add pages or scanned images.

10,485,760 bytes
10 MiB · PDF · 772 B
Exact size

1 MB = 1,000,000 B · 1 MiB = 1,048,576 B

Advanced: test an upload limit

Enter the byte limit above, then choose one byte below, the exact limit or one byte above. Each choice uses the same base: 10,485,760 B. Generate and download each file to test your endpoint.

What to test with a PDF fixture

Open the saved PDF, check its one-page count and compare the exact bytes with your upload limit. Use representative image-heavy documents for compression tests.

Merge PDFs · Compress a PDF · 2 MB PDF test guide · 10 MB PDF test guide

Choose a size here

These options set the generator above. Separate size guides explain how to test a particular upload boundary.

Guides for specific upload limits

File structure and testing limits

One A4 page with two lines of text; an unreferenced stream supplies the extra bytes. File size does not represent a long document or scanned pages.

Format reference: PDF 32000-1.

This generator assembles the file in your browser; file content is not sent to a server. Site analytics may make network requests. Office ↔ PDF conversion uses a separate server workflow. Data processing and privacy.

Measured regression fixture (2026-10-13): 1,048,576 bytes. Validation method and limits.

Technical notes for every format · Guide to testing file upload limits

Related tools: Merge PDF · Compress PDF.

Questions

How small can a PDF file be?

About 772 bytes. Below that the format cannot carry its mandatory structure, let alone padding.

What does this sample PDF contain?

One A4 page with two lines of text and an unreferenced padding stream. A 2 MiB or 10 MiB download still contains one page; use a separate scanned document to test OCR or image-heavy compression.

Can I ask for an unusual size?

Any byte count above the minimum works — for example 3,145,728 bytes (exactly 3 MB) or 27.5 MB. Drag the caliper or type the number.

Noticed an issue with this test file? Report an issue →