🔐 Base64 编码/解码

🔒 安全 & 客户端处理

将文本编码或解码为 Base64。

How to use

  1. Type or paste text into the input box.
  2. Click Encode to convert text to Base64, or Decode to reverse it.
  3. Multi-byte characters (emoji, CJK) are handled correctly via TextEncoder/TextDecoder.
  4. Click Copy to send the result to your clipboard.

Base64 is commonly used in HTTP Basic Auth headers, Data URIs (data:image/png;base64,...), email attachments (MIME), and JWT segments. It is encoding, not encryption — anyone can decode it.

Examples

UTF-8 round-trip:

Encode: "Hello 🌍" → SGVsbG8g8J+MjQ==
Decode: SGVsbG8g8J+MjQ== → "Hello 🌍"

Decoding a JWT payload:

eyJzdWIiOiIxMjMiLCJuYW1lIjoiQWRhIn0
→ {"sub":"123","name":"Ada"}