Base64 Encoder / Decoder
Encode any text or file to Base64, or decode Base64 back to readable text. Handles UTF-8 correctly (no mojibake), validates input before decoding and reports clear errors. Fully client-side and private.
In Encode mode, type or upload text and the Base64 result updates as you type. In Decode mode, invalid input is flagged clearly; binary payloads that are not valid UTF-8 fall back to a Latin-1 view.
Input text / file
Base64 output
Waiting for input
Paste text to encode, or upload a file.
Frequently asked questions
Is Base64 encoding the same as encryption?
No. Base64 is an encoding that is trivially reversible. It is not designed for secrecy — use it for transmission or storage formats, never to hide data.
Why do decoded images and files look garbled?
If the raw bytes are not valid UTF-8 text, the decoder shows a Latin-1 fallback. Base64 is for any binary data; this tool's text view is just a convenience.