Base64 Encoder & Decoder
Encode and decode Base64 correctly for any Unicode input — emoji, accented characters and non-Latin scripts included. Optional URL-safe alphabet for JWTs and query strings.
Last updated: · Runs 100% in your browser
Result will appear here.// What is the Base64 Encoder?
The Base64 Encoder and Decoder converts text to and from the Base64 alphabet in both directions, with an option for the URL-safe variant. Base64 represents arbitrary bytes using 64 printable ASCII characters, which is how binary data survives channels that were designed for text: email MIME parts, data URIs, HTTP headers and JSON string values. Every three input bytes become four output characters, so encoded data is roughly a third larger than the original. The URL-safe variant swaps + and / for - and _ so the result can sit in a URL or filename without percent-encoding — the encoding JWTs use. Encoding and decoding run in your browser, which is what makes it safe to inspect a real token.
// Features
- ▸UTF-8 safe encode/decode
- ▸URL-safe (base64url) toggle
- ▸Bidirectional — swap input/output with one click
- ▸Handles multi-line input
// How to use
- 01Choose Encode or Decode.
- 02Paste text.
- 03Copy the result.
// Use cases
- ▸Decoding a JWT payload to inspect its claims during debugging.
- ▸Encoding a small image or font as a data URI for CSS or HTML.
- ▸Building an HTTP Basic Authentication header by hand.
- ▸Reading a Base64-encoded email attachment or MIME part.
- ▸Storing a binary configuration value in an environment variable.
// FAQ
Your data never leaves your browser. This tool runs 100% locally — no upload, no logging, no analytics on your inputs.