Paste any text to encode it as Base64, or paste a Base64 string to decode it back to readable text. The tool auto-detects whether your input looks like Base64 and suggests the right action. Full UTF-8 support means emojis, accented characters, and CJK text all work correctly.
When to Use the Base64 Encoder/Decoder
Use Base64 encoding when embedding binary content in JSON, passing data through URL-safe channels, encoding email attachments, or debugging API payloads that contain Base64 strings.
Tips
- Use Base64 to embed small images directly in CSS as data URIs — saves an HTTP request.
- If your decoded output looks garbled, the original text may not have been UTF-8 encoded before Base64 encoding.
- Base64 strings always have a length divisible by 4. If not, they may be truncated.
- For URL-safe Base64, replace + with - and / with _ after encoding.