var url = canvas.toDataURL("image/png"); var img = document.createElement("img"); img.src = url; $("body").append(img);