64

Base64 Encoder & Decoder

Encode UTF-8 text to Base64 or decode Base64 back to text.

Processed locally in your browser unless the page says otherwise.

What Base64 encoding and decoding does

This Base64 tool encodes UTF-8 text into a Base64 string and decodes Base64 back to text. It is useful for API testing, data transfer, embedded text, token inspection, and developer debugging.

Base64 is not encryption. It is a reversible encoding method, so sensitive data should not be treated as protected just because it is Base64-encoded.

Formula or logic

  • Encode: text bytes → Base64 string
  • Decode: Base64 string → original text bytes
  • Base64 commonly uses A-Z, a-z, 0-9, +, /, and = padding

Example

If a field only accepts safe text characters, you may encode text as Base64 first. When decoding, make sure the original text encoding is UTF-8.

Common questions

Is Base64 encryption?

No. Base64 is reversible encoding and does not provide security.

Why does Base64 sometimes end with =?

The = character is padding used to complete Base64 blocks.

Why does decoding fail?

Common reasons include missing characters, invalid symbols, wrong padding, or binary data that is not text.

Related tools