Files never leave your device
Base64 Encoder / Decoder
Encode and decode Base64 strings. Handles UTF-8, including emoji and non-Latin scripts.
How to use Base64 Encoder
- Choose the Encode or Decode tab.
- Paste your text into the input area.
- The result appears instantly in the output box.
- Use the copy button to grab the result.
Why Base64 exists
Base64 encodes binary data into 64 printable ASCII characters so it can travel through systems that only accept text — JSON payloads, email bodies, XML attributes, and URLs. The encoded representation is about 33% larger than the original, but it's the price of safe transport.
Common use cases
- Embedding small images in CSS or HTML as data URIs
- Encoding binary data inside JSON payloads
- Storing API keys, secrets, and credentials in environment files
- Creating Basic Auth headers (username:password Base64-encoded)
- JWT segments (which use the URL-safe variant)