OS Manuals

/usr/bin/basenc

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running basenc --help (exit 0). permalink

Encode/decode data and print to standard output
With no FILE, or when FILE is -, read standard input.

When decoding, the input may contain newlines in addition to the bytes of
the formal alphabet. Use --ignore-garbage to attempt to recover
from any other non-alphabet bytes in the encoded stream.

Usage: basenc [OPTION]... [FILE]

Arguments:
  [file]...

Options:
  -d, --decode          decode data [alias: -D]
  -i, --ignore-garbage  when decoding, ignore non-alphabetic characters
  -w, --wrap <COLS>     wrap encoded lines after COLS character (default 76, 0 to disable wrapping)
      --base64          same as 'base64' program
      --base64url       file- and url-safe base64
      --base32          same as 'base32' program
      --base32hex       extended hex alphabet base32
      --base16          hex encoding
      --base2lsbf       bit string with least significant bit (lsb) first
      --base2msbf       bit string with most significant bit (msb) first
      --z85             ascii85-like encoding;
                        when encoding, input length must be a multiple of 4;
                        when decoding, input length must be a multiple of 5
      --base58          visually unambiguous base58 encoding
  -h, --help            Print help
  -V, --version         Print version
Options (14)
OptionDescriptionSource
-d, --decodedecode data [alias: -D]help + man
-i, --ignore-garbagewhen decoding, ignore non-alphabetic charactershelp + man
-w, --wrap COLSwrap encoded lines after COLS character (default 76, 0 to disable wrapping)help + man
--base64same as 'base64' programhelp + man
--base64urlfile- and url-safe base64help + man
--base32same as 'base32' programhelp + man
--base32hexextended hex alphabet base32help + man
--base16hex encodinghelp + man
--base2lsbfbit string with least significant bit (lsb) firsthelp + man
--base2msbfbit string with most significant bit (msb) firsthelp + man
--z85ascii85-like encoding;help + man
--base58visually unambiguous base58 encodinghelp + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.