System Grab Bag

View all TLDR pages from Mac OS X (or from all pages)

base64

Encode and decode using Base64 representation. More information: https://www.unix.com/man-page/osx/1/base64/.
  • Encode a file:
    base64 --input={{plain_file}}
  • Decode a file:
    base64 --decode --input={{base64_file}}
  • Encode from stdin:
    echo -n "{{plain_text}}" | base64
  • Decode from stdin:
    echo -n {{base64_text}} | base64 --decode

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.

Other Projects

This TLDR page is also found in other projects: