BASE64(1) General Commands Manual BASE64(1)

base64encode/decode base64 data to standard output

base64 [-d] [-w wrap] [file...]

base64 reads file, encodes or decodes in base64 and writes the results into standard output. If no file is given, base64 reads from the standard input.

Decode input instead of encoding it.
wrap
Write at most wrap characters per line instead of the default of 76 characters. If wrap is 0, then no newlines are written.

The base64 utility exits 0 on success, and >0 if an error occurs.

base64 follows base64 as defined in RFC3548 and RFC4648.

A base64 utility first appeared in GNU Coreutils 6.0 (2006-08-15), FreeBSD 4.3, NetBSD 9

Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>

2023-11-01 Linux 6.6.67-gentoo-x86_64