Base64 Encode / Decode
Encode text, hex or any file to Base64 (and Base32, Base58) and decode back — with data URIs and image preview.
Output will appear here…
Standard Base64 as used in MIME, JSON payloads and data URIs.
Related tools
How to use Base64 Encode / Decode
- 1Pick Encode or Decode, then choose what the data is: Text, File / Image, or Hex.
- 2Paste text, drop a file onto the upload area, or paste a Base64 string (data: URIs and URL-safe input are detected automatically).
- 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.
- 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.
- 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.