How to use Base64 Decode
- 1. Paste Base64. Raw Base64, Base64URL, or a full `data:…;base64,…` URI. Whitespace and MIME wrapping are fine.
- 2. Inspect the preview. The studio detects images, PDFs, audio, fonts, JSON, and plain text automatically.
- 3. Copy or save. Copy decoded text/hex, or download the reconstructed file. Nothing is uploaded.
About this tool
“Base64 decode” and “base 64 decode” are the reverse of encode: recover original bytes or a preview from an API string, JWT fragment, or email attachment.
Data URIs and MIME wrap
Paste either the bare payload or a full Data URI. Line breaks at 64 or 76 characters (MIME) are stripped before decode.
Base64 to image / PDF
When magic bytes match images or `%PDF-`, the studio previews and lets you download with the correct extension.
Code examples
Node
Buffer.from("hello").toString("base64");
Buffer.from(b64, "base64").toString("utf8");Browser (UTF-8 safe)
btoa(unescape(encodeURIComponent(text)));
decodeURIComponent(escape(atob(b64)));Python
import base64
base64.b64encode(b"hello").decode() # aGVsbG8=
base64.b64decode("aGVsbG8=").decode()Data URI
const uri = `data:image/png;base64,${b64}`;
// <img src={uri} /> or CSS url('${uri}')