The UU Encode/Decode tool is a free online utility designed for bidirectional conversion between data and the UU encoding format. UU encoding (Unix-to-Unix Encoding) is a binary-to-text encoding method widely used in early Unix systems, primarily for transmitting binary files through communication protocols that do not support 8-bit data (such as email). This tool helps users easily perform UU encoding and decoding operations on text data or file content through a simple and intuitive interface, facilitating data transmission, processing, or parsing.
The core principle of UU encoding is to convert every 3 8-bit bytes (24 bits in total) of binary data into 4 6-bit blocks. Each 6-bit block is then mapped to a printable ASCII character. Specifically, 32 (the ASCII value of ' ') is added to each 6-bit value, resulting in an ASCII value between 32 and 95 (i.e., from space to underscore `_`).
A standard UU encoded string typically contains the following parts:
begin mode filename: The start line, indicating the file permission mode and the original filename.end: The end line.This conversion method ensures that binary data is not corrupted when transmitted over a 7-bit ASCII communication link and can be accurately restored to its original data after decoding.
Paste the raw text or data you need to encode into the "Before encoding" text box (e.g., Hello, World!).
Click the "Encode" button, and the tool will convert the data from "Before encoding" to UU encoding format and automatically display it in the "After encoding" text box.
Paste the complete UU encoded string containing begin and end lines into the "After encoding" text box.
Click the "Decode" button, and the tool will parse the UU encoded string from "After encoding" and restore the decoded raw data to the "Before encoding" text box.
"Before encoding": Accepts any text data.
"After encoding": Accepts text strings conforming to UU encoding specifications, it is recommended to include complete begin and end lines to ensure correct parsing.
UU encoding output: Standard UU encoded string, including begin and end lines.
UU decoding output: Raw text data.
Hello, World!
begin 644 <data>
#0V%T($EL@V-P``
`
end
begin 644 <data>
#0V%T($EL@V-P``
`
end
Hello, World!
begin and end lines? A: To ensure the completeness and correctness of UU encoding, it is recommended to provide a complete UU encoded string containing begin and end lines during decoding. When performing encoding operations, this tool will automatically generate these lines for you.begin, end lines, and the length character of each line. Incorrect format may lead to decoding failure or garbled output.No comments yet
Be the first to leave a comment!
2022.10-18