🔐 Base64 Encoder / Decoder
Encode and decode Base64 strings and files
How Base64 Encoding Works
- 1Paste text or upload a file to encode.
- 2The encoder converts each group of 3 bytes into 4 Base64 characters.
- 3Base64 uses A-Z, a-z, 0-9, +, and / (64 characters total) plus = for padding.
- 4To decode, paste a Base64 string and the original data is reconstructed.
- 5Encoded output is about 33% larger than the original data.
About Base64 Encoder / Decoder
Encode text or files to Base64 and decode Base64 strings back to original format. Supports text, images, and binary data. Copy encoded output for use in HTML, CSS, or APIs.
Frequently Asked Questions
What is Base64 used for?
Base64 encodes binary data as ASCII text for safe transport in text-based formats like JSON, XML, email (MIME), and HTML (data URIs for embedding images). It ensures no special characters corrupt the data.
Is Base64 encryption?
No. Base64 is encoding, not encryption. It does not provide security — anyone can decode it. Use it for data transport, not for hiding sensitive information.
Why is Base64 output larger?
Base64 represents every 3 bytes of input as 4 characters of output, plus potential padding. This makes encoded data approximately 33% larger than the original.