Base64 Encoder / Decoder
EncodingEncode and decode Base64 with UTF-8 and Base64URL support
Your data is processed locally in your browser. Nothing is uploaded.
What is Base64 Encoder / Decoder?
Base64 encodes binary or text data into an ASCII string, which lets it travel safely through text-only channels such as HTTP headers, JSON payloads and HTML attributes. This tool handles plain Base64 as well as the URL-safe Base64URL variant, and supports UTF-8 so non-ASCII characters round-trip correctly.
How to use
- Enter the text you want to encode or the Base64 string you want to decode.
- Click Encode to convert to Base64, or Decode to recover the original text.
- Use Encode Base64URL / Decode Base64URL for URL- and filename-safe output.
- Copy the result from the output pane.
Use Cases
- Encoding credentials for an HTTP Basic Authorization header.
- Decoding the payload segment of a JWT before inspecting its claims.
- Embedding small images into a data URI instead of a separate request.
- Handling Base64URL values produced by OAuth or OpenID Connect flows.