Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text. Also converts images to Base64 data URLs. Bidirectional and real-time.
How to use
- For text: type or paste into the left box and the Base64 output appears on the right (or vice versa).
- For images: switch to the Image tab, click "Choose file", and the Base64 data URL is generated instantly.
- Click "Copy Base64" to copy the encoded output to your clipboard.
Frequently asked questions
What is Base64 encoding?
Base64 is an encoding scheme that converts binary data into ASCII text. It uses 64 printable characters (A-Z, a-z, 0-9, +, /) and is commonly used to embed binary data in text-based formats like JSON, XML, and email.
Does Base64 encrypt my data?
No. Base64 is an encoding scheme, not encryption. Anyone can decode Base64 without a key. Do not use it to protect sensitive data.
Why does Base64 output have = padding?
Base64 works in 6-bit groups. When the input length is not divisible by 3, padding characters (=) are added to make the output a multiple of 4 characters.
Can I use a Base64 image in HTML?
Yes. You can use a Base64 data URL directly in an <img> src attribute: <img src="data:image/png;base64,...">. This embeds the image inline without a separate file request.