Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 strings back to text.
Result
Fill in the fields above, then press Generate.
A Base64 encoder/decoder converts text and binary data to and from Base64 encoding, commonly used in emails, URLs, and API authentication.
Examples
Encode "Hello, World!"
Input: "Hello, World!" (13 chars). Output: "SGVsbG8sIFdvcmxkIQ==" (20 chars).
Decode "SGVsbG8="
Input: "SGVsbG8=" (8 chars). Output: "Hello" (5 chars).
Frequently Asked Questions
What is Base64 used for?
Base64 is used to encode binary data as ASCII text for transmission over text-based protocols. Common uses include email attachments (MIME), embedding images in HTML/CSS (data URIs), and encoding API tokens or credentials.
Is Base64 encryption?
No. Base64 is an encoding, not encryption. It does not provide any security. Anyone can decode a Base64 string. For security, use proper encryption algorithms like AES.
Result
Your result appears here and follows you as you scroll.
Related Calculators
Quick Tips
- •Base64 output is always about 33% larger than the input, so avoid encoding large files unnecessarily.
- •If you see trailing = or == in Base64, those are padding characters indicating the input was not a multiple of 3 bytes.
- •Use Base64 for embedding small images in CSS or HTML via data URIs, but serve larger assets as separate files for better caching.