Base64 Encoder / Decoder
Encode any text or URL to Base64 format, or decode Base64 strings back to plain text instantly.
What Is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into a string of printable ASCII characters, making it safe to transmit through text-based systems that cannot handle raw binary. The name refers to the 64 characters used: uppercase letters A-Z, lowercase letters a-z, digits 0-9, plus sign, and forward slash. Every three bytes of binary input are converted into four Base64 characters, making the output approximately 33% larger than the input.
Base64 was originally developed as part of the MIME email standard to allow binary files such as images and documents to be attached to emails that could only reliably transmit ASCII text. It has since become a universal encoding used across web development, cryptography, and data storage. The equals signs at the end of a Base64 string are padding characters added when the input length is not divisible by three.
Common Uses of Base64 Encoding
The most frequent web use of Base64 is embedding images directly in HTML or CSS as data URIs, eliminating a separate HTTP request to load the image. This is useful for small icons, inline SVGs, and email templates where external image hosting is unreliable. JSON APIs use Base64 to transmit binary file data within a JSON payload, since JSON only supports text. HTTP Basic Authentication encodes credentials as Base64 in the Authorization header.
Cryptographic keys, certificates, and SSH public keys are commonly distributed in Base64-encoded PEM format. JWT tokens use a URL-safe variant of Base64 to encode their header and payload. It is critical to understand that Base64 is encoding, not encryption — any Base64 string can be decoded by anyone instantly with no key required. Never use Base64 to protect sensitive data.
How to Use Base64 Encoder / Decoder
- 1
Select "Encode" to convert plain text to Base64, or "Decode" to reverse it.
- 2
Type or paste your input text into the left panel.
- 3
Click the Encode or Decode button to process.
- 4
Use "Copy" to copy the result, or "Swap" to move the output back to input.
Frequently Asked Questions
What is Base64 encoding?
Base64 is an encoding scheme that converts binary or text data into a string of ASCII characters. It is widely used to transmit data in URLs, emails, and APIs.
How do I encode a URL to Base64?
Paste your URL into our Base64 Encoder, make sure Encode mode is selected, and click Encode. The result is your Base64 string, ready to copy.
Does this tool support special characters and Unicode?
Yes. Our encoder uses UTF-8 safe encoding so it correctly handles special characters, accented letters, and emoji.