Skip to main content
🔐

Base64 Encoder / Decoder

Encode and decode Base64 strings.

✓ Free ✓ No Sign-up ⚡ Instant Developer Tools

Base64 Encoder / Decoder

Encode text to Base64 or decode back to text.

What is Base64 Encoder / Decoder?

Base64 Encoder and Decoder converts text or binary data into Base64 format and back again.

How Does It Work?

The tool uses the browser's native btoa() and atob() functions with UTF-8 support.

Common Use Cases

  • Data URIs for the web - Encode small images into Base64 for inline CSS.
  • Email attachments - HTML emails use Base64 for inline images.
  • API debugging - Decode Basic Auth headers.
  • JWT tokens - The header and payload parts of a JWT use URL-safe Base64 encoding.
  • Binary to text - Store short binary data in text format.

Frequently Asked Questions

Q: Is Base64 a form of encryption?

A: No. Base64 is only an encoding, not encryption. The data can be decoded without any key.

Q: Why does my decode result in an error?

A: Make sure the input is valid and its length is a multiple of 4. The tool automatically handles URL-safe Base64.

Q: Does it support emoji?

A: Yes. The tool uses UTF-8 encoding.