PDF to Base64
Upload a PDF and get Base64 text you can send in an API call or store in code.
or drop a file here
Upload a PDF and click Convert to see the Base64 here.
How PDF to Base64 works
Turns a PDF file into Base64 text you can send in an API call, store in JSON or put in code. Upload the PDF, then click Convert.
Choose Raw Base64 for the encoded text alone, or Data URL for text that starts with data:application/pdf;base64,. You can switch between the two after converting.
Input to PDF to Base64
- Upload or drag and drop one .pdf file.
- A preview of the PDF and its size show before you convert, so you can check it is the right file.
- Files up to 20MB. Everything runs in your browser, so your file never leaves your computer.
Output from PDF to Base64
- Base64 text in an editor, with the size of the text shown.
- Copy it, download it as a .txt file named after your PDF, or open it in full screen.
- Base64 text is about one third larger than the PDF file.
- For the other way around, use Base64 to PDF.