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.