Developer Rizz tool

File Base64

Encode a file as Base64 or decode a data URI.

Turn a file into a Base64 data URI, or decode Base64 into a downloadable file locally in your browser.

How to use File Base64

  1. Choose Encode file or Decode Base64.
  2. Upload any file, or paste a Base64 string/data URI.
  3. Copy the data URI or download the decoded file.

What this tool does

File encoding

Encode the bytes of a selected file, including images, PDFs, documents, and archives.

Data URI support

File type is preserved automatically when you decode a full data URI.

Local processing

Selected file bytes are read and converted in the browser rather than uploaded for conversion.

Common uses

  • Create a data URI for a small file.
  • Restore a file from raw Base64 or a data URI.

Processing and privacy

Browser processing: The selected file is read and encoded or decoded locally in the browser.

Limitations to know

  • Base64 increases data size by roughly one third.
  • Large files can consume substantial browser memory; raw Base64 may not preserve a reliable filename or MIME type.

Keep original files where applicable, inspect the result, and do not rely on an automated output without checking that it fits your intended use.

Practical tips

  • Keep the full data URI when you can — it includes the MIME type, so decoded downloads get the right extension automatically.

Frequently asked questions

Is there a file size limit?

It all runs in your browser, so huge files can use a lot of memory. Smaller files work best.

Related tools and guidance