UUエンコード・デコード
テキストまたはバイナリデータをUUencodeフォーマットにエンコードするか、UUencodeされたブロックを元のデータにデコードします。
UUencoding is one of the oldest binary-to-text encodings in the Unix world, developed in the early 1980s to transfer binary files over UUCP (Unix-to-Unix Copy) networks that could only handle ASCII text. You will encounter it in old Usenet archives, legacy shell scripts, and source code that predates MIME. Understanding UUencode is essential for working with historical Unix data.
This tool encodes text or binary data to UUencode format — complete with the `begin` and `end` markers and permission mode that define a valid UU file — and decodes UUencoded blocks back to their original content. Useful for preserving or migrating legacy archive content, analysing old mail archives, and understanding how binary transfer worked before Base64 became universal.
UUencodeをオンラインでエンコード・デコードする方法
- 1
入力を貼り付ける
UUencodeブロックとしてエンコードするテキストまたはバイナリ入力を貼り付けるか、既存のUUencodeブロック(beginとend行を含む)を貼り付けてデコードしてください。
- 2
エンコードまたはデコード
ツールはbegin/endマーカー構文を生成・解析し、ブロック構造を検証します。
- 3
結果をコピー
エンコードされたブロックまたはデコードされたコンテンツをコピーしてください。レガシーメールアーカイブ、Usenetデータ、CTFチャレンジに便利です。
How UUencoding Works
UUencoding converts three input bytes (24 bits) into four output characters, similar to Base64, but uses a different 64-character alphabet. Each 6-bit group is mapped to an ASCII character by adding 32 to its value, putting output characters in the range 32–95 (space through underscore). Each output line is preceded by a length character — the number of bytes encoded on that line plus 32 — allowing the decoder to determine exactly how many bytes each line represents.
A UUencoded file begins with `begin MODE FILENAME` where MODE is the Unix file permission octet and FILENAME is the original filename, and ends with a line containing a grave accent (`` ` ``) followed by `end`. The filename and permissions are part of the encoding, which makes UUencode slightly richer in metadata than Base64, though this advantage is rarely useful today.
FileCrank UUエンコード・デコードを使う理由
- ✓ 正しいbegin/endマーカー構文を生成・解析。
- ✓ ブロック構造を検証し、エラーを明確に報告。
- ✓ レガシーメールとUsenetのUUencoded添付ファイルに対応。
- ✓ 完全にブラウザ内で動作 — データはサーバーに送信されません。
機能と仕様
よくある質問
UUencodeとは何ですか?
UUencode(Unix間エンコード)はバイナリデータをテキスト専用チャンネルで送信できる印刷可能なASCIIに変換します。3バイトのグループごとに4つの印刷可能な文字としてエンコードされます。UUencodeされたファイルはbegin [パーミッション] [ファイル名]行で始まりend行で終わります。
UUencodeは今でも使われていますか?
まれですが、レガシーメールアーカイブ、古いUsenetの投稿、CTFセキュリティチャレンジに今でも登場します。現代のメールはBase64エンコードのMIMEを使用します。
UUencodeとBase64の違いは何ですか?
どちらもバイナリを印刷可能なASCIIに変換しますが、異なる文字セットと行フォーマットを使用します。UUencodeはASCII値32〜95の文字を使用します。Base64はA〜Z、a〜z、0〜9、+、/を使用します。UUencodeにはbegin/endヘッダーが含まれますが、Base64には通常ありません。
UUencodeブロックでデコードエラーが発生しています — 何が問題ですか?
よくある問題:beginまたはend行の欠如、壊れた行長文字(各行の最初の文字が行の長さをエンコードします)、または行末変換によって導入された非印刷可能文字。beginとend行を含む正確なブロックを貼り付けてください。
UUencode vs. Base64 vs. MIME
UUencode is historically significant but obsolete for new work. Base64 is strictly superior: it is more widely implemented, has a cleaner alphabet that avoids the space character (which caused corruption in some mail systems), and is defined in MIME standards that every modern email client and HTTP library understands. Use this tool to read legacy data rather than to produce new encodings — for any new binary-to-text need, Base64 is the right choice.
関連ツール
FileCrank UUエンコード・デコードはbegin/endマーカー構文を含むUUencodeブロックをエンコード・デコードします。レガシーメール、Usenetアーカイブ、CTFチャレンジに便利です。
Advertisement