Translate a File to UU Encoded Form

UUENCODE is a C program which reads a file (often a binary file) and translates it to the UU encoding, by Stephen Satchell and Chuck Forsberg.

The resulting file is a text file.

The encoded file can often be transferred more easily than a binary file. The encoded file can be decoded by the UUDECODE, which recovers the original file, with its original name.


uuencode input > output
will read the file input and write a UU encoded text version as the file output.


Programmers may incorporate any or all code into their programs, giving proper credit within the source. Publication of the source routines is permitted so long as credit is given to:


UUENCODE is available in a C version.

Related Data and Programs:

I2_BINARY_TO_ASCII a C++ program which converts a file of short int (I2) data from binary to ASCII format.

PIG_LATIN, a C program which translates a file to Pig Latin.

ROT13, a C++ program which reads a file of text and converts it to ROT13 text, and vice versa.

UUDECODE, a C program which translates a UU encoded file back to its original form.


Stephen Satchell, Chuck Forsberg.

Source Code:

Examples and Tests:

You can go up one level to the C source codes.

Last revised on 06 December 2007