Canvas reset()Baseline · Widely available
The reset() method clears a canvas to its initial state.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Dec 11, 2023. Widely available since Jun 11, 2026.
Browser support
DesktopChrome
1–98Not supported
99+Supportedsince Mar 1, 2022
Current: 155Edge
12–98Not supported
99+Supportedsince Mar 3, 2022
Current: 154Firefox
1–112Not supported
113+Supportedsince May 9, 2023
Current: 157Safari
1–17.1Not supported
17.2+Supportedsince Dec 11, 2023
Current: 27MobileChrome Android
18–98Not supported
99+Supportedsince Mar 1, 2022
Current: 155Firefox Android
4–112Not supported
113+Supportedsince May 9, 2023
Current: 157Safari iOS
1–17.1Not supported
17.2+Supportedsince Dec 11, 2023
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: reset.
Feature detection
JS · check before using
if ("CanvasRenderingContext2D" in globalThis && "reset" in CanvasRenderingContext2D.prototype) {
// CanvasRenderingContext2D.reset is available
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| CanvasRenderingContext2D.reset | 99 | 99 | 113 | 17.2 | 99 | 113 | 17.2 |
| OffscreenCanvasRenderingContext2D.reset | 99 | 99 | 113 | 17.2 | 99 | 113 | 17.2 |