base64

Encode or decode file or stdin to/from Base64, to stdout. More information: https://www.gnu.org/software/coreutils/base64.

base64 path/to/file

base64 --wrap 0|76|... path/to/file

base64 --decode path/to/file

somecommand | base64

somecommand | base64 --decode