Base64 Encode/Decode
Encode text to Base64 or decode Base64 to text instantly. Free online Base64 encoder and decoder tool.
Base64 is a standard encoding scheme that converts binary data into a string of printable ASCII characters. It is named after the 64 characters it uses: the uppercase and lowercase English alphabet, digits 0–9, plus (+), and slash (/). Because it uses only safe characters, Base64-encoded data can be embedded in JSON, XML, HTML, email bodies, URLs, and HTTP headers without corruption.
Common uses of Base64 encoding include embedding images or fonts directly in CSS as data URIs (data:image/png;base64,...), encoding binary attachments in email (MIME), transmitting binary payloads in JSON API requests, and forming the header and payload sections of JSON Web Tokens (JWTs). When working with any of these formats, you will frequently need to encode to or decode from Base64.
It is important to understand that Base64 is encoding, not encryption. The original data can be recovered by anyone who decodes it. If you need to protect data, use encryption (AES, RSA, etc.) — not Base64. Base64 only changes the representation, not the confidentiality of the data.
This tool encodes text to Base64 and decodes Base64 back to text. Switch between Encode and Decode modes, paste your input, and get instant results. All processing happens locally in your browser using JavaScript's built-in btoa() and atob() functions. Your data never leaves your device.