Uuencode and Uudecode Online
Encode binary data to Uuencode format for email transmission, or decode Uuencoded data back to its original binary form. This tool is useful for legacy system file transfers.
Uuencode/Uudecode Tool
Encode binary data to Uuencode format for email transmission and decode Uuencoded data back to binary.
About Uuencode
Uuencode (Unix-to-Unix encoding) is a binary-to-text encoding scheme that originated on Unix systems. It converts binary data into ASCII text for safe transmission over email or other text-only channels. The format includes a header with file permissions and filename, followed by encoded data lines, and ends with "end". Each line encodes up to 45 bytes of binary data into 60 ASCII characters.
How the Uuencode/Uudecode Tool Works
Uuencode (Unix-to-Unix encoding) converts binary data into ASCII text for safe transmission over systems that only handle text, like old email servers or Usenet. The tool wraps your data with a header containing the filename and Unix file permissions, then encodes the content line by line.
Each line encodes up to 45 bytes of binary data into 60 ASCII characters. The encoding works by taking 3 bytes (24 bits) and splitting them into 4 groups of 6 bits each. Each 6-bit value maps to a printable ASCII character by adding 32 to the value.
When decoding, the tool reads the header to extract the original filename and permissions, then reverses the process: each character has 32 subtracted to recover the 6-bit values, which are recombined into the original bytes. The encoded data ends with a grave accent (`) followed by "end".
To encode: enter your text, optionally set the filename and file mode (like 644 for readable files), then click Uuencode. To decode: paste Uuencoded data and click Uudecode. The tool automatically extracts the embedded filename and permissions from the header.
When You'd Actually Use This
Sending files through old email systems
Legacy email gateways strip binary attachments. Uuencode converts files to plain text that passes through safely. The recipient decodes to recover the original file with its name intact.
Working with Unix backup archives
Old Unix backup tapes and archives often contain Uuencoded files. Decode them to restore original data with proper permissions preserved in the header.
Posting binary files to Usenet
Usenet newsgroups historically used Uuencode for binary posts. Images, software, and data files were encoded as text articles. Decode to extract the original content.
Debugging legacy system transfers
Old mainframe and Unix systems still use Uuencode for file transfers. When a transfer fails, decode the received text to verify what actually arrived versus what was sent.
Preserving file metadata in text format
The Uuencode header stores the original filename and Unix permissions (like 755 or 644). This metadata survives text-only transmission and is restored on decode.
Converting man pages and documentation
Unix manual pages and technical documents were often distributed as Uuencoded files. Decode historical documentation archives to access original formatted content.
What to Know Before Using
Uuencode is largely obsolete.Modern systems use Base64 (MIME) for email attachments. Uuencode persists in legacy Unix environments and historical archives. Use Base64 for new applications.
File permissions are Unix-specific.The mode field (like 644) represents Unix file permissions. Windows systems don't use these permissions, but they're preserved for round-trip transfers between Unix systems.
Output is about 35% larger than input.Like all binary-to-text encodings, Uuencode expands data. Three bytes become four characters. Factor this into size limits for email or transmission.
Header format must be exact.The "begin MODE FILENAME" header and "end" footer are required for valid Uuencode. Malformed headers will cause decode failures. This tool handles standard format.
Pro tip: The filename in the header is just metadata. When decoding, the tool extracts the content but you'll need to manually save it with the correct filename. The embedded filename tells you what it should be called.
Common Questions
What does "uu" stand for?
"Unix-to-Unix". Uuencode was part of the UUCP (Unix-to-Unix Copy) suite of tools developed in the 1970s for transferring files between Unix systems over phone lines.
What file mode should I use?
Use 644 for regular readable files (owner read/write, others read-only). Use 755 for executable scripts (owner full, others read/execute). Use 600 for private files (owner only).
Can I encode binary files like images?
Yes, Uuencode handles any binary data. Upload the file using the upload button. The binary bytes are encoded just like text. Decode restores the exact original bytes.
Why does the output have a grave accent (`)?
The grave accent line marks the end of encoded data before the "end" keyword. It represents a zero-length line and signals the decoder that no more data follows.
Is Uuencode secure?
No. Uuencode is encoding, not encryption. Anyone can decode it. It's for data representation, not confidentiality. Use encryption if you need to hide content.
What's the difference between Uuencode and Base64?
Uuencode uses ASCII 32-95 (space to underscore). Base64 uses A-Z, a-z, 0-9, +, /. Base64 is more universal today. Uuencode includes filename/permissions in the header; Base64 doesn't.
Can I decode multiple Uuencoded files in one paste?
This tool decodes one file at a time. If you paste multiple Uuencoded blocks (each with begin/end), only the first complete block will be decoded. Separate files for individual decoding.
Other Free Tools
Base64 Encoder/Decoder
Base64 Encode and Decode Online
UTF-8 Encoder/Decoder
UTF-8 Encoder and Decoder
Binary Encoder/Decoder
Binary Encoder and Decoder
Hex Encoder/Decoder
Hexadecimal Encoder and Decoder
ASCII to Hex Converter
ASCII to Hex Converter: Text to Hexadecimal Translator
Barcode Generator
Free Barcode Generator
Binary to Text Converter
Binary to Text Converter
Free Printable Calendar Maker
Create & Print Your Custom Calendar
Pie Chart Maker
Free Pie Chart Maker Online