Base64 編碼器/解碼器

輸入

輸入要編碼的文字
0 個字元

選項

URL 安全模式將 + 替換為 -,將 / 替換為 _,以便在 URL 中安全使用。

輸出

Base64 編碼結果
0 個字元

關於此工具

Base64 編碼器/解碼器 已在地化為繁體中文。可用於驗證、轉換、檢查和匯出結果,無需將資料上傳到伺服器。

使用方式

Base64 編碼器/解碼器 已在地化為繁體中文。可用於驗證、轉換、檢查和匯出結果,無需將資料上傳到伺服器。

限制與重要提示

Base64 編碼器/解碼器 已在地化為繁體中文。可用於驗證、轉換、檢查和匯出結果,無需將資料上傳到伺服器。

Technical Details

Edge Cases & Tricky Inputs

  • UTF-8 multi-byte characters (emoji, CJK) are encoded correctly — each byte is mapped independently.
  • URL-safe Base64 replaces + with - and / with _ to avoid URL encoding issues.
  • Padding characters (=) can be omitted in some implementations but are included by default here.

Performance & Processing

  • Encoding/decoding runs via the browser's built-in btoa()/atob() for ASCII, with a TextEncoder fallback for UTF-8.
  • Files up to 5 MB can be encoded without issues on modern browsers.

Developer Notes

  • Base64 increases data size by approximately 33% — consider this for bandwidth-sensitive applications.
  • Data URIs using Base64 are supported in all modern browsers for images, fonts, and CSS.

Known Limitations

  • Not encryption — Base64 is trivially reversible and provides zero security.
  • Very large files may cause browser memory pressure during encoding.

Related Tool Collections