What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used in email (MIME), data URIs in HTML, and encoding credentials in HTTP headers. It is not encryption — it is simply a way to represent binary data as text.

When to Use Base64

Examples

Encode: "Hello World" → "SGVsbG8gV29ybGQ="

Decode: "SGVsbG8gV29ybGQ=" → "Hello World"