Base64 Encoder / Decoder
Encode text or a file to Base64, or decode Base64 back to its original form — all in your browser.
What is Base64?
Base64 is a way of representing binary data (like an image or file) as plain text, using only letters, numbers, and a couple of symbols. It's commonly used to embed small images directly in CSS or HTML, or to safely transmit data through systems that only handle text.
Frequently asked questions
Is Base64 encryption?
No — Base64 is not encryption or security of any kind. It's just a different way of representing the same data, and anyone can decode it instantly. Don't use it to hide sensitive information.
Why does decoding sometimes fail?
This happens if the text isn't valid Base64 — for example, it contains characters outside the Base64 alphabet, or has incorrect padding.
Is my file uploaded anywhere?
No — file encoding happens entirely in your browser using the FileReader API. Nothing is sent to our servers.