Skip to content
Yunedia Tools

Base64 编码 / 解码

对文本(UTF-8 安全)和文件进行 Base64 编码和解码,并支持 URL 安全输出。所有处理都在本地进行。

使用方法

Text is encoded as UTF-8, so non-ASCII text works as-is. The URL-safe option replaces + and / with - and _ and drops the = padding. To encode a file, just pick one (10 MB cap) — you also get a ready-made data URL. To turn Base64 back into a file, paste it into the input, set the MIME type and use the download button.

注意事项

Everything is processed in your browser; files are never uploaded. Decoding to text validates the result as UTF-8, so arbitrary binary data may fail with an error — use the download button for binary content instead.

常见问题

How much larger is Base64 output?

About 33%: every 3 bytes become 4 characters.

Can it decode Base64 with line breaks?

Yes, whitespace is ignored when decoding.