As above shown
tag is contain information about webpage and external file links are declared here. You can import private repositories without any limitations during Open Beta. . Using that object we collecting image url by GET in open() method then we sets responseType as Blob and using send() method we sending this blob to onload event. Easy as one, two First, pass a base64 string to fetch: const base64Data = "aGV5IHRoZXJl" ; const base64 = await fetch (base64Data); Depending on the format of the base64 string, you might need to prepend content type data. Base64 to Image Online Image Decoder In the result field you will see your image, MIME type, and actual size. JavaScript Answers How to Get Image Data as a Base64 URL in JavaScript? Of course, we can use new Image () to draw a canvas and using the toDataURL () method to get the Base64 string. javascript base64 Share Improve this question