Convert PDF documents to Base64 encoded strings for embedding or data transfer.
or drop PDF here
Upload a PDF and click 'Convert' to generate Base64 output.
Base64 encoding converts your PDF into a text string that can be embedded directly in JSON, XML, HTML, or transmitted through text-based protocols. This is useful for sending PDFs via APIs, storing in databases, or embedding in web applications.
Choose based on your use case:
<iframe> or <object> tags, or when the receiving system expects the full data
URI format with MIME type.This tool supports PDF files only. For other document types, convert them to PDF first using your preferred application.
Yes, files up to 10MB are supported. Keep in mind that Base64 encoding increases the data size by approximately 33%. For very large PDFs, consider compressing them first or using direct file transfer methods instead.
Your PDF never leaves your browser. All conversion happens locally on your device using JavaScript — nothing is uploaded to any server.
You can use our Base64 to PDF Decoder tool to convert the Base64 string back into a downloadable PDF file.