Filenary

Base64 Encode / Decode

Encode text or a file to Base64, or decode a Base64 string back to text or a file.

This file is processed in your browser and never uploaded to a server.

How It Works

  1. 1. Drop your file here

  2. 2. Processing…

  3. 3. Download

Features

  • Encode text or any file
  • Decode to text or download as a file
  • No server uploads

Frequently Asked Questions

Is there a file size limit?
No fixed limit, but very large files may be slow to process since everything runs on your device.
What file type does a decoded file download as?
It downloads as a generic .bin file since the original filename/type isn't stored in a raw Base64 string; rename the extension if you know what it should be.
Does the decoder accept URL-safe Base64 (using - and _ instead of + and /)?
No, only the standard Base64 alphabet is accepted; a URL-safe encoded string will fail to decode until you swap the - and _ characters back to + and /.
Can I decode a Base64 string that has line breaks in it, like one copied from an email attachment?
Yes, your browser's decoder ignores internal whitespace and line breaks, so a multi-line Base64 block decodes correctly as long as the characters themselves are valid.
Can I upload a file that contains Base64 text to decode it, instead of pasting it?
No, decode mode only accepts pasted text; file upload is only available in encode mode, for converting a file's raw bytes into Base64.

Add this tool to your website

Copy the code below and paste it into any page. It's free, needs no sign-up, and files are processed in your visitors' own browsers.