Base64 Encode & Decode

Encode and decode Base64 text and files instantly

Encode & Decode

Base64 Encoder & Decoder

Convert text or files to Base64 and back. Everything runs in your browser.

Plain Text Length

0 characters

Base64 Length

0 characters

How it works

Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It is commonly used to embed images in HTML/CSS, encode email attachments (MIME), transmit binary data in JSON or XML, and create data URIs. This tool uses the browser's built-in btoa() and atob() functions for text, and FileReader.readAsDataURL() for binary files. Everything runs entirely in your browser — no data is sent to any server.

Frequently Asked Questions

What is Base64 encoding?
Base64 is a way to represent binary data using only printable ASCII characters (A-Z, a-z, 0-9, +, /). It is commonly used to embed images in HTML/CSS, transmit binary data in JSON or XML, and encode email attachments.
Is Base64 encryption?
No. Base64 is encoding, not encryption. It does not provide any security — anyone can decode a Base64 string instantly. It is used for data transport compatibility, not for protecting sensitive information.
Why does Base64 make data larger?
Base64 encoding increases data size by approximately 33%. Every 3 bytes of input become 4 Base64 characters. This trade-off is accepted because Base64 text is safe to transmit through systems that only handle text.
Can I encode files with this tool?
Yes. You can drag and drop or select any file to encode it as a Base64 string. The tool also supports decoding Base64 back to the original content. Everything runs locally in your browser.

You might also like