Minimal Valid PDF File: Smallest PDF Bytes in Hex & Base64 for Testing
Copy the smallest valid PDF in hex or base64. Minimal valid pdf file bytes hex and base64 pdf for testing parsers, APIs, and viewers. Paste into our free PDF viewer to preview.
📄 Smallest Valid PDF in Hex & Base64—Copy, Paste, Test
Developers often search for minimal valid pdf file bytes hex, smallest valid PDF, or base64 pdf to test viewers, parsers, or APIs. Below you’ll find a minimal valid PDF—the shortest byte sequence that still opens as a valid PDF—in both hex and Base64. Paste either into our free PDF viewer to preview it in the browser. No sign-up; client-side only.
What is a Minimal Valid PDF?
A minimal valid PDF (or smallest valid PDF) is the shortest sequence of bytes that still conforms to the PDF specification and opens in standard viewers. It must include a header (%PDF-1.4), a catalog, at least one page, a cross-reference table, and a trailer. The example below is one such file: a single page with the text "Hello, PDF!"—often used for testing base64 pdf pipelines or minimal valid pdf file bytes hex in parsers and validators.
Minimal Valid PDF in Hex (Smallest Valid PDF Bytes Hex)
Paste this hex string into our PDF viewer with Hex selected to view the minimal PDF. Valid PDFs start with 25504446 (%PDF in ASCII).
255044462d312e340a312030206f626a0a3c3c202f54797065202f436174616c6f67202f5061676573203220302052203e3e0a656e646f626a0a322030206f626a0a3c3c202f54797065202f5061676573202f4b696473205b33203020525d202f436f756e742031203e3e0a656e646f626a0a332030206f626a0a3c3c202f54797065202f50616765202f506172656e74203220302052202f4d65646961426f78205b30203020363132203739325d202f436f6e74656e7473203420302052202f5265736f7572636573203c3c202f466f6e74203c3c202f4631203520302052203e3e203e3e203e3e0a656e646f626a0a342030206f626a0a3c3c202f4c656e677468203434203e3e0a73747265616d0a42540a2f46312032342054660a313030203730302054640a2848656c6c6f2c20504446212920546a0a45540a656e6473747265616d0a656e646f626a0a352030206f626a0a3c3c202f54797065202f466f6e74202f53756274797065202f5479706531202f42617365466f6e74202f48656c766574696361203e3e0a656e646f626a0a787265660a3020360a303030303030303030302036353533352066200a30303030303030303039203030303030206e200a30303030303030303538203030303030206e200a30303030303030313135203030303030206e200a30303030303030323730203030303030206e200a30303030303030333633203030303030206e200a747261696c65720a3c3c202f53697a652036202f526f6f74203120302052203e3e0a7374617274787265660a3434330a2525454f460a
Minimal Valid PDF in Base64 (Base64 PDF)
Same minimal valid PDF as base64 pdf. Paste into the PDF viewer with Base64 selected.
JVBERi0xLjQKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSAvQ29udGVudHMgNCAwIFIgL1Jlc291cmNlcyA8PCAvRm9udCA8PCAvRjEgNSAwIFIgPj4gPj4gPj4KZW5kb2JqCjQgMCBvYmoKPDwgL0xlbmd0aCA0NCA+PgpzdHJlYW0KQlQKL0YxIDI0IFRmCjEwMCA3MDAgVGQKKEhlbGxvLCBQREYhKSBUagpFVAplbmRzdHJlYW0KZW5kb2JqCjUgMCBvYmoKPDwgL1R5cGUgL0ZvbnQgL1N1YnR5cGUgL1R5cGUxIC9CYXNlRm9udCAvSGVsdmV0aWNhID4+CmVuZG9iagp4cmVmCjAgNgowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA1OCAwMDAwMCBuIAowMDAwMDAwMTE1IDAwMDAwIG4gCjAwMDAwMDAyNzAgMDAwMDAgbiAKMDAwMDAwMDM2MyAwMDAwMCBuIAp0cmFpbGVyCjw8IC9TaXplIDYgL1Jvb3QgMSAwIFIgPj4Kc3RhcnR4cmVmCjQ0MwolJUVPRgo=
How to Use These Bytes
- Test our PDF viewer — Open PDF viewer, choose Hex or Base64, paste the string above, and preview the minimal PDF.
- Test APIs — Send the Base64 (or decode hex to bytes) in request bodies to test PDF handling.
- Parser / validator tests — Use as fixture input for unit tests or validation scripts.
Related Tools
PDF viewer — View PDF from hex or Base64 in the browser. Base64 — Encode/decode text or binary. Hex decoder — Convert hex to bytes or text.
✅ View the Minimal PDF in Your Browser
Paste the minimal valid pdf file bytes hex or base64 pdf above into our free PDF viewer to preview. No upload; all client-side.
Related Articles
QR Code Samples: Copyable Links & Text to Generate QR Codes
Free sample copyable QR code content: paste these URLs or text into a QR generator to get scannable codes. Includes sample QR code images for Spoold and the QR tool. Try in our free online QR generator.
How to Create a QR Code for Your Website (Free Online)
Create a scannable QR code for your website or link in seconds. Free online QR code generator: website qr code, qr code to link, get qr code, test QR codes. No sign-up.
Magic Box: Intelligent Content Detection That Learns Your Workflow
Discover how Magic Box instantly detects JSON, HTML, curl, JWT, CSV, regex, and 20+ formats. Learn how it adapts to your patterns and suggests workflows to accelerate your development.