Skip to main content
Developer utility · Browser-local

Byte Array to PDF Online Free

Direct answer

Turn an existing PDF byte array into a downloadable .pdf from Base64, hex/Uint8Array values or raw binary. The bytes stay in your browser and are not rewritten.

Base64 bytes to PDFHex array to PDFRaw bytes to PDF

Package existing PDF bytes

Choose how the bytes are represented, paste them below, then download the unchanged bytes as a PDF file.

Input representation
0 characters · up to 20.00 MB decoded

Paste Base64, with or without line breaks. A data:…;base64, prefix is also accepted.

Byte decoding happens in this tab; pasted bytes are not sent to BytesPDF servers.

Base64

Standard, URL-safe or data-URL input.

Hex arrays

0x bytes, hex pairs or Uint8Array syntax.

Raw binary

One Latin-1 byte value per character.

This utility does not render arbitrary bytes, images, or source data into new PDF pages. The input must already contain a PDF; the header and end-marker check is not a full structural validation.

Three steps

How to Save PDF Bytes as a File

Choose the representation your application gives you, decode locally, then inspect the downloaded PDF.

  1. 1

    Choose the byte representation

    Select Base64, hex or raw binary to match the bytes you have copied from your code or API.

  2. 2

    Paste the existing PDF bytes

    Paste the encoded bytes, choose a filename, and let the tool check for a PDF header and end marker.

  3. 3

    Download and verify the file

    Create a local PDF download, then open it in a PDF reader and check the pages you need.

Input formats

Base64, Hex Arrays, or Raw Binary

This tool restores a PDF file from bytes that already represent a PDF—it does not convert unrelated data into document pages.

Base64 bytes to PDF

Use Base64 when an API, JSON response or source code exposes the PDF as an encoded string. Whitespace and standard Base64 data URLs are accepted.

Hex array to PDF

Paste hex pairs such as 25 50 44 46, prefixed bytes such as 0x25, or a JavaScript byte array.

Raw bytes to PDF

Raw mode maps each character with a value from 0 to 255 to one byte. Clipboard and text-editor conversions can corrupt non-text data; prefer Base64 or hex when possible.

Important boundary: A byte array must already contain a complete PDF. Renaming arbitrary binary data to .pdf does not convert it, and this utility does not build PDF pages from text or images. Its header/trailer check is a quick input guard, not a full PDF validation.
Frequently asked questions

Byte Array to PDF FAQ

What the free online converter does, and what it deliberately does not claim to do.

Can I convert bytes to PDF online for free?

Yes—when the bytes already contain a PDF. Choose Base64, paste the value (or a Base64 data URL), choose a filename and create the download. This free online bytes-to-PDF tool decodes the bytes in your browser and saves those same bytes as an application/pdf file; it does not re-render the document.

How do I turn Base64 bytes into a PDF?

Choose Base64, paste the Base64 value (or a Base64 data URL), choose a filename and create the download. The tool decodes the bytes in your browser and saves those same bytes as an application/pdf file; it does not re-render the document.

Can I download a PDF from a JavaScript Uint8Array or hex array?

Yes. In Hex / byte array mode, paste hex pairs, 0x-prefixed byte values, or a literal such as Uint8Array([37, 80, 68, 70]). Decimal array values must be between 0 and 255. The values must represent the complete bytes of a PDF.

Can I convert raw bytes to PDF?

You can package a raw byte string as a PDF when each character represents one byte and the bytes are already a PDF. Raw binary mode maps character values 0–255 directly to bytes; text editors and clipboard tools can change non-text bytes, so Base64 or hex is safer for arbitrary binary data.

Does this turn arbitrary binary data into PDF pages?

No. This is a byte-to-file utility, not a PDF authoring or binary-to-page converter. The input must already contain PDF data; images, text, database values and other arbitrary bytes are not rendered into new pages.

Does the tool fully validate or repair a PDF?

No. It checks for a %PDF- header near the start and a %%EOF marker near the end, which can catch common wrong-input or truncation mistakes. It does not parse every PDF object, repair corruption, or certify that every reader will open the result.

Are my pasted bytes uploaded?

No. Decoding and Blob creation happen in this browser tab. The pasted byte string is not sent to BytesPDF servers; your browser, clipboard manager, extensions and download location remain separate parts of your device environment.