BASENC(1)
๐ BASENC(1) โ bestie's guide to encoding/decoding ๐
User Commands ยท the basenc page, but make it a group chat ๐
โจ NAME โจ
basenc โ encode/decode data and print to standard output ๐ฆ
โจ SYNOPSIS โจ
basenc [OPTION]... [FILE]
โจ DESCRIPTION โจ
okay so basenc encodes or decodes FILE, or standard input, straight to standard output. that's the whole vibe ๐
If there's no FILE, or when FILE is -, it reads standard input. classic.
Mandatory arguments to long options are mandatory for short options too. (yes bestie, that applies to you too ๐ซถ)
--base64โ literally the same as thebase64(1)program (RFC4648 section 4) โจ--base64urlโ file- and url-safe base64 (RFC4648 section 5) ๐ฅ--base58โ visually unambiguous base58 encoding ๐ (no confusing lookalike characters, we love that)--base32โ same as thebase32(1)program (RFC4648 section 6) ๐ธ--base32hexโ extended hex alphabet base32 (RFC4648 section 7) ๐ง--base16โ hex encoding (RFC4648 section 8) โญ--base2msbfโ bit string with most significant bit (msb) first ๐ฆ--base2lsbfโ bit string with least significant bit (lsb) first ๐ฆ-d,--decodeโ decode data ๐-i,--ignore-garbageโ when decoding, ignore non-alphabet characters ๐ (the "girl just skip it" flag)-w,--wrap=COLSโ wrap encoded lines afterCOLScharacter (default76). Use0to disable line wrapping ๐--z85โ ascii85-like encoding (ZeroMQ spec:32/Z85); when encoding, input length must be a multiple of4; when decoding, input length must be a multiple of5โ ๏ธ (the math is mathing, respect it)--helpโ display this help and exit ๐ซถ--versionโ output version information and exit โจ
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. ๐
๐ ENCODING EXAMPLES ๐
these are the examples, and honestly? iconic. keep them exactly like this, no cap:
$ printf '\376\117\202' | basenc --base64
/k+C
$ printf '\376\117\202' | basenc --base64url
_k-C
$ printf '\376\117\202' | basenc --base32
7ZHYE===
$ printf '\376\117\202' | basenc --base32hex
VP7O4===
$ printf '\376\117\202' | basenc --base16
FE4F82
$ printf '\376\117\202' | basenc --base2lsbf
011111111111001001000001
$ printf '\376\117\202' | basenc --base2msbf
111111100100111110000010
$ printf '\376\117\202\000' | basenc --z85
@.FaC
๐ AUTHOR ๐
Written by Simon Josefsson and Assaf Gordon. absolute legends, honestly ๐
๐ญ REPORTING BUGS ๐ญ
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. fr fr, no warranty bestie ๐ญ
๐ฆ SEE ALSO ๐ฆ
- Full documentation <https://www.gnu.org/software/coreutils/basenc>
- or available locally via:
info '(coreutils) basenc invocation'
and that's the page!! this one's from GNU coreutils 9.12, dated September 2026 โ go forth and encode, you absolute main character ๐ โจ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms