Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Dedicated Web Workers.
The ImageDecoder.isTypeSupported() static method checks if a given MIME type can be decoded by the user agent.
A string containing the MIME type to check for decoding support.
A promise that resolves with a boolean value indicating whether images with a format of type can be decoded by the API.
The following example checks if GIF and PCX images are supported for decoding and prints the result to the console.
| WebCodecs # dom-imagedecoder-istypesupported |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Mar 13, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.