Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 back to text. Works with Unicode. 100% in your browser.
Report a Problem
Found a bug or have a suggestion? Help us improve this tool.
What is this tool?
Base64 is an encoding scheme that converts binary data into ASCII text using 64 printable characters (A-Z, a-z, 0-9, +, /). It is commonly used to safely transmit binary data over text-only channels, embed images in HTML/CSS, and encode credentials. Base64 increases data size by approximately 33% compared to the original.
How to use
- 1
Select mode
Choose between Encode (text to Base64) or Decode (Base64 to text).
- 2
Enter content
Type or paste the content to encode or decode.
- 3
Copy result
The result updates in real-time. Click to copy.
Frequently Asked Questions
Is Base64 encryption?
No. Base64 is encoding, not encryption. Anyone can decode Base64 without a key. It is only used to make binary data transportable, not to protect secrecy. For actual security, use encryption algorithms like AES.
How much larger is Base64 compared to original?
Base64 increases data size by approximately 33%. Every 3 bytes of input become 4 characters of output. Padding characters (=) may be added at the end if the input is not divisible by 3.
Where is Base64 commonly used?
Data URIs in HTML, JWT tokens, email attachments (MIME), SSL certificates, embedding small images in CSS, and API authentication headers.