Canvas to animated GIF
Record an HTML canvas as a GIF, right in your browser
Can2GIF records a drawing, game or visualisation running in an HTML canvas and turns it into an animated GIF. Choose the canvas, crop or resize the output, set the grab rate in seconds per frame, then record and download. The frames and the GIF encoder stay on your computer.
Store links are placeholders while the Chrome Web Store and Firefox Add-ons listings are prepared. The bookmarklet below remains available as a fallback for browsers without the extension.
What Can2GIF records
Canvas animations
Games, simulations, charts, generative art and anything else drawn into a canvas element.
Only the selected canvas
It does not record your desktop or the rest of the page. If a page has several canvases, pick the one you need.
Cropped or resized
Capture the whole canvas or a smaller region, and choose the GIF dimensions before recording.
Locally encoded
Frames are captured in the page and sent to a local Web Worker. The finished GIF downloads from your browser.
How to use it
- Open the page that contains the animation or drawing.
- Click the Can2GIF toolbar button. The selected canvas is outlined on the page.
- Choose the grab rate in seconds per frame and output size. For a crop, tick Select image region and choose Select region on page to drag the area you want.
- Select Start recording or press R. Pause and resume if you need to, then choose Stop and make GIF or press Esc.
- Wait for the local encoder to finish and download the GIF.
Keep the popup open while recording. Closing it does not upload anything, but it removes the visible controls.
Controls and limits
Timing
Grab rate is set in seconds per frame and controls both how often the canvas is sampled and the delay written into the GIF. Recording continues until you press Stop, and the current GIF size is shown as frames are added. The memory limit may end an extremely long recording early.
Size and memory
Output is capped at 2048 pixels on either side and about 2 megapixels per frame. A total frame-memory ceiling stops runaway recordings before the tab runs out of memory.
Canvas access
A canvas that contains cross-origin images can be tainted by browser security rules. Can2GIF will explain that its pixels cannot be read rather than pretending it recorded them.
WebGL canvases
Some WebGL canvases clear their drawing buffer after each frame. Those pages may need a WebGL setting such as preserveDrawingBuffer before they can be captured reliably.
The popup
The popup keeps the original Can2GIF red title bar and square record, pause and stop buttons. It lists the canvases on the current page and keeps the capture controls in one place: grab rate in seconds per frame, live GIF size, width, height, aspect-ratio lock and optional drag-selected crop.
Press R to start or resume, P to pause, or Esc to stop. The matching button flashes when a key is used, and the shortcuts work from the popup or from the page while recording.
Prefer the bookmarklet?
The original Can2GIF bookmarklet still works for browsers where you cannot install the extension. Drag the button below to your bookmarks bar, open a page with a canvas, then click it.
The bookmarklet loads its helper scripts from this website. The extension packages the same encoder locally, so it does not need to load remote code at runtime.
Privacy
- The extension asks for access only when you click its toolbar button.
- Canvas pixels are read by the page content script and encoded in a local Web Worker.
- No canvas frames, GIFs, page text or analytics are sent to this website or any other server.
- The GIF is downloaded through your browser. Where it is saved depends on your browser's download settings.
Frequently asked questions
Why does the extension say it cannot read the canvas?
Canvas security rules prevent JavaScript from reading pixels when the canvas contains images from another origin without permission. The page must draw same-origin content or use CORS-enabled images.
Why is the GIF empty or blank?
The canvas may be a WebGL canvas that clears its buffer after drawing, or the recording may have started before the animation. Try a smaller output size, start the animation first, and check whether the page supports captured WebGL frames.
Does it record the whole screen?
No. Can2GIF records a single HTML canvas element, not the desktop, browser window or surrounding page.
Does it work without the extension?
Yes, the bookmarklet on this page is still available. The extension is recommended because it bundles the encoder locally and gives you crop, resize and recording controls.