PDF to Base64
Convert PDF to Base64 string
Upload PDF File
Drag & drop or click to browse
How it works
- Select a PDF file from your device
- File is converted locally in your browser
- Copy the Base64 string or edit it
Base64 Output
0 characters
About PDF to Base64 Converter
1What is it?
Convert PDF files to Base64 strings. Embed PDFs directly in HTML, JSON, or XML. Useful for data transmission and storing small files as text.
2Use Cases
- Embed a PDF viewer in a webpage without external files
- Send PDF data in a JSON API response
- Store small PDFs in a database as text
- Create data URIs for testing
3Examples
Convert PDF
Input
[Upload PDF]
Output
data:application/pdf;base64,JVBERi0xLjQK...
?Frequently Asked Questions
Is there a file size limit?
Since conversion happens in your browser, the limit depends on your device's memory. However, Base64 strings are 33% larger than the original file, so very large PDFs might cause performance issues.