QCSunny Lab

Base64 Encoder / Decoder

Encode text to Base64 or decode it back, with full Unicode support — Chinese, emoji and other multi-byte characters are converted correctly via UTF-8, and a URL-safe variant (no +, / or =) is one click away.

Base64 represents any bytes with 64 safe characters, making it a common way to pass binary-ish data in URLs, JSON, data URIs and HTTP Basic authentication headers.

Frequently asked questions

Is Base64 encryption?

No — it is an encoding, not encryption. Anyone can decode it; never use it to hide secrets.

Why does encoded text get longer?

Every 3 bytes become 4 characters, about a 33% size increase.

What is URL-safe Base64?

A variant replacing + and / with - and _ and dropping padding, so the result can sit inside a URL query without escaping.

中文说明

文本与 Base64 互转,完整支持 Unicode——中文、emoji 等多字节字符通过 UTF-8 正确处理;URL 安全变体(不含 +、/、=)也只需一键。

Base64 用 64 个安全字符表示任意字节,常用于在 URL、JSON、data URI 和 HTTP Basic 认证头中传递类二进制数据。

常见问题

Base64 是加密吗?

不是,它是编码而非加密。任何人都能解码,绝不能用它"保护"机密信息。

为什么编码后变长了?

每 3 个字节编码为 4 个字符,体积约增加 33%。

什么是 URL 安全的 Base64?

一种变体,把 + 和 / 换成 - 和 _ 并去掉填充符,使结果可以直接放进 URL 查询串而无需转义。