Image to Base64 Encode

Base64 encoding schemes are commonly used when there is a need to encode binary data into an ASCII character that needs be stored and transferred over media that are designed to deal with textual data. It is most popular form of the “Base Encoding”. base64 encoding makes file sizes roughly 33% larger than their actual size.

FileReader is small in size as compared with Canvas.