BASENC(1) General Commands Manual BASENC(1)

# [NAME](#NAME)

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.

# [SYNOPSIS](#SYNOPSIS)

**basenc** \[OPTION]... \[FILE]

# [DESCRIPTION](#DESCRIPTION)

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.

# [OPTIONS](#OPTIONS)

[**-d**, **--decode**](#d)

decode data

[**-i**, **--ignore-garbage**](#i)

when decoding, ignore non-alphabetic characters

[**-w**, **--wrap** *&lt;COLS&gt;*](#w)

wrap encoded lines after COLS character (default 76, 0 to disable wrapping)

[**--base64**](#base64)

same as 'base64' program

[**--base64url**](#base64url)

file- and url-safe base64

[**--base32**](#base32)

same as 'base32' program

[**--base32hex**](#base32hex)

extended hex alphabet base32

[**--base16**](#base16)

hex encoding

[**--base2lsbf**](#base2lsbf)

bit string with least significant bit (lsb) first

[**--base2msbf**](#base2msbf)

bit string with most significant bit (msb) first

[**--z85**](#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**](#base58)

visually unambiguous base58 encoding

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

\[*file*]

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-09-17

---

Document: basenc(1) from uutils 0.12.0-r0 (Chainguard OS)
Source: https://github.com/uutils/coreutils
