
How to Base64-Encode or Decode a File From the Command Line
Base64-encode and decode a file from the terminal with the built-in base64 command. The macOS-vs-GNU flag gotcha (-D vs -d), the line-wrapping difference, and building a data URI from an image.
















![Convert a PSD to PNG From the Command Line (ImageMagick) Convert a PSD to PNG from the command line with ImageMagick using the [0] composite-layer trick, extract individual layers, batch a folder, and the Maximize Compatibility caveat.](https://images.techearl.com/convert-psd-to-png-command-line/convert-psd-to-png-command-line-1536.webp?v=2026-06-02T03%3A47%3A05Z)



























































































































