$ base64 <input file> Enter fullscreen mode Exit fullscreen mode That was surprisingly easy. Ubuntu 20.04.