Base64 Encoder / Decoder

Encode and decode text using Base64 encoding.

Base64 Encoder / Decoder

Base64 is an encoding scheme that converts binary data into a string of 64 printable ASCII characters. It is widely used to embed images directly in HTML or CSS files, encode email attachments for safe transport, and transmit binary data over text-based protocols that cannot handle raw bytes. Paste any text into the input field to encode it instantly, or paste a Base64 string to decode it back to its original form. The tool works entirely in your browser — no data is ever sent to a server.

How to use

  1. Select Encode to turn plain text into Base64, or Decode to turn a Base64 string back into readable text.
  2. Paste or type your content into the input box. The result updates automatically as you type.
  3. Copy the output with the copy button.
  4. If decoding fails, check that the input is valid Base64 — it should contain only A–Z, a–z, 0–9, +, / and optional = padding.

Frequently asked questions

Is Base64 a form of encryption?

No. Base64 is encoding, not encryption. Anyone can decode it back to the original data, so it provides no security. Use it for safe transport of data, not to protect secrets.

Why does my encoded text look longer than the original?

Base64 represents every 3 bytes of input as 4 characters, so the output is roughly 33% larger than the source. That overhead is the price of using only safe, printable characters.

Does my text get uploaded anywhere?

No. Encoding and decoding happen entirely in your browser. Nothing you paste here is sent to a server.