查找工具

↑↓ 选择 Enter 打开

不知道工具名称时,可输入“格式化”或“计数”等任务词。

Base64 Encode & Decode

仅本地处理

Base64 Encode & Decode 用于在浏览器中编码或解码内容,并清楚显示处理结果和限制。 本页包含该工具的实际输入输出、实现边界和一手参考资料。

已审核 · 更新于 · 免费使用 · 无需账号

Base64 Workspace
Input0 bytes
Output
Text and files are converted locally in this browser tab.

Base64 Encode & Decode可以处理什么?

Base64 Encode & Decode 用于在浏览器中编码或解码内容,并清楚显示处理结果和限制。 已核对的功能: UTF-8 text encoding, File input up to 50 MB, Base64URL alphabet, Binary download.

Choose Base64URL for URL-safe values

Use standard Base64 for MIME and general byte transport. Use Base64URL for URL components and JWT segments where +, /, and padding are inconvenient.

如何使用?

  1. Choose Encode or Decode.
  2. Enter text, paste Base64, or select a local file; enable the URL-safe alphabet when required.
  3. Copy text output or download decoded binary bytes.

实际输入输出示例

Encode UTF-8 text

输入

Hello

输出

SGVsbG8=

The five UTF-8 bytes are represented by eight Base64 characters including padding.

常见错误与修复方法

现象可能原因修复方法
Decode reports invalid Base64.The alphabet, padding, or copied characters are wrong.Choose the matching standard or URL-safe alphabet and restore valid padding when required.
Decoded output looks corrupted.Binary bytes are being previewed as UTF-8 text.Download decoded.bin instead of relying on the text preview.

Base64 changes representation, not trust

该工具的实际边界: Base64 usually adds about one third to binary size because four encoded characters represent three source bytes. Anyone can decode it without a key.

标准与实现参考

关于Base64的常见问题

Does Base64 encrypt data?

No. Base64 is reversible encoding and provides no secrecy or authentication.

What is Base64URL?

Base64URL replaces + and / with - and _ and commonly omits padding.

Can it encode a file?

Yes. A selected file up to 50 MB is encoded in the current browser tab.

更新记录

本次实质更新: Base64: Added UTF-8 text conversion, local file encoding up to 50 MB, Base64URL mode, validation, copy, and decoded binary download.

谁在维护这个工具?

KL
KitLumi EngineeringKitLumi 工程团队负责维护工具行为、隐私说明、示例和自动化测试。