Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to text, instantly in your browser.
How the Base64 Encoder & Decoder works
Switch to Encode to convert any text into its Base64 representation, or switch to Decode to convert Base64 text back into its original form. Both directions update instantly as you type.
Encoding and decoding happen entirely in your browser using standard, built-in browser functions — nothing you enter is sent to a server.
Frequently asked questions
What is Base64 encoding used for?
Base64 converts binary or text data into a safe set of letters, numbers, and a few symbols, so it can be embedded in places that only handle plain text — like email attachments, image data URLs, or JSON payloads.
Is Base64 a form of encryption?
No — Base64 is only an encoding, not encryption. It doesn't protect or hide data in any secure sense; anyone can decode it instantly, as this tool demonstrates. Never use Base64 alone to protect sensitive information.
Why did decoding fail on my text?
Valid Base64 text only contains letters, numbers, +, /, and = padding characters, arranged in specific groupings. If the text you pasted was cut off, has extra whitespace, or isn't Base64 at all, decoding will fail.