BASENC(1) General Commands Manual BASENC(1)

basenc - 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.

basenc [OPTION]... [FILE]

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.

decode data
when decoding, ignore non-alphabetic characters
wrap encoded lines after COLS character (default 76, 0 to disable wrapping)
same as 'base64' program
file- and url-safe base64
same as 'base32' program
extended hex alphabet base32
hex encoding
bit string with least significant bit (lsb) first
bit string with most significant bit (msb) first
ascii85-like encoding; when encoding, input length must be a multiple of 4; when decoding, input length must be a multiple of 5
visually unambiguous base58 encoding
Print help
Print version
[file]

v(uutils coreutils) 0.11.0

2026-09-01