Base64 Decode & Encode

Paste text and press Encode to get Base64, or paste Base64 and press Decode to read it. Everything is processed on your device, so it is safe for tokens, configuration snippets and other private data.

How to encode and decode

  1. Type or paste your text or Base64 string into the Input box.
  2. Press Encode to Base64 or Decode from Base64.
  3. Copy the result, or press ⇅ to move it back into the input for another step.

What is Base64?

Base64 writes any data using only 64 safe characters: A–Z, a–z, 0–9, plus “+” and “/”, with “=” as padding at the end. Every three bytes become four characters, so the encoded text is about one third longer than the original.

It exists because many systems – e-mail, URLs, JSON, HTML – were built for plain text and can corrupt raw binary data. Base64 lets images, files and special characters travel through them unchanged.

Things to keep in mind

  • Base64 is not encryption. Anyone can decode it; never use it to hide passwords or secrets.
  • URL-safe Base64 replaces “+” and “/” with “-” and “_”. The decoder accepts both forms, with or without padding.
  • Text is encoded as UTF-8, so accents, Arabic, Chinese and emoji survive the round trip.
  • Typical uses: data URLs for small images, e-mail attachments, API keys in HTTP headers and JWT tokens.

Frequently asked questions

Is my data sent to a server?

No. Encoding and decoding happen entirely in your browser.

Why does decoding fail?

The text may contain characters outside the Base64 alphabet, be cut off, or decode to binary data such as an image rather than text.

Can I decode a JWT with this?

Yes. Paste the first or second part of the token (between the dots) to read the header or payload. The signature part is binary and cannot be shown as text.

Why is the encoded text longer?

Base64 uses four characters for every three bytes, which adds roughly 33% to the size.

Related tools