convert file to base64 string linux code example Example: echo encode base64 $ echo 'linuxhint.com' | base64