Base64 编码器 / 解码器 — Uttir
Skip to main content

Base64 编码器 / 解码器

将文本或文件编码为 Base64,或将 Base64 解码回原始形式。免费、在浏览器中运行,无需上传。

Base64 编码器 / 解码器 — Base64 represents binary data as printable ASCII characters, which is why it shows up in email attachments, data URLs, authorization headers, and encoded JSON. This encoder converts your text to UTF-8 bytes first, so emoji, accented characters, and CJK scripts all encode correctly — something naive encoders get wrong.

Encoding happens locally in your browser. Your text is never uploaded.

Was Base64 编码器 / 解码器 useful?

Base64 编码器 / 解码器是什么?

Base64 represents binary data as printable ASCII characters, which is why it shows up in email attachments, data URLs, authorization headers, and encoded JSON. This encoder converts your text to UTF-8 bytes first, so emoji, accented characters, and CJK scripts all encode correctly — something naive encoders get wrong.

The result uses the standard alphabet (A–Z, a–z, 0–9, +, /) with = padding, compatible with atob, Buffer, and every mainstream decoder.

使用方法

  1. Type or paste text

    Any Unicode text works, including emoji.

  2. Copy the output

    The Base64 string updates live; use Copy to grab it.

示例

Plain ASCII

The classic example.

hello world

结果: aGVsbG8gd29ybGQ=

Unicode

UTF-8 bytes are encoded, not raw code units.

✓ ok

结果: 4pyTIG9r

常见问题

相关指南

相关工具

Last reviewed: 2026-11-21