メインコンテンツへスキップ

Base64エンコード・デコード

テキストやバイナリデータをBase64にエンコードし、Base64文字列をプレーンテキストにデコードします。ブラウザ内で即座に処理。

Input
0 chars | 0 bytes
Encode
Output
0 chars | 0 bytes

Base64 encoding is the go-to solution whenever you need to transmit binary data through a channel designed for text. Whether you are embedding images directly in CSS, passing authentication credentials in an HTTP header, or storing binary blobs in JSON payloads, Base64 gives you a reliable, universally understood encoding that survives every text-safe transport layer intact.

Developers reach for Base64 constantly — in JWTs, data URIs, MIME email attachments, and environment variables that carry certificates or keys. This tool lets you encode any UTF-8 string or paste a Base64 string and decode it instantly, so you can inspect tokens, debug API payloads, and verify encoded assets without leaving the browser.

Base64をオンラインでエンコード・デコードする方法

  1. 1

    入力を貼り付ける

    入力パネルにプレーンテキストまたはBase64文字列を貼り付けてください。エンコードまたはデコードを選択します。

  2. 2

    即座に結果を取得

    エンコードまたはデコードされた出力が即座に表示されます。ツールは入力を検証し、無効なBase64文字の正確な位置を報告します。

  3. 3

    出力をコピー

    クリップボードに結果をコピーしてください。標準Base64(RFC 4648)とURLセーフBase64バリアントをサポートします。

How Base64 Encoding Works

Base64 works by splitting the input byte stream into 6-bit groups rather than the usual 8-bit bytes. Each 6-bit value maps to one of 64 printable ASCII characters — the uppercase and lowercase Latin alphabet, the digits 0–9, and the two symbols `+` and `/`. Because 6 bits fit into one character and 8 bits make one byte, every 3 bytes of input produce exactly 4 Base64 characters, expanding the data by roughly 33%.

When the input length is not a multiple of three, padding characters (`=`) are appended to keep the output length a multiple of four. URL-safe Base64 replaces `+` with `-` and `/` with `_` to avoid conflicts in query strings and filenames — important to know when decoding tokens from OAuth or JWT sources.

FileCrank Base64エンコーダー・デコーダーを使う理由

  • ✓ 標準Base64(RFC 4648)とURLセーフBase64をサポート。
  • ✓ 無効な文字を位置情報付きで検証・ハイライト。
  • ✓ テキストとバイナリデータの表現に対応。
  • ✓ 完全にブラウザ内で動作 — データはサーバーに送信されません。

機能と仕様

最大ファイルサイズ
最大100 MB
プライバシー
ファイルは約1時間後に削除されます
料金
無料、登録不要
処理方式
100%クライアントサイド
エンコーディング規格
RFC 4648 — URL-safe variant supported
クリップボードサポート
One-click copy to clipboard
データはブラウザの外に出ません — すべての処理はローカルです。アカウントや登録不要。使用制限なしで無料。

よくある質問

Base64エンコードは何に使われますか?

Base64は画像、フォント、ファイルなどのバイナリデータをJSON、HTML、XML、電子メールなどのテキスト形式に埋め込むために使用されます。3バイトごとに4つのASCII文字としてエンコードし、サイズが約33%増加します。

標準Base64とURLセーフBase64の違いは何ですか?

標準Base64はURLで特別な意味を持つ+と/を使用します。URLセーフBase64はそれらを-と_に置き換え、パーセントエンコードなしでクエリ文字列やファイル名で安全に使用できます。

デコードされたBase64出力が文字化けして見えるのはなぜですか?

入力がUTF-8テキスト文字列ではなく、おそらくバイナリデータ(画像やファイル)です。Base64エンコードされたバイナリはバイナリバイトにデコードされます。読みやすいテキストを期待している場合、元のエンコーダーが非テキストファイルをエンコードした可能性があります。

Base64エンコードのサイズ制限はありますか?

表示されている制限までの入力を処理します。大きなファイルについては、ブラウザでのBase64エンコードはメモリの制約が問題になる前に数MBまで実用的です。

Base64 vs. Hex Encoding vs. Compression

Hex encoding is simpler — each byte becomes two hex digits — but it doubles the data size instead of adding only 33%. Base85 and Base91 are more compact than Base64 but far less universally supported. If size is the concern and both ends control the codec, consider zlib or gzip compression before encoding. Base64 wins on compatibility: every standard library in every language ships a Base64 codec, making it the safest default for interoperability.

FileCrank Base64エンコード・デコードはテキストとバイナリデータをBase64形式との間で変換します。RFC 4648とURLセーフバリアントをサポートし、完全にブラウザ内で動作します。

Advertisement

Ad