Also found in: Acronyms.


(computer science)
A protocol for sending binary files in ASCII text format over the Internet, particularly e-mail attachments.
McGraw-Hill Dictionary of Scientific & Technical Terms, 6E, Copyright © 2003 by The McGraw-Hill Companies, Inc.


(Unix-to-Unix encode) A Unix program for encoding binary data as ASCII. Uuencode was originally used with uucp to transfer binary files over serial lines which did not preserve the top bit of characters, but is now used for sending binary files by e-mail and posting to Usenet newsgroups etc. The program uudecode reverses the effect of uuencode, recreating the original binary file exactly.

Uuencoded data starts with a line of the form

begin <mode> <file>

where <mode> is the files read/write/execute permissions as three octal digits and <file> is the name to be used when recreating the binary data.

Uuencode repeatedly takes in a group of three bytes, adding trailing zeros if there are less than three bytes left. These 24 bits are split into four groups of six which are treated as numbers between 0 and 63. Decimal 32 is added to each number and they are output as ASCII characters from 32 (space) to 32+63 = 95 (underscore). Each group of sixty output characters (corresponding to 45 input bytes) is output as a separate line preceded by an 'M' (ASCII code 77 = 32+45). At the end of the input, if there are N output characters left after the last group of sixty and N>0 then they will be preceded by the character whose code is 32+N. Finally, a line containing just a single space is output, followed by one containing just "end".

Sometimes each data line has an extra dummy character added to avoid problems which mailers that strip trailing spaces. These characters are ignored by uudecode.

Despite using this limited range of characters, there are still some problems encountered when uuencoded data passes through certain old computers. The worst offenders are computers using non-ASCII character sets such as EBCDIC.

Base 64 encoding is probably now more commonly used than uuencode.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)


A common method for transmitting non-text files via Internet email, which was originally designed for ASCII text. The UUencode utility encodes the files by converting 8-bit characters into 7-bit ASCII text, and the UUdecode utility decodes it back to its original format at the receiving end. Originating in the Unix community, UUcoding was one of the first methods for sending binary files as attached files over Internet email. Today, MIME is widely used. See BinHex, MIME and Wincode.
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
References in periodicals archive ?
UUENCODE Stands for "Unix To Unix Encoding"and is the most common way to send pictures sound and even text as a series of numbers over e-mail and Usenet.
Additionally, the software scans and repairs compressed files as well as MIME and UUENCODE attachments.
Among DOS and UNIX users, the standard ASCII encoding software is UUENCODE, and the standard decoder is UUDECODE.