Base64 Encoder / Decoder

Encode text or files to Base64 and decode Base64 strings โ€” instantly

Output
Output will appear here...
How to Use the Base64 Encoder/Decoder
1
Choose Text Mode (for strings) or File Mode (for files)
2
Enter your text or select a file
3
Click Encode to Base64 or Decode from Base64
4
Copy the output with one click
About Base64 Encoding

Base64 is an encoding scheme that converts binary data into ASCII text using 64 characters (A-Z, a-z, 0-9, +, /). It's used to safely transmit binary data (like images or files) through systems that only handle text โ€” such as email, JSON APIs, and HTML data URIs.

Common uses include embedding images in CSS/HTML as data URIs, encoding credentials in HTTP Basic Authentication headers, transmitting binary data in JSON payloads, and encoding email attachments. Base64 increases data size by about 33% compared to the original binary.

Frequently Asked Questions
No. Base64 is encoding, not encryption. It converts data to a text format but does not hide or protect the content โ€” anyone can decode it. Never use Base64 to secure sensitive information. Use proper encryption (AES, RSA) for security.
Base64 encoded strings end with = or == padding and contain only A-Z, a-z, 0-9, +, / characters. For example, "Hello" in Base64 is "SGVsbG8=". Data URIs for images start with "data:image/png;base64,..."
Base64 encodes data in groups of 3 bytes. If the input isn't divisible by 3, padding characters (=) are added to complete the final group. One = means 1 byte of padding was needed; == means 2 bytes.