Base64 File Encoder/Decoder

Convert any file to Base64 or decode Base64 back to files. Perfect for embedding files in JSON, XML, or APIs.

Drag & drop a file here, or click to select

How to Use

Encoding Files to Base64

  1. Click the "Encode File to Base64" tab.
  2. Drag and drop a file into the upload area or click to select a file.
  3. The Base64 encoded string will appear in the output area.
  4. Use the "Copy Base64" button to copy the result to your clipboard.
  5. Optionally, download the Base64 string as a text file.

Decoding Base64 to Files

  1. Click the "Decode Base64 to File" tab.
  2. Paste your Base64 string into the input area.
  3. Enter a name for the output file (including the file extension).
  4. Click "Decode Base64" to convert and download the file.

Frequently Asked Questions

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It uses a set of 64 characters (A-Z, a-z, 0-9, + and /) to represent binary data.

Is there a file size limit?

This tool processes files in your browser, so the practical limit depends on your device's memory. For large files (over 10MB), you might experience slower performance. Base64 encoding also increases the size by approximately 33%.

Is my data secure?

Yes. All processing happens locally in your browser. Your files and data are never uploaded to any server.

Why is Base64 encoding useful for files?

Base64 encoding allows binary data (like files) to be represented as text, making it possible to include files in text-based formats like JSON, XML, or HTML. It's commonly used in APIs, data URIs, and for embedding files in documents.

Related Base64 Tools