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

How to Decode Base64 (Step by Step)

Decode a Base64 string back to text or binary in your browser — step by step, with a free Base64 decoder.

Base64 turns binary into text; decoding reverses it. Here is how to decode a Base64 string safely in your browser, with nothing uploaded.

  1. 1

    Open the decoder

    Open the Base64 tool and switch it to decode mode.

  2. 2

    Paste your Base64

    Paste the Base64 string into the input. It is processed locally — nothing is sent to a server.

  3. 3

    Read the result

    The decoded text appears instantly. If the input was binary (e.g. an image), decode to a file instead.

Do it now

よくある質問

\xABと\u{HEX}の違いは何ですか?

\xABはUTF-8の1バイトを表します——複数バイトの文字は複数のエスケープに展開されます。\u{HEX}はUnicodeのコードポイントを表し、UTF-8でのバイト数に関係なく1文字につき1つのエスケープで済みます。JSのテンプレートリテラルは\u{...}構文を解釈できます。

なぜ絵文字は4バイトも占めるのですか?

多くの絵文字はU+FFFFを超える位置にあるため、UTF-8では4バイト必要になります。コードポイントエスケープ形式(\u{1F680})を使えば、これらを1つの論理的な文字として表示できます。

混在した形式もデコードできますか?

いいえ——誤認識を防ぐため、入力はすべてhex、すべてdecimal、すべて\xAB、またはすべて\u{}のいずれかに統一する必要があります。混在した入力は分割して、それぞれ個別に処理してください。

Base64エンコードだけしたい場合は?

当サイトのBase64エンコーダー&デコーダーをご利用ください——テキストやファイルを入力するとBase64が得られます。