Base64 Encoder / Decoder
Encode plain text or binary data to Base64, or decode a Base64 string back to its original form. Runs entirely in your browser.
Text to Encode
Base64 Output
What is Base64?
Base64 is a binary-to-text encoding scheme that converts binary data into an ASCII string format using 64 printable characters. It was originally designed for encoding email attachments but is now used widely in web development, APIs, and data storage.
Common use cases
- Embedding images directly in HTML or CSS with
data:image/png;base64,… - Encoding binary data in JSON responses
- Storing cryptographic keys and certificates
- Encoding email attachments (MIME)
- Basic authentication in HTTP headers (
Authorization: Basic …)
URL-Safe Base64
Standard Base64 uses + and / which have special meaning in URLs. URL-safe Base64 replaces these with - and _ respectively.