Skip to content
FizzKit

Base64 Encode / Decode

Convert between raw data and Base64 in either direction. Encode plain text, hex bytes, or drop any file (images, PDFs, fonts, archives up to 10 MB) to Base64 or a ready-to-paste data URI. Decoding auto-detects the standard and URL-safe alphabets, repairs missing padding, strips whitespace and data: prefixes, sniffs the media type from magic bytes, previews images, and downloads the result with the right extension. Also handles Base32 (RFC 4648) and Base58 (Bitcoin), MIME 76-column wrapping, and per-line batch conversion. Everything runs in your browser.

Runs locally in your browser
from
Drop a file or paste a large blob — open fullscreen for long output
Plain text
0 chars · 1 line
Base64 output
Output will appear here…
Alphabet

Standard Base64 as used in MIME, JSON payloads and data URIs.

How to use Base64 Encode / Decode

  1. 1Pick Encode or Decode, then choose what the data is: Text, File / Image, or Hex.
  2. 2Paste text, drop a file onto the upload area, or paste a Base64 string (data: URIs and URL-safe input are detected automatically).
  3. 3Read the output as it updates — for files you get a data URI or plain Base64; for decoded files you get a preview, the sniffed media type, and a Download button.
  4. 4Open Options to switch alphabet (Base64, URL-safe, Base32, Base58), toggle padding, wrap at 76 columns for MIME, or turn on per-line batch mode.
  5. 5Use Swap (⌘⇧S) to feed the output back in the other direction, and ⌘Enter to run immediately.

About Base64 Encode / Decode

Convert between raw data and Base64 in either direction. Encode plain text, hex bytes, or drop any file (images, PDFs, fonts, archives up to 10 MB) to Base64 or a ready-to-paste data URI. Decoding auto-detects the standard and URL-safe alphabets, repairs missing padding, strips whitespace and data: prefixes, sniffs the media type from magic bytes, previews images, and downloads the result with the right extension. Also handles Base32 (RFC 4648) and Base58 (Bitcoin), MIME 76-column wrapping, and per-line batch conversion. Everything runs in your browser.

Base64 Encode / Decode is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.

Frequently asked questions

Base64 encodes binary data as ASCII text so it can travel through text-only channels — e-mail, JSON payloads, data URIs, HTTP headers and so on. It grows the data by about a third.