PDF to Base64

Upload a PDF file and convert it into a Base64 encoded string for easy sharing or embedding.

About this tool

Base64-encoding a PDF turns the binary file into a plain text string you can embed directly in JSON payloads, database columns, or API requests — useful anywhere a raw file upload isn't practical.

How to use it

  1. Click the upload area and choose a PDF file, or drag one in.
  2. The tool reads the file and converts it to a Base64 string automatically.
  3. Copy the encoded string, or download it as a .txt file.

FAQ

Does the PDF get uploaded anywhere?

No. The file is read and encoded entirely in your browser using the FileReader API; it never leaves your device.

Why is the Base64 output so much longer than the original file?

Base64 encoding trades file size for text-safety — it inflates data by roughly 33%, since every 3 bytes of binary become 4 characters of text.

Is there a file size limit?

The tool itself has no artificial limit, but very large PDFs (tens of MB) can be slow to encode and produce Base64 strings too large to be practical for most APIs.