Skip to content
Toolbench

Base64 encoder and decoder

Encode a file or text to Base64 or a data URL, and decode Base64 back to a file.

Drop a file to encode

or drop it here, or paste. Up to 25.0 MB per file.

Runs in your browser. Your files are not uploaded.

Files up to 25 MB can be encoded and up to 50 million characters decoded. Base64 makes data about a third larger.

Decoding accepts line breaks, missing padding and the URL-safe alphabet.

How to use Base64 encoder and decoder

  1. Choose a mode: File to Base64, Text to Base64, Base64 to text or Base64 to file.

  2. Drop a file or type or paste the input.

  3. For encoding, choose Base64 or Data URL as the output.

  4. Copy the result or download it; for Base64 to file, select Decode and download.

Questions