跳到主要内容
Z

How to Decode Base64 (Step by Step)

Decode a Base64 string back to text or binary in your browser — step by step, with a free Base64 decoder.

Base64 turns binary into text; decoding reverses it. Here is how to decode a Base64 string safely in your browser, with nothing uploaded.

  1. 1

    Open the decoder

    Open the Base64 tool and switch it to decode mode.

  2. 2

    Paste your Base64

    Paste the Base64 string into the input. It is processed locally — nothing is sent to a server.

  3. 3

    Read the result

    The decoded text appears instantly. If the input was binary (e.g. an image), decode to a file instead.

Do it now

常见问题

\xAB 和 \u{HEX} 有什么区别?

\xAB 表示一个 UTF-8 字节——多字节字符会展开成多个转义序列。\u{HEX} 表示一个 Unicode 码点——无论 UTF-8 编码长度是多少,每个字符只需一个转义序列。JS 的模板字符串能够识别 \u{...} 语法。

为什么 emoji 会占用 4 个字节?

很多 emoji 的码点超过 U+FFFF,因此需要 4 个字节的 UTF-8 编码。使用码点转义格式(\u{1F680})可以将其显示为单个逻辑字符。

这个工具能解码混合格式吗?

不能——输入内容必须全部是 hex、全部是 decimal、全部是 \xAB,或全部是 \u{},这样才能确保格式识别不出错。请将混合的输入内容拆分开,分别处理。

只是想做 Base64 编码?

请使用我们的 Base64 编码/解码工具——输入文本或文件,即可获得 Base64 结果。