Linux Commandsbase64On this pagebase64base64 encoding without new line Use -w 0 $ cat /tmp/.env | base64 -w 0 Ref: https://superuser.com/a/1225139/514114