Base64 Encoder / Decoder
Input
Base64 encodes binary data into text using 64 printable ASCII characters, making it safe to transmit in text-based systems like email and URLs. It is not encryption — just encoding.
- 1Every 3 bytes → 4 Base64 characters
- 2Characters: A–Z, a–z, 0–9, +, / (64 total)
- 3= padding makes output a multiple of 4 characters
- 4Output is ~33% larger than original binary input
Encode "Man"="TWFu"
Decode "SGVsbG8="="Hello"
| Use case | Example |
|---|---|
| Email attachments | MIME encoding |
| Inline images | data:image/png;base64,... |
| JWT tokens | Header.Payload.Signature |
| HTTP Basic auth | Authorization: Basic ... |
References
🔒
100% 免费
无需注册
✓
准确
经过验证的公式
⚡
即时
即时结果
📱
移动友好
所有设备