TO BASE64 install npm i -g tobase64 usage // bash $/xxx/dir/path: tobase64 /User/download/icon.png Now result is in your clipboard, you can use command + v to paste