Developer Utility

Base64 Encoder / Decoder

Encoding

Encode 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

  1. Enter the text you want to encode or the Base64 string you want to decode.
  2. Click Encode to convert to Base64, or Decode to recover the original text.
  3. Use Encode Base64URL / Decode Base64URL for URL- and filename-safe output.
  4. 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.

Related Tools