Base64 Encode / Decode

Encode text to Base64 or decode Base64 back to text, with full Unicode support. Free and private, right in your browser.

Paste in plain text to get its Base64 representation, or paste Base64 to decode it back to readable text - handy for reading API tokens, debugging JWT payloads, inspecting data URIs, or prepping strings for embedding in JSON, URLs, or config files.

How to use it

  1. Paste your text or Base64 string into the input box
  2. Choose Encode or Decode
  3. Copy the result to your clipboard

Frequently asked questions

What flavor of Base64 does this use?
Standard Base64 (RFC 4648) with + and / characters and = padding. If you need URL-safe Base64 (- and _ instead), swap the characters after encoding.
Can I encode images or files, not just text?
This tool is built for text input and output. For a file, open it in a text/hex editor to copy the raw bytes as text first, or use a dedicated file-to-Base64 converter.
Why does decoding fail with an error?
The input isn't valid Base64 - it likely has extra whitespace, line breaks, or characters outside A-Z, a-z, 0-9, +, /, and = padding. Strip any surrounding text and try again.