Search notes:

Shell command: base64

base64 encodes and decodes data to/from Base64.
Encoding and decoding data on stdin:
$ echo hello world | base64
aGVsbG8gd29ybGQK

$ echo aGVsbG8gd29ybGQK  | base64 -d
hello world
Encoding and decoding data in a file:
$ echo hello world > /tmp/data
$ base64 /tmp/data
aGVsbG8gd29ybGQK

$ echo aGVsbG8gd29ybGQK > /tmp/data.64
$ base64 -d /tmp/data.64
hello world

See also

Shell commands

Index