FA Dev Tools

Base64 Encode / Decode

Encode text to base64 (UTF-8), or decode base64 back to text. When the decoded bytes are an image, it is previewed here and can be downloaded. Decoding accepts data: URLs, base64url (-_), whitespace, and missing padding.

Runs entirely in your browser — nothing is uploaded.

Instructions

Converts text to base64 and back, and previews the result when the decoded bytes turn out to be an image.

  1. Paste or type into Input — or use Paste to pull the clipboard in.
  2. Pick Encode (text → base64) or Decode (base64 → text/image).
  3. The result appears below as you type. Copy text output, or Download a decoded image or binary file.

Tips

  • Decoding is forgiving: data: URLs, base64url (- and _), whitespace and missing = padding all work.
  • Encoding is UTF-8, so non-ASCII text (東京, emoji) round-trips correctly.
  • Everything runs in your browser — nothing is uploaded, so pasting a token or key here does not send it anywhere.
  • Hit Example and pick encode or decode to see it work — decode loads a small PNG so you get the image preview.