01What is UUEncode Decoder?
Before MIME and Base64 took over, uuencoding was how people moved binary files through Usenet and plain-text email. You still run into it in old mailing list archives, legacy Unix shell scripts and a few long-lived batch jobs. This tool reads and writes that format so you don't need a terminal to peek inside a block. The format is simple. A block opens with a begin line that holds a permission mode and a filename, then come data lines, a final empty line and end. The POSIX specification for the uuencode utility describes this historical layout. Each data line starts with one character that gives its byte count. After that, every four characters stand for three bytes. Each character carries six bits, stored as its value plus 32. In Decode mode, the tool skips everything until it finds a line starting with begin. It takes the mode from the second word and treats the rest of the line as the filename, spaces included. For each data line it subtracts 32 from every character, keeps the low six bits, rebuilds the bytes and trims them to the length from the first character. It stops at end. A line holding just a backtick or a single space counts as empty. The decoded bytes are shown as UTF-8 text, with the filename, mode and byte count around them. Encode mode works the other way. Your text becomes UTF-8 bytes, gets split into 45-byte chunks, and each chunk becomes one line of up to 61 characters. The tool writes begin 644 with the filename you give, a closing backtick line, and end. Zero values are written as a backtick instead of a space, the way GNU uuencode does, so lines never end in spaces that a mail system might trim. A worked example: encode the word Cat as cat.txt. The bytes 67, 97 and 116 become one data line, #0V%T. The # is character 35, and 35 minus 32 gives the length of 3. Paste that block into Decode and you get Cat back, 3 bytes decoded. Some limits to know up front. Output is always shown as text. A real binary file, like an image or a zip, will look like garbage, and invalid UTF-8 sequences show up as replacement characters. Encode mode only takes typed text and always writes mode 644. It does not handle the Base64 variant that some uuencode versions write with begin-base64. All the work happens in JavaScript in your browser, and the pasted block is not sent to a server.
Sysadmins maintaining legacy Unix mail scripts, digital archivists working through old Usenet and list archives, and developers testing mail parsers. The tool runs entirely in your browser, so your data never leaves your device.
02How to use UUEncode Decoder
- Pick Decode or Encode with the buttons at the top.
- To decode, paste the whole block, from the begin line to end, into UUEncoded Input.
- To encode, type a name into Filename and your text into Text to Encode.
- Read the result: decoded text with its file name, mode and byte count, or the finished uuencoded block.
- Click Copy to grab the output, or the reset button to clear the input.
03Worked examples
- Input:
Encode "Cat" with Filename cat.txt - Result:
begin 644 cat.txt #0V%T ` end - The # at the start of the data line is character 35. Subtract 32 and you get the length, 3 bytes.
- Input:
begin 644 test.txt #0V%T ` end (Decode) - Result:
Cat, shown with File: test.txt (mode 644) and 3 bytes decoded - The bytes behind the text are 67, 97 and 116.
- Input:
Encode "Hi" followed by a newline, Filename hi.txt - Result:
begin 644 hi.txt #2&D* ` end - The newline is a real byte, so the length character says 3, not 2.
- Input:
Encode "héllo" with Filename x.txt - Result:
begin 644 x.txt &:,.I;&QO ` end - é takes two bytes in UTF-8, so five letters make six bytes, and & is character 38, which means 6.
- Input:
begin 644 hello.txt +2&5L;&\@5V]R;&0` ` end (Decode) - Result:
Hello World, 11 bytes decoded - The + at the start is character 43, so the line holds 11 bytes. The trailing backtick is padding.
- Input:
begin 755 my script.sh "2&D` ` end (Decode) - Result:
Hi, shown with File: my script.sh (mode 755) - Everything after the mode is taken as the filename, spaces included.
04Common use cases
- Reading a uuencoded text attachment found in an old Usenet post or mailing list archive
- Checking what a legacy cron script that pipes a report through uuencode into mail actually sends
- Making small uuencoded fixtures to test a mail parser that still has to accept pre-MIME messages
- Confirming the filename and permission mode in a begin line before running uudecode on a server
- Looking at a uuencoded block in a mail log during an incident without writing it to disk first
- Showing students how six-bit binary-to-text encoding worked before Base64
05Tips
- Keep the begin line in your paste. Data lines before it are ignored, so a block without one decodes to nothing.
- Each line's first character is its byte count plus 32. M means 45 bytes, a full line. A shorter last line has a smaller length character.
- If a decoded file looks cut short, check whether an editor or mail client stripped trailing spaces. Blocks that use backticks for zero, like the ones this encoder writes, avoid that problem.
- For images, archives or other binary files, use the uudecode command on Linux or macOS. This page only shows the bytes as text, so it can't give you the original file.
- Data in uuencoding and Base64 grows by about the same amount. Base64 won mostly because its alphabet avoids characters like backtick, backslash and quotes that some old gateways changed.
06Related concepts
uuencoding, binary-to-text encoding, Base64, MIME, Usenet.
Frequently Asked Questions
What is UUEncode Decoder?
UUEncode Decoder is a free, browser-based developer tool on AIDToolStack. Decode UUEncoded data It requires no installation or sign-up and works entirely in your browser.
Is UUEncode Decoder free to use?
Yes. No sign-up, no fees and no usage cap.
Does UUEncode Decoder store my data?
No. It runs in your browser; nothing is uploaded.