Base64 Encode/Decode

Encode and decode Base64 strings online.

Input
Output

How to Use

Type or paste text into the input field and click Encode to convert it to a Base64 string, or paste a Base64 string and click Decode to get the original text back. The tool supports UTF-8 text encoding by default and handles special characters correctly.

Common Use Cases

  • Encoding credentials for HTTP Basic Authentication headers
  • Decoding Base64-encoded data found in API responses or config files
  • Preparing inline data URIs for embedding small assets in HTML or CSS
  • Encoding binary-safe strings for transmission over text-only protocols

Frequently Asked Questions

What is Base64 encoding used for?

Base64 converts binary data into a text-safe ASCII format. It is commonly used in email attachments (MIME), data URIs, JSON Web Tokens, and embedding binary data in XML or JSON.

Does Base64 encrypt my data?

No. Base64 is an encoding scheme, not encryption. Anyone can decode a Base64 string without a key. Do not use it to protect sensitive information.

Why does my Base64 string end with one or two equals signs?

The equals sign (=) is padding. Base64 encodes data in groups of 3 bytes; if the input length is not a multiple of 3, padding is added to complete the final group.