INKTOOLS

DEV NO.002

Base64 Encoder / Decoder

Convert text to and from Base64 with full UTF-8 (emoji, CJK) support.

This tool runs entirely in your browser. Nothing is uploaded to any server.

Input
Output

What is this

什么是 Base64

Base64 将任意二进制数据表示为 64 个可打印字符,广泛用于邮件附件、Data URL、JWT 与 API 载荷。本工具支持编码与解码双向,并提供 URL 安全字母表切换。

What is Base64

Base64 represents arbitrary binary data as 64 printable characters. It appears in email attachments, data URLs, JWTs and API payloads. This tool handles both directions and offers a URL-safe alphabet toggle.

如何使用

  1. 粘贴文本,选择「编码」或「解码」方向。
  2. 需要 URL 安全模式时勾选开关(+ / → - _)。
  3. 复制输出结果。

How to use

  1. Paste text and pick Encode or Decode.
  2. Toggle URL-safe if the output will live in a URL ( + / become - _ ).
  3. Copy the result.

FAQ

Why do some decoders garble Chinese text?

Because they interpret bytes as Latin-1 instead of UTF-8. This tool encodes and decodes as UTF-8, so CJK characters and emoji survive the round-trip.

Is Base64 encryption?

No. Base64 is an encoding, not encryption — anyone can decode it. Never use it to protect secrets.

What is URL-safe Base64?

It replaces + and / with - and _ so the string survives URLs and filenames. JWTs use it.