跳到正文Skip to content

Base64 编解码Base64 Encoder / Decoder

文本与 Base64 互转,完整支持 UTF-8 与中文。Encode text to Base64 and decode it back, with full UTF-8 support.

理念:Idea: 编码解码一步到位,中文不乱码。Encode and decode in one step, Chinese intact.

解决:Solves: 文本与 Base64 互转,中文不乱码Encode/decode Base64 with full Chinese support

适合:For: 开发与调试数据的人Developers handling encoded data

可用Available在浏览器中运行Runs in your browser
Loading tool…

在你的设备上本地处理。这里输入的内容不会上传。Processed locally on your device. Nothing you enter here is uploaded.

使用方法How to use

  1. 1选择编码或解码。Choose Encode or Decode.
  2. 2输入或粘贴内容,结果会立刻更新。Type or paste the input; the result updates instantly.
  3. 3复制结果,或把它交换回输入框。Copy the result, or swap it back into the input.

说明Good to know

  • 文字先按 UTF-8 字节再做 Base64,中文和表情可以来回转换。Text is encoded as UTF-8 bytes before Base64, so Chinese and emoji round-trip correctly.
  • 解码同时接受标准字母表(+/)和 URL 安全字母表(-_),有没有填充都可以。Decoding accepts both standard (+/) and URL-safe (-_) alphabets, with or without padding.
  • URL 编解码URL Encoder / Decoder

    对 URL 参数或完整链接进行百分号编码与解码。Percent-encode URL components or full URLs and decode them back.

    可用Available开发者工具Developer
  • Hash 计算Hash Generator

    计算文本的 SHA-1、SHA-256、SHA-384、SHA-512 值。Compute SHA-1, SHA-256, SHA-384 and SHA-512 of any text.

    可用Available开发者工具Developer
  • HTML 转义HTML Escape / Unescape

    转义或还原 HTML 里的特殊字符(< > & 引号等)。Escape or unescape special characters in HTML text and attributes.

    可用Available开发者工具Developer