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.
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.
Choose how the bytes are represented, paste them below, then download the unchanged bytes as a PDF file.
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.
Choose the representation your application gives you, decode locally, then inspect the downloaded PDF.
Select Base64, hex or raw binary to match the bytes you have copied from your code or API.
Paste the encoded bytes, choose a filename, and let the tool check for a PDF header and end marker.
Create a local PDF download, then open it in a PDF reader and check the pages you need.
This tool restores a PDF file from bytes that already represent a PDF—it does not convert unrelated data into document pages.
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.
Paste hex pairs such as 25 50 44 46, prefixed bytes such as 0x25, or a JavaScript byte array.
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.
.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.What the free online converter does, and what it deliberately does not claim to do.
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.
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.
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.
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.
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.
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.
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.