BASE64(1)
π BASE64(1) π
okay bestie, so like β this is the base64 manual page from the uutils coreutils world, and it's genuinely one of the most useful little gremlins in your terminal. No cap. Let's get into it. β¨
πΈ NAME πΈ
base64 β encode/decode data and print to standard output. With no FILE, or when FILE is -, read standard input.
The data are encoded as described for the base64 alphabet in RFC 3548. When decoding, the input may contain newlines in addition to the bytes of the formal base64 alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream.
π SYNOPSIS π
base64 [OPTION]... [FILE]
π¦ DESCRIPTION π¦
Literally what it says on the tin: encode/decode data and print to standard output. With no FILE, or when FILE is -, it reads standard input. (Yes, - is the "just read stdin pls" signal. She's flexible like that. π
)
The data are encoded as described for the base64 alphabet in RFC 3548 β that's the standard, don't @ me.
When decoding, the input may contain newlines in addition to the bytes of the formal base64 alphabet, so it's not gonna trip over a stray linebreak. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream β that's your little rescue mission flag for messy input. π«Ά
β¨ OPTIONS β¨
-d,--decodeβ decode data. (turns the gibberish back into real stuff, iconic)-i,--ignore-garbageβ when decoding, ignore non-alphabetic characters. (it's giving "I don't see it, therefore it's not there" energy π)-w,--wrap <COLS>β wrap encoded lines after COLS character (default76,0to disable wrapping). The default is76bestie, and0means no wrapping at all, we're letting it run free π-h,--helpβ Print help-V,--versionβ Print version
And then there's [file] β the optional file argument, sitting there being optional. π
π VERSION π
v(uutils coreutils) 0.12.0
π₯ EXAMPLES π₯
Encode a file:
base64 path/to/file
Wrap encoded output at a specific width (0 disables wrapping):
base64 [-w|--wrap] 0|76|... path/to/file
Decode a file:
base64 [-d|--decode] path/to/file
Encode from stdin:
command | base64
Decode from stdin:
command | base64 [-d|--decode]
The examples are provided by the tldr-pages project https://tldr.sh under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. (not me hyping up a project that's still cooking π but fr fr, some examples might fail, that's just the tea)
okay that's the whole page bestie, you ate that π β¨
sign-off time π β this one's from uutils coreutils version 0.12.0, dated 2026-09-25, and it's the BASE64(1) page from the General Commands Manual. go forth and encode, my main character ππ¦
π¦ 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