Last Updated: February 25, 2016
·
430
· hernan604

quick create base64 from terminal ie. for dataURI/css

Sometimes you have a file and need a quick base64. ie. when creating css with images using dataURI.

From the terminal the quickest way is:

$ base64 /path/to/filename.png 

or if you prefer, print all in one line:

$ base64 /path/to/filename.png -w 0 

rgds

Hernan