Embed this tool on your site
<iframe src="https://devtoolbox.dedyn.io/tools/base64" width="100%" height="600" frameborder="0" title="Base64 Encoder/Decoder"></iframe>

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text. Supports full UTF-8.

 

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII format. It's commonly used to embed images in HTML/CSS, encode email attachments (MIME), transmit data in URLs, and store binary data in JSON.

The encoding converts every 3 bytes of binary data into 4 ASCII characters from a set of 64 characters (A-Z, a-z, 0-9, +, /). The = character is used for padding when the input length isn't a multiple of 3.

Frequently Asked Questions

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data as ASCII characters. It's commonly used to embed images in HTML/CSS, encode email attachments, and transmit binary data over text-based protocols.
Is Base64 encoding the same as encryption?
No. Base64 is an encoding, not encryption. It doesn't provide any security — anyone can decode Base64 data. It's used for data transport, not data protection.
Why does Base64 increase data size?
Base64 encoding increases data size by approximately 33% because it represents every 3 bytes of binary data as 4 ASCII characters. This trade-off enables safe text-based transmission of binary data.
Keyboard Shortcuts
Ctrl+Enter Run / Format
Ctrl+Shift+C Copy output
Ctrl+L Clear