Base64 デコーダー
Decode Base64 data back to readable text online。無料、プライベート、100%クライアントサイド。
例を試す:
Local only
最近の履歴
履歴はまだありません
使い方
- Paste the Base64 string into the input box.
- Select the target character set.
- 出力でデコードされたテキストを確認します。
このツールを使うタスク
よくある Base64 デコードエラーを修正する
Base64 文字列がデコードに失敗する理由(パディングの欠落、URL セーフアルファベット、混入した空白文字)と、それぞれのケースを修復する具体的な手順を解説します。 タスク
16 進文字列を Base64 に変換する(逆変換も)
同じバイナリデータの 16 進ダンプと Base64 表現を相互変換します。バイトの欠落やパディングエラーなしに変換できます。 タスク
Base64 テキストをデコードし、欠落・破損したパディングに対処する
末尾の「=」パディングなし、または URL セーフアルファベットで届いた Base64 ペイロードをデコードし、元のバイト列を安全に復元します。 タスク
Basic Auth ヘッダーから資格情報を読み取る
Base64 デコードとコロンによる分割、そして Basic Auth の資格情報が慎重な取り扱いを要する理由をはっきりさせます。 タスク
multipart MIME メッセージをパースして各パートを取り出す
multipart/form-data や multipart/mixed の MIME メッセージを構成要素のヘッダーとボディに分解し、検査や再処理を行えるようにします。 タスク
不明なテキストのエンコーディングを検出して正しくデコードする
文字化けした文字列や生のバイト列から、UTF-8、Latin-1、Base64、URL エンコードのいずれかを判別し、読めるテキストにデコードします。 タスク
バイナリデータを JSON 安全な文字列にエンコードする
生のバイト列(画像、暗号化されたデータ、ファイルの内容)を、JSON 構造を壊さずにフィールドへ埋め込める Base64 文字列に変換します。 タスク
JWT トークンを検査する:検証なしでヘッダーとペイロードをデコード
JSON Web Token の構造を読み取り、アルゴリズム、クレーム、有効期限を確認します。純粋にクライアント側のみの処理で、サーバー検証は行いません。 タスク
OAuth 2.0 のトークンレスポンスをパースする
OAuth 2.0 は access_token、token_type、expires_in、そして任意で refresh_token を返します。トークンレスポンスを正しくパースして使う方法を学びましょう。 タスク
ネストした URL エンコードパラメータをデコードする(クエリ文字列内の Base64 JSON)
URL パラメータが URL エンコードされた Base64 JSON を運ぶというよくある API パターンをほどきます。1 つのチェーンに 3 つのツール、ページ間のコピペは不要です。 タスク
HTTP Basic 認証を使う
Basic 認証は、Base64 エンコードした username:password を Authorization ヘッダーで送ります。形式、セキュリティ上の要件、代替手段を学びましょう。 タスク
コンパクトなバイナリ JSON に CBOR エンコードを使う
CBOR(Concise Binary Object Representation、RFC 8949)は JSON ライクなデータ向けのバイナリシリアライズ形式で、JSON より小さく高速です。 タスク
効率的なバイナリシリアライズに MessagePack を使う
MessagePack は JSON ライクなデータをコンパクトなバイナリ形式にパックし、サイズとパース時間を削減します。高性能 API や IoT で人気です。 タスク
エンコード・デコードの往復がロスレスであることを検証する
デコードしてから再エンコード(またはその逆)が元の入力と完全に一致するかを確認し、アルファベットやパディングの誤りによる暗黙のデータ破損を検出します。 タスク
このツールを使うパイプライン
よくある質問
- What can I decode with this tool?
- Any standard Base64 string, including data found in emails (MIME), APIs, JWT payloads, data URIs, and Basic auth headers.
- What happens with invalid Base64?
- The tool reports an explicit 'Invalid Base64 input' error instead of silently producing garbage. Common causes are truncated strings, whitespace inside the payload, or non-Base64 characters.
- Does the tool strip whitespace and newlines?
- Yes. Whitespace and CRLF newlines are removed before decoding, so pasted PEM-style blocks or wrapped MIME content decode correctly.
- Which character sets are supported?
- UTF-8 (default), ASCII, Latin1, and UTF-16LE. Choose UTF-8 for multilingual text; Latin1 for legacy Western European data; UTF-16LE for Windows-native content.
- Can I decode a data URI prefix?
- Yes, but strip the 'data:...;base64,' prefix first. The decoder expects the raw Base64 payload without the MIME type header.
- Why does decoded text show replacement characters (�)?
- This usually means the wrong character set was selected. If the original was UTF-8 but you decode as Latin1, multibyte sequences become individual Latin1 characters. Switch the charset to UTF-8.
関連ツール
Base64 エンコーダー
Encode text or binary data to Base64 online。無料、プライベート、100%クライアントサイド。 ツール
Base32 デコーダー
Decode Base32 (RFC 4648) back to readable text online。無料、プライベート、100%クライアントサイド。 ツール
Base58 デコーダー
Decode Base58 (Bitcoin alphabet) back to readable text online。無料、プライベート、100%クライアントサイド。 ツール
HEX デコーダー
Decode hexadecimal back to readable text online。無料、プライベート、100%クライアントサイド。 ツール
URL デコーダー
Decode percent-encoded URL text back to readable characters。無料、プライベート、100%クライアントサイド。 ツール