# Base64 Decode & Encode

Easily decode or encode Base64 strings directly in your browser.

## How the Tool Works

**Step 1.**

Choose a character set

- Select the character set you want to use, such as UTF-8. This determines how your text is converted before encoding or after decoding.

**Step 2.**

Encode plain text

- In the Decoded Text section, type or paste your text and click Encode. The Base64 result will appear in the output area of the same section.

**Step 3.**

Decode Base64

- In the Encoded Text section, enter your Base64 string and click Decode. The decoded text will be displayed in that section.

## What Is Base64 Encoding?

Base64 is a binary to text encoding format that represents binary data using ASCII characters. It allows binary content to be included safely inside formats such as JSON, XML, or HTTP headers.

Example:
Authgear → QXV0aGdlYXI=

## What Is the Difference Between Base64 and Base64URL?

Base64URL is a version of Base64 designed for URLs and token formats. It replaces the characters + with - and / with _, and padding characters (=) are often removed for URL safety. This format is commonly used in JWTs, OAuth tokens, and OpenID Connect.

Want a deeper walkthrough of how Base64 works and when to use it? Read our [Base64 encode & decode guide](/content/post/base64-encode-decode-guide/index.html).
