How base64 encoder & decoder works
Base64 is an encoding scheme that represents binary data using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It is used to safely transmit data over channels that only accept text, like email attachments (MIME), data URIs in HTML, and JSON Web Tokens.
This tool encodes any text you enter into Base64 using the standard alphabet, or decodes an existing Base64 string back to text. Encoding increases the size by roughly 33% (every 3 bytes becomes 4 characters). The padding character (=) is added at the end when the input length is not a multiple of 3.
Base64 is an encoding, not encryption. It provides no security or confidentiality. Anyone can decode it. Use it for data transport, not for protecting secrets. Text is first converted to UTF-8 bytes and then encoded, so emoji and non-Latin scripts work; decoding strips whitespace and accepts the URL-safe alphabet (- and _). All processing happens in your browser.