Skip to content

Instantly share code, notes, and snippets.

@osamaqarem
Last active April 22, 2020 03:05
Show Gist options
  • Save osamaqarem/338166d96e72f52cef75547d710ac748 to your computer and use it in GitHub Desktop.
Save osamaqarem/338166d96e72f52cef75547d710ac748 to your computer and use it in GitHub Desktop.
Decode Base64 Image in Browser Console
function decode(imageString){
var image = new Image();
image.src = `data:image/png;base64,${imageString}`;
document.body.replaceWith(image);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment