>
PERMARKET
Tools › PDF › PDF to Base64
B64

PDF to Base64

Encode a PDF as a Base64 string.

Choose a file to begin. Nothing leaves your device.

Ad · Large Rectangle (336×280)

How to use PDF to Base64

  1. Pick the PDF. It is read and encoded with no upload.

  2. Press Convert to Base64. The text appears in the box.

  3. Copy it — there is nothing to download, it’s text you can paste.

When you actually reach for this

  • Embed a small PDF inside a JSON config or a data URI in code.
  • Pass a file through a system that only accepts text.

Where this tool stops being accurate

  • Base64 is about 33% larger than the original bytes, so a 1 MB PDF becomes roughly 1.37 MB of text.
  • It’s an encoding, not encryption — anyone with the string can decode it back to the PDF.
  • Very large PDFs produce very large strings that may be awkward to paste.

How it compares to other options

  • Versus hosting the file: Base64 lets you inline a PDF where only text is allowed, at the cost of size.
  • Versus online encoders: no upload of your file.

A worked example

A developer needed to embed a 40 KB PDF into a test fixture as a string. Base64 gave him a paste-ready blob for the unit test.

Frequently asked questions

Why is the output so much bigger than my file?

Base64 expands data by about a third. A 1 MB PDF becomes roughly 1.37 MB of text. That’s normal for the encoding, not a bug.