Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The kernelMatrix attribute defines the list of numbers that make up the kernel matrix for the <feConvolveMatrix> element.
Values are separated by space characters and/or a comma. The number of entries in the list must equal to <orderX> by <orderY> as defined in the order attribute.
You can use this attribute with the following SVG elements:
| <list of numbers> |
| None |
| Yes |
The list of <number>s that make up the kernel matrix for the convolution. Values are separated by space characters and/or a comma. The number of entries in the list must equal <orderX> times <orderY>.
If the result of orderX * orderY is not equal to the number of entries in the value list, the filter primitive acts as a pass through filter.
| Filter Effects Module Level 1 # element-attrdef-feconvolvematrix-kernelmatrix |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 1, 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.