Base64 encoder/decoder
Encode and decode Base64 strings
To encode:
- Switch to the "Encode" tab
- Enter the text you want to encode
- Click "Encode" to convert to Base64
- Copy the Base64 output
To decode:
- Switch to the "Decode" tab
- Paste the Base64 string
- Click "Decode" to convert back to text
- If the Base64 is invalid, an error will be shown
Original text:
Hello, World!Base64 encoded:
SGVsbG8sIFdvcmxkIQ==What is Base64?
Base64 is an encoding scheme that converts binary data into ASCII text. It's commonly used to encode data in emails, URLs, and data URIs.
When should I use Base64?
Use Base64 when you need to transmit binary data over text-based protocols, embed images in HTML/CSS, or encode data in URLs.
Does Base64 encrypt data?
No, Base64 is encoding, not encryption. It makes data unreadable to casual observers but provides no security. Anyone can decode it.
Why does Base64 increase data size?
Base64 encoding increases data size by approximately 33% because it uses 6 bits per character instead of 8 bits.
Can I encode special characters?
Yes, Base64 can encode any text including special characters, emojis, and non-Latin scripts.