Text → Base64 · Base64 → Text
Base64 encodes binary data into ASCII text using 64 printable characters (A-Z, a-z, 0-9, +, /). It makes binary data safe to transmit over text-based protocols like HTTP, email, and JSON.
| Use Case | Why Base64 |
|---|---|
| Embedding images in HTML/CSS | data:image/png;base64,... |
| API authentication | Basic auth header |
| Email attachments | MIME encoding |
| JWT tokens | Payload is Base64-encoded |
| Data URIs | Inline resources without external files |