Base64 Encode Online
The most flexible Base64 encoder: encode plain text, any local file or a remote URL. You can pick the character set used for text, the Base64 standard (standard, MIME, URL-safe, PEM, IMAP and more) and the output format. Enable live mode to encode as you type.
Base64 Encode Online ツールの使い方
- データの種類を選びます:テキスト、ローカルファイル、リモート URL。
- テキストの場合は、必要に応じて文字コードを選びます(デフォルトは UTF-8 で、ほとんどのシステムが想定している形式です)。
- Base64 の規格と出力形式を選びます。
- Base64 にエンコードを押し、結果をコピーまたはダウンロードします。
対応している Base64 規格
- 標準(RFC 4648):文字セット
A–Z a–z 0–9 + /と=によるパディング。 - MIME(RFC 2045):同じ文字セットで、76文字ごとに CRLF で改行します。
- PEM(RFC 7468):証明書で使われる形式で、64文字ごとに改行します。
- Base64URL(RFC 4648 §5):
+と/の代わりに-と_を使用し、パディングなし。JWT や URL で使われます。 - IMAP(RFC 3501):
+と,を使用し、パディングなし。 - XML 名前トークン(
.と-)と XML 識別子(_と:)。 - OpenPGP ASCII アーマー(RFC 4880):76文字ごとの行に CRC-24 チェックサムを付加します。
文字コードが重要なのはなぜですか?
Base64 がエンコードするのは文字ではなくバイトです。同じ単語でも UTF-8、Windows-1252、Shift_JIS ではバイト列が異なるため、Base64 文字列も変わります。受け取る側のシステムが旧来の文字コードを明示的に求めていない限り、UTF-8 をお使いください。
When developers encode to Base64
Use this free Base64 encoder to embed images in CSS/HTML data URIs, put binary blobs in JSON APIs, build HTTP Basic Auth headers, wrap PEM certificates, or produce URL-safe tokens. Prefer Base64URL for JWTs and query strings, and MIME wrapping when a mail client expects 76-character lines.
Base64 エンコーダー一覧
- テキストを Base64 に変換
- ファイルを Base64 に変換
- 画像を Base64 に変換
- PNG を Base64 に変換
- JPG を Base64 に変換
- GIF を Base64 に変換
- BMP を Base64 に変換
- ICO を Base64 に変換
- SVG を Base64 に変換
- WebP を Base64 に変換
- AVIF を Base64 に変換
- 音声を Base64 に変換
- MP3 を Base64 に変換
- WAV を Base64 に変換
- Ogg を Base64 に変換
- FLAC を Base64 に変換
- WMA を Base64 に変換
- 動画を Base64 に変換
- PDF を Base64 に変換
- 16進数を Base64 に変換
- HTML を Base64 に変換
- CSS を Base64 に変換
- JSON を Base64 に変換
- URL を Base64 に変換
Base64 デコーダー一覧
よくある質問
文字列を Base64 エンコードするには?
「テキスト」を選び、文字列を貼り付けて「Base64 にエンコード」をクリックします。デフォルトの UTF-8 設定は、JavaScript、Python、PHP、Java の出力と一致します。
ファイルを Base64 エンコードできますか?
はい。「ローカルファイル」を選び、画像、PDF、ZIP、証明書など任意のファイルを選択してください。ファイルはローカルで処理され、アップロードされることはありません。
Base64 と Base64URL の違いは何ですか?
Base64URL は "+" を "-" に、"/" を "_" に置き換え、通常はパディングを省略します。そのため、結果をエスケープせずに URL やファイル名で使えます。
Is this Base64 encoder free?
Yes. Encode unlimited text and files in your browser with no sign-up. Nothing you encode is uploaded to our servers.
How do I encode for e-mail (MIME)?
Select the MIME (RFC 2045) standard so the output is wrapped at 76 characters with CRLF, which is what many mail systems expect.
コメント (0)
「Base64 Encode Online」についての質問、アイデア、不具合はありますか?コメントを残したり、ツールを評価したり、他の人に返信したりできます。
まだコメントはありません。最初のフィードバックをお寄せください!