Base64 Encoder / Decoder
Encode text or binary data to Base64, or decode Base64 back to plain text. Supports standard and URL-safe (RFC 4648) variants.
About Base64
Base64 encodes binary data as ASCII text using 64 printable characters. It is commonly used to transmit binary data over text-based protocols.
Common use cases
- Embedding images in HTML/CSS (
data:URIs) - Encoding email attachments (MIME)
- JWT token encoding
- HTTP Basic Authentication headers
- Transferring binary data in JSON
URL-safe variant
Replaces + with - and / with _ to make encoded strings safe for use in URLs and filenames (RFC 4648 §5).