---
title: HTMLCanvasElement.toBlob()
category: games
firefox_status: 19
bugzilla: 648610
mdn_url: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob
spec_url: https://html.spec.whatwg.org/multipage/scripting.html#dom-canvas-toblob
chrome_ref: 4562033294966784
---

Creates a Blob object representing a file containing an image captured from a canvas.

---
title: HTMLCanvasElement.toBlob()
category: games
firefox_status: 19
bugzilla: 648610
mdn_url: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob
spec_url: https://html.spec.whatwg.org/multipage/scripting.html#dom-canvas-toblob
chrome_ref: 4562033294966784
ie_ref: 4562033294966784
---

Creates a Blob object representing a file containing an image captured from a canvas.

Add the IE ref for HTMLCanvasElement.toBlob()
Add the IE ref for HTMLCanvasElement.toBlob()