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.
Output will appear here…
Standard Base64 as used in MIME, JSON payloads and data URIs.
Related tools
URL Encode / Decode
Percent-encode text with encodeURIComponent, encodeURI, form or RFC 3986 rules, decode multi-layer strings, and edit query strings in a table.
Image Converter & Base64
Convert, resize and compress images to PNG, JPEG, WebP or AVIF and encode or decode Base64 data URIs.
HTML Entity Encode / Decode
Encode text to HTML entities with presets (minimal, attribute-safe, all non-ASCII) and decode all 2,000+ HTML5 named references.
Hash Generator
MD5, SHA-1, SHA-256/384/512, SHA-3, CRC32 and xxHash32 for text, lines and files — with verify and checksum export.
Text to Binary
Convert text or files to binary, hex, octal or decimal bytes and back, with a hex dump, per-character byte table and five encodings.
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.