BASENC(1)
π BASENC(1) β bestie edition π
okay so this is basenc, section 1 of the manual, and bestie it is exactly the little encoder/decoder you've been looking for. it's giving "swiss army knife but make it base-anything" β¨
π¦ NAME π¦
basenc β encode/decode data and print to standard output. With no FILE, or when FILE is -, read standard input.
also!! when you're decoding, the input is allowed to have newlines in it on top of the bytes of the formal alphabet, which is lowkey generous of it. and if there's other non-alphabet junk in that encoded stream and you wanna try to recover? use --ignore-garbage for that. periodt. π
π SYNOPSIS π
basenc [OPTION]... [FILE]
β¨ DESCRIPTION β¨
basenc encodes and decodes data and prints it to standard output. no FILE? or FILE is literally just -? then it reads from standard input, easy.
and okay here's the tea on decoding: the input may contain newlines in addition to the bytes of the formal alphabet. but if there's other non-alphabet bytes in the encoded stream, that's when you reach for --ignore-garbage and it will attempt to recover from them. slay. π«Ά
π OPTIONS π
-d,--decodeβ decode data. the reverse girlie.-i,--ignore-garbageβ when decoding, just ignore non-alphabetic characters. letting it go, moving on, no drama. π§-w,--wrap <COLS>β wrap encoded lines after COLS characters. default is76, and0disables wrapping entirely (chaos option, honestly).--base64β same as thebase64program. the classic.--base64urlβ file- and url-safe base64. the one that behaves in URLs. π--base32β same as thebase32program.--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. β οΈ and listen: when encoding, input length must be a multiple of4; when decoding, input length must be a multiple of5. no in-between, no exceptions, no cap.--base58β visually unambiguous base58 encoding. no confusing lookalike characters here, iykyk. π-h,--helpβ print help.-V,--versionβ print version.[file]
β VERSION β
v(uutils coreutils) 0.12.0
πΈ EXAMPLES πΈ
encode a file with Base64 encoding:
basenc --base64 path/to/file
decode a file with Base64 encoding:
basenc [-d|--decode] --base64 path/to/file
encode from stdin with Base32 encoding with 42 columns:
command | basenc --base32 [-w|--wrap] 42
encode from stdin with Base32 encoding:
command | basenc --base32
the examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. π also please keep in mind that, as uutils is a work in progress, some examples might fail. not me warning you in advance though π
okay that's the whole page, bestie!! π this came to you from v(uutils coreutils) 0.12.0, dated 2026-09-25 β write that down, take a pic, it's iconic πΈβ¨ mwah, go encode something π
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms