Base64 encoding and decoding explained

Base64 represents binary data using a limited set of printable characters. It is useful for transport and embedding, not secrecy.

Why developers use Base64

You will see it in data URIs, API payloads, email formats, certificates, and encoded binary values. Text should be converted to bytes using a character encoding such as UTF-8 before Base64 encoding.

Open Base64 Encoder/Decoder →

Base64 is not encryption

Base64 can be decoded by anyone who has the value. Do not use it to hide passwords, API keys, personal data, or other secrets.

Why decoded output can look broken

Not every Base64 value represents readable text. It may represent an image, archive, compressed data, or another binary format. Interpreting arbitrary binary bytes as UTF-8 can produce unreadable output.