# Base64 to PDF Converter

> Decode a Base64 string into a real, downloadable PDF file.

To convert Base64 to a PDF, paste the encoded string and it is decoded into real bytes and offered as a downloadable file. A `data:application/pdf;base64,` prefix, line breaks and URL-safe characters are all handled. The header is checked, so if the data decodes to something that is not a PDF you are told rather than handed a file that will not open.

**URL:** https://convertto.tech/t/base64-to-pdf
**Category:** Encoders & Decoders (https://convertto.tech/c/encoding-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your base64 data.
2. Press Run, then download the result when it is ready.

## FAQ

### My string will not decode.

Base64 must be a multiple of four characters and padded with "=". The usual cause is a copy that was truncated or wrapped by an email client. URL-safe variants using "-" and "_" are converted automatically.

## Sources

- [RFC 4648 — Base16, Base32 and Base64 Encodings](https://www.rfc-editor.org/rfc/rfc4648) — IETF

## Related tools

- [PDF to Base64 Converter](https://convertto.tech/t/pdf-to-base64): Encode a PDF as a Base64 string or a data URI, ready to embed in code.
- [Base64 to File Converter](https://convertto.tech/t/base64-to-file): Decode Base64, a data URI or hex back into a downloadable file, with the type detected automatically.
- [Multi-Format Encoder](https://convertto.tech/t/multi-encoder): Encode text into Base64, hex, binary, URL, HTML entities, ROT13 and more, all at once.
- [File to Base64 Converter](https://convertto.tech/t/file-to-base64): Encode any file — image, PDF, video, font, archive — as Base64, a data URI, hex or a byte array.
- [Excel to PDF](https://convertto.tech/t/excel-to-pdf): Convert an Excel workbook to a PDF table, one section per sheet, in your browser.
- [HTML to PDF](https://convertto.tech/t/html-to-pdf): Convert HTML markup into a clean, text-based PDF document in your browser.
- [Markdown to PDF](https://convertto.tech/t/markdown-to-pdf): Turn Markdown into a properly typeset PDF with real headings, lists, tables and code blocks.
- [Text to PDF](https://convertto.tech/t/text-to-pdf): Turn plain text, notes or log output into a paginated PDF with page numbers.
