OomTools

PDF to Base64 Encoder

Turn a PDF into a Base64 string or a ready-to-use data URI you can embed in HTML, JSON or an API payload. Encoding happens in your browser, so the file is never uploaded. Note that Base64 increases size by about a third.

  • 100% free
  • Private & safe
  • Runs in your browser

Your files are processed securely in your browser and are not uploaded to our servers.

Why use PDF to Base64?

PDF to Base64 works on your documents locally, so you get the result in seconds with no watermarks, no sign-up and no files leaving your device.

  • 100% private: files are processed in your browser and never uploaded.
  • Completely free, with no account, no watermarks and no usage limits.
  • Handles Input: PDF; Output: Base64 string + data URI.
  • Add a PDF.
  • Works on any device — desktop, tablet and phone — and is fully keyboard accessible.

How to use PDF to Base64

  1. Add a PDF.
  2. Click Encode to Base64.
  3. Copy the Base64 or the data URI.
  4. Paste it where you need it.

Examples

  • Embedding a small PDF in a JSON payload.
  • Inlining a PDF as a data URI.

Supported formats & limits

  • Input: PDF
  • Output: Base64 string + data URI

Limitations

  • Base64 is best for small files; it adds ~33% to the size.

Frequently asked questions

Is the PDF uploaded?

No — it's encoded in your browser.

What's the data URI for?

You can paste it into an href or embed to open the PDF without a separate file.

Why is the output large?

Base64 encoding increases size by roughly a third versus the binary file.

Was this tool helpful?