basenc

Encode or decode file or stdin using a specified encoding, to stdout. More information: https://www.gnu.org/software/coreutils/basenc.

basenc --base64 path/to/file

basenc --decode --base64 path/to/file

command | basenc --base32 -w42

command | basenc --base32