PDF to Base64 Encoder
Convert a PDF to a Base64 string in your browser. Useful for embedding PDFs in JSON or email APIs.
Drop files here, or click to browse
PDF files only. Max 25MB.
Max 20 MB per file
PDF to Base64 encodes any PDF file into a Base64 string for use in JSON APIs, email attachments, or data URIs. ConvertDa's free PDF to Base64 tool runs in your browser — your file never uploads. Copy the result or download as a text file.
How to pdf → base64
- 1
Drop your PDF into the upload area.
- 2
The Base64 string appears below.
- 3
Copy or download as text.
Frequently asked questions
Why would I encode a PDF as Base64?▾
Common reasons: embedding in JSON payloads, sending via APIs that require text, or building data URIs for inline preview.
Why would I Base64-encode a PDF?▾
Common reasons: embedding a PDF inside a JSON API request, sending a PDF inline in an email body, or generating a data URI for a download link in HTML or JavaScript.
Is the data URI prefix optional?▾
Yes. With the prefix (data:application/pdf;base64,...), the string can be used directly as a downloadable link. Without it, you get just the encoded bytes.