PDF to Base64 Converter Online
Encode a PDF into Base64 text without changing its bytes. Choose plain Base64 or a PDF data URL, then copy or download the result.
Choose your PDF
Your encoded PDF
Encode the original PDF file as Base64
This tool reads the input file as bytes and uses Base64 to represent those same bytes as text. It does not rebuild, render, modify or compress the document. Choose the data URL form only when an application expects the prefix data:application/pdf;base64,.
Common use cases
- Pass a PDF as a Base64 string to a compatible API.
- Store an encoded PDF in JSON or a test fixture when appropriate.
- Download a UTF-8 .txt file containing the exact encoding.
Frequently asked questions
Does Base64 compress a PDF?
No. The text form generally grows by about 33%.
Can I decode the output back to the same PDF?
Yes, provided the Base64 is kept intact; use our Base64 to PDF tool for decoding.