OS Manuals

/usr/bin/base64

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running base64 --help (exit 0). permalink

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.

Usage: base64 [OPTION]... [FILE]

Arguments:
  [file]...

Options:
  -d, --decode          decode data [alias: -D]
  -i, --ignore-garbage  when decoding, ignore non-alphabetic characters
  -w, --wrap <COLS>     wrap encoded lines after COLS character (default 76, 0 to disable wrapping)
  -h, --help            Print help
  -V, --version         Print version
Options (5)
OptionDescriptionSource
-d, --decodedecode data [alias: -D]help + man
-i, --ignore-garbagewhen decoding, ignore non-alphabetic charactershelp + man
-w, --wrap COLSwrap encoded lines after COLS character (default 76, 0 to disable wrapping)help + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.