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

Base91エンコード・デコード

ブラウザでBase91文字列をエンコード・デコードします — バイナリデータにBase64より効率的。

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

Base64 is ubiquitous but not optimal — it inflates data by 33%. Base91 is a lesser-known encoding that achieves better density by using a 91-character alphabet, typically producing output 10–15% smaller than the equivalent Base64 string. For applications where every byte counts — embedded payloads, URL-embedded data, or bandwidth-constrained channels — Base91 is worth reaching for.

This tool encodes arbitrary text or binary data to Base91 and decodes Base91 strings back to their original form. It is useful for developers working on data serialisation in constrained environments, anyone exploring alternative encodings for educational purposes, or security researchers analysing obfuscated payloads that may use non-standard encodings.

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

  1. 1

    入力を貼り付ける

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

  2. 2

    エンコードまたはデコードを選択

    エンコードを選択するとBase91文字列が生成され、デコードを選択すると元のデータが復元されます。ツールは無効な文字を報告します。

  3. 3

    結果をコピー

    出力をコピーしてください。Base91の出力はBase64と比べて通常8〜10%小さくなります。

How Base91 Encoding Works

Base91 was designed by Joachim Henke to maximise encoding efficiency while using only printable ASCII characters safe for use in most text contexts. It works by processing the input bitstream in 13-bit chunks rather than the 6-bit chunks used by Base64. Two output characters encode 13 bits rather than 6 bits per character, achieving a theoretical expansion ratio of about 1.23× versus Base64's 1.33×. The 91-character alphabet deliberately excludes characters that cause problems in common contexts — no single or double quotes, no backslash, no angle brackets.

Because 91 is not a power of two, the encoding algorithm uses a modular arithmetic trick rather than simple bit masking, which makes it slightly more complex to implement but delivers the efficiency gain. Decoders must handle the tail of the input carefully when the total bit count is not a multiple of 13.

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

  • ✓ Base64より約8〜10%小さい出力を生成。
  • ✓ 最大互換性のために91個の印刷可能なASCII文字を使用。
  • ✓ 無効な文字を明確に検証・報告。
  • ✓ 完全にブラウザ内で動作 — データはサーバーに送信されません。

機能と仕様

最大ファイルサイズ
最大100 MB
プライバシー
ファイルは約1時間後に削除されます
料金
無料、登録不要
処理方式
100%クライアントサイド
データはブラウザの外に出ません — すべての処理はローカルです。アカウントや登録不要。使用制限なしで無料。

よくある質問

Base91とBase64の違いは何ですか?

Base91は91個の印刷可能なASCII文字を使用し、Base64よりも効率的にデータをエンコードします — Base64の1.33バイト/入力バイトに対して約1.23バイト — 出力が約8〜10%小さくなります。

Base64ではなくBase91を使うのはいつですか?

バイナリデータのコンパクトなASCII表現が重要で、受信システムがBase91デコードをサポートしている場合にBase91を使用してください。標準プロトコルでは一般的ではありません。不明な場合はBase64を使用してください。

Base91は任意のバイナリデータをエンコードできますか?

はい。Base91は任意のバイトシーケンスをエンコードして、ほとんどのテキスト専用システムで安全に送信できる印刷可能なASCII文字列を生成できます。

Base91はBase85やBase92と同じですか?

いいえ。Base85(Ascii85)は85個の印刷可能な文字を使用しPDFで使われています。Base91は91個の印刷可能な文字を使用します。Base92は別の一般的でないスキームです。各スキームは同じ入力に対して異なる出力を生成します。

Base91 vs. Base64 vs. Base85

Base64 is supported everywhere and should remain the default for interoperability. Base85 (used in PDF and git binary patches) is also more compact than Base64 but uses characters that can conflict with shell and XML contexts. Base91 strikes a middle ground — better density than Base64, a safer alphabet than Base85, but with almost no standard library support. Use Base91 when you control both encoder and decoder and want compact printable output.

FileCrank Base91エンコード・デコードは91個の文字を使用してバイナリデータを印刷可能なASCIIとしてエンコードします。Base64より約8〜10%コンパクトな出力で、完全にブラウザ内で動作します。

Advertisement

Ad