>_toolkitbox

~/tools / Base64 Encoder / Decoder

Base64 Encoder / Decoder

Convert text to Base64, or decode a Base64 string back to text. Handles multibyte characters correctly. Processed in your browser only.

Base64 is an encoding that lets binary data (images, files) travel safely as text. Commonly used to inspect the contents of an API key, a Base64-encoded JWT, or an HTTP Basic Auth header.

# Use Cases

  • Decoding what an HTTP Basic Auth header or API key actually contains
  • Manually decoding a JWT header/payload segment
  • Encoding a value to Base64 for an environment variable or CI/CD secret

# Usage

  1. Paste the text you want to convert into the input box.
  2. Click "Encode" to convert plain text to Base64, or "Decode" to convert Base64 back to plain text.
  3. The result appears below. Non-ASCII text works fine too.

# FAQ

What is Base64?
An encoding that represents binary data using only 64 printable characters. Commonly used for email attachments, API tokens, and anywhere binary data needs to be handled safely as text.
Does it handle non-ASCII text?
Yes. Input is treated as UTF-8, using encodeURIComponent/decodeURIComponent alongside btoa/atob to correctly support multibyte characters.

# Related

# Learn more on our sister sites