All tools
Liveconvert from100% browser · private

PDF ↔ Base64

Encode a PDF to Base64 for inline embedding, or decode Base64 back to a PDF file.

PDF → Base64

Drop your PDF here, or click to browse

PDF up to ~100 MB · stays on your device

Base64 → PDF

Updated 2026 · Maintained by the CrispPDF team

APIs, JSON payloads, and data URIs often require files as Base64 strings. CrispPDF's Base64 tool encodes PDFs into text and decodes text back into PDFs—instantly and locally.

Upload a PDF to get a Base64 string you can paste into code. Or paste a Base64 string and download the reconstructed PDF. The workflow is developer-friendly: copy, paste, done.

For backend engineers embedding PDFs in JSON responses, the encoder saves a step. For front-end developers debugging data URIs, the decoder visualizes the payload.

Because encoding and decoding run in your browser, your data stays private. After decoding, explore related tools: compress the PDF, extract text, or add a watermark.

// How to use

How to use PDF ↔ Base64

  1. 1

    Pick a direction

    Choose PDF → Base64 to encode a PDF, or Base64 → PDF to decode a text string back into a PDF.

  2. 2

    Upload or paste

    Drop a PDF file, or paste a Base64 string into the input box.

  3. 3

    Convert

    Click Convert. CrispPDF encodes or decodes locally, safe for API payloads and email pipelines.

  4. 4

    Download or copy

    Copy the Base64 string, or download the decoded PDF, whichever direction you chose.

// Why CrispPDF

Why use CrispPDF for pdf ↔ base64?

CrispPDF runs entirely in your browser — your files never touch a server. No signup, no watermarks, no daily limits, no upsells. We built it because every other PDF site is slow, ad-stuffed, or hides the good features behind a paywall. CrispPDF is fast on a phone, fast on a laptop, fast on a 10-year-old machine. Output is byte-clean: signatures stay sharp, compressed PDFs stay readable, conversions preserve layout where the source allows. And because nothing leaves your device, even confidential documents are safe to process. Bookmark this page, share it with your team, and stop juggling five different PDF sites for five different tasks.

  • No signup, no email gate
  • No watermarks on output
  • Files never stored on a server
  • Works on phone, tablet, and desktop

// FAQ

PDF ↔ Base64 — frequently asked questions

+How to convert a PDF into a Base64 string?

Upload the PDF to CrispPDF and copy the generated Base64 text.

+How to decode Base64 text back to a PDF?

Paste the string into CrispPDF's decoder and download the PDF.

+Is there a file size limit for Base64 conversion?

Browser memory is the practical limit—most typical PDFs convert fine.

+How do I encode a PDF to Base64?

Drop the file into CrispPDF and copy the resulting string.

+Can I convert a Base64 string back into a PDF file?

Yes. Paste it into the decoder and download.

+Why do developers use Base64 for PDFs?

Base64 lets you embed binary data in text-only formats like JSON, XML, or emails.