HTML Attributes
HTML decoding attribute
Hints how the browser should schedule image decoding relative to other content. It does not change the image format or guarantee a particular paint time; auto is the default. Applicable elements include: <img>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.
Formal Syntax & Structure
html syntaxhtml
decoding="async"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| decoding | enumerated: sync, async, auto | Hints how the browser should schedule image decoding relative to other content. It does not change the image format or guarantee a particular paint time; auto is the default. |
Working Example
Example Snippethtml
<img src="photo.jpg" alt="Forest path" decoding="async" width="320" height="180">Browser Compatibility
Minimum supported versions across modern rendering engines
Blink (modern)
Chrome
65
Yes
Gecko
Firefox
63
Yes
WebKit
Safari
11.1
Yes
Support for decoding on img. This is retained historical source evidence, not a new browser test.
HTML Living Standard