Developer ToolsAvailable now

Base64 Encode / Decode

Encode plain text to Base64 or decode Base64 back to readable text.

Encoded or decoded output will appear here.

What is Base64 Encode / Decode?

Base64 Encode / Decode converts plain text or binary data to Base64 strings and back, entirely in your browser. It is commonly used when working with JWT tokens, HTTP Basic Auth headers, data URIs for images, and email attachments — anywhere a protocol requires text-safe encoding.

Paste a value, pick encode or decode, and copy the result instantly. The tool supports standard UTF-8 text including most accented characters. Nothing is sent to a server — encoding and decoding happen entirely on your device.

Common Use Cases

  • Encoding credentials for HTTP Basic Auth headers
  • Decoding JWT token payloads for debugging
  • Creating image data URIs for CSS or HTML
  • Encoding binary data for safe API transmission
  • Decoding Base64 strings from email attachment headers

How to Use Base64 Encode / Decode

  1. Paste the text or Base64 string you want to convert.
  2. Select Encode to convert text to Base64, or Decode to reverse it.
  3. Copy the output for your API request, auth header, or config file.

Related Tools

FAQ

Does this support Unicode and UTF-8 text?

Yes. The encoder handles standard UTF-8 text, including accented characters and most scripts.

What is Base64 commonly used for?

Base64 is used to safely transmit binary or special-character data as plain text — for example in JWT tokens, HTTP Basic Auth headers (username:password), image data URIs, and email attachments.

Is Base64 a form of encryption?

No. Base64 is an encoding scheme, not encryption. Anyone can decode it without a key. Do not use it to hide sensitive data.

Can I use it for JWT tokens?

Standard JWTs use Base64URL encoding (which replaces + with - and / with _). This tool uses standard Base64, so raw JWT segments may not decode correctly. You would need to replace - with + and _ with / in the segment before pasting.

Is my data sent to a server?

No. Encoding and decoding run entirely in your browser. Nothing is transmitted or stored.

What is the difference between Base64 and Base64URL?

Base64URL replaces the characters + and / (which have special meaning in URLs) with - and _ respectively, and omits the trailing = padding. This makes the output safe to include in URLs and HTTP headers without percent-encoding.