convert base64 to image javascript

JavaScript
var image = new Image();
image.src = 'data:image/png;base64,iVBORw0K...';
document.body.appendChild(image);
Source

Also in JavaScript: