Base64 Decoder
This page opens Decode for a Base64 payload or a ;base64 data URI. Read valid UTF-8 text, inspect supported raster images, or download every decoded byte as a file. Open an encoded local text file when the value is too awkward to paste. Both alphabets and optional padding are accepted.
Converted output appears here.
·
- Direction
- Alphabet
- Encoding options
Auto is a guess based on decoded UTF-8 text. Select Encode to treat a Base64-looking string as literal text, or Decode for binary files. Both alphabets and omitted padding are accepted when decoding. Dropping a file encodes its original bytes.
Common questions
- How do I decode Base64 to a file?
- Paste the complete value or open the local text file containing it, then choose Download decoded file. The original file format is restored without transcoding. A header or data URI label suggests an extension; enter a filename such as result.xlsx when you know the original format.
- Why does the output say binary data rather than text?
- The decoded bytes are not valid UTF-8. They can still be downloaded intact, rather than replaced with placeholder characters. For text encoded as UTF-16 or another character set, interpret the downloaded bytes in an application that supports that encoding.
- Can this decode Base64 images, PDFs or wrapped strings?
- Yes, when the value represents those original file bytes. PNG, JPG, GIF and WebP can show a raster preview. SVG, PDF, ZIP, Office files and other bytes are offered as downloads. Whitespace and MIME line wrapping are ignored as one payload; multiple independent values, gzip streams, QR content and encrypted data are not unpacked or decrypted.
Encoding preserves valid UTF-8 text or the original file bytes. Decoding restores those bytes; invalid UTF-8 is kept as binary data for download. Auto direction and inferred file types are best-effort guesses, and no file-format conversion or validation is performed.