To decode a file with contents that are base64 encoded, you simply provide the path of the file with the –decode flag . As with encoding files, the output will be a very long string of the original file. You may want to output stdout directly to a file.