coderef

SVG filtersBaseline · Widely available

The <filter> SVG element applies custom effects such as color manipulation, blurring, or morphing to SVG elements.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.

Browser support

DesktopChrome
1–4Not supported
5+Supportedsince May 25, 2010
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–2Not supported
3+Supportedsince Jun 17, 2008
Current: 157
Safari
1–5.1Not supported
6+Supportedsince Jul 25, 2012
Current: 27
MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155
Firefox Android
4+Supportedsince Mar 29, 2011
Current: 157
Safari iOS
1–5Not supported
6+Supportedsince Sep 10, 2012
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: SVGFEBlendElement.

Feature detection

JS · check before using
if ("SVGFilterElement" in globalThis) {
  // SVGFilterElement is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (324). The overall table above shows when the whole feature works.

Show 304 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
SVGFEComponentTransferElement.in1512361846
SVGFEComponentTransferElement.result51229618296
SVGFEComponentTransferElement.width51229618296
SVGFEComponentTransferElement.x51229618296
SVGFEComponentTransferElement.y51229618296
SVGFECompositeElement512361846
SVGFECompositeElement.height512361846
SVGFECompositeElement.in1512361846
SVGFECompositeElement.in2512361846
SVGFECompositeElement.k1512361846
SVGFECompositeElement.k2512361846
SVGFECompositeElement.k3512361846
SVGFECompositeElement.k4512361846
SVGFECompositeElement.operator512361846
SVGFECompositeElement.result512361846
SVGFECompositeElement.width512361846
SVGFECompositeElement.x512361846
SVGFECompositeElement.y512361846
SVGFEConvolveMatrixElement612361846
SVGFEConvolveMatrixElement.bias612361846
SVGFEConvolveMatrixElement.divisor612361846
SVGFEConvolveMatrixElement.edgeMode612361846
SVGFEConvolveMatrixElement.height612361846
SVGFEConvolveMatrixElement.in1612361846
SVGFEConvolveMatrixElement.kernelMatrix612361846
SVGFEConvolveMatrixElement.kernelUnitLengthX612361846
SVGFEConvolveMatrixElement.kernelUnitLengthY612361846
SVGFEConvolveMatrixElement.orderX612361846
SVGFEConvolveMatrixElement.orderY612361846
SVGFEConvolveMatrixElement.preserveAlpha612361846
SVGFEConvolveMatrixElement.result612361846
SVGFEConvolveMatrixElement.targetX612361846
SVGFEConvolveMatrixElement.targetY612361846
SVGFEConvolveMatrixElement.width612361846
SVGFEConvolveMatrixElement.x612361846
SVGFEConvolveMatrixElement.y612361846
SVGFEDiffuseLightingElement512361846
SVGFEDiffuseLightingElement.diffuseConstant512361846
SVGFEDiffuseLightingElement.height512361846
SVGFEDiffuseLightingElement.in1512361846
SVGFEDiffuseLightingElement.kernelUnitLengthX512361846
SVGFEDiffuseLightingElement.kernelUnitLengthY512361846
SVGFEDiffuseLightingElement.result512361846
SVGFEDiffuseLightingElement.surfaceScale512361846
SVGFEDiffuseLightingElement.width512361846
SVGFEDiffuseLightingElement.x512361846
SVGFEDiffuseLightingElement.y512361846
SVGFEDisplacementMapElement512361846
SVGFEDisplacementMapElement.height512361846
SVGFEDisplacementMapElement.in1512361846
SVGFEDisplacementMapElement.in2512361846
SVGFEDisplacementMapElement.result512361846
SVGFEDisplacementMapElement.scale512361846
SVGFEDisplacementMapElement.width512361846
SVGFEDisplacementMapElement.x512361846
SVGFEDisplacementMapElement.xChannelSelector512361846
SVGFEDisplacementMapElement.y512361846
SVGFEDisplacementMapElement.yChannelSelector512361846
SVGFEDistantLightElement512361846
SVGFEDistantLightElement.azimuth512361846
SVGFEDistantLightElement.elevation512361846
SVGFEDropShadowElement137930618306
SVGFEDropShadowElement.dx137930618306
SVGFEDropShadowElement.dy137930618306
SVGFEDropShadowElement.height137930618306
SVGFEDropShadowElement.in1137930618306
SVGFEDropShadowElement.result137930618306
SVGFEDropShadowElement.setStdDeviation137930618306
SVGFEDropShadowElement.stdDeviationX137930618306
SVGFEDropShadowElement.stdDeviationY137930618306
SVGFEDropShadowElement.width137930618306
SVGFEDropShadowElement.x137930618306
SVGFEDropShadowElement.y137930618306
SVGFEFloodElement512361846
SVGFEFloodElement.height51235618356
SVGFEFloodElement.result51235618356
SVGFEFloodElement.width51235618356
SVGFEFloodElement.x51235618356
SVGFEFloodElement.y51235618356
SVGFEFuncAElement512361846
SVGFEFuncBElement512361846
SVGFEFuncGElement512361846
SVGFEFuncRElement512361846
SVGFEGaussianBlurElement512361846
SVGFEGaussianBlurElement.edgeMode✕✕✕8✕✕8
SVGFEGaussianBlurElement.height51229618296
SVGFEGaussianBlurElement.in1512361846
SVGFEGaussianBlurElement.result51229618296
SVGFEGaussianBlurElement.setStdDeviation512361846
SVGFEGaussianBlurElement.stdDeviationX512361846
SVGFEGaussianBlurElement.stdDeviationY512361846
SVGFEGaussianBlurElement.width51229618296
SVGFEGaussianBlurElement.x51229618296
SVGFEGaussianBlurElement.y51229618296
SVGFEImageElement512361846
SVGFEImageElement.crossOrigin✕✕114✕✕114✕
SVGFEImageElement.height512361846
SVGFEImageElement.href512361846
SVGFEImageElement.preserveAspectRatio51222618226
SVGFEImageElement.result512361846
SVGFEImageElement.width512361846
SVGFEImageElement.x512361846
SVGFEImageElement.y512361846
SVGFEMergeElement512361846
SVGFEMergeElement.height512361846
SVGFEMergeElement.result512361846
SVGFEMergeElement.width512361846
SVGFEMergeElement.x512361846
SVGFEMergeElement.y512361846
SVGFEMergeNodeElement512361846
SVGFEMergeNodeElement.in1512361846
SVGFEMorphologyElement512361846
SVGFEMorphologyElement.height512361846
SVGFEMorphologyElement.in1512361846
SVGFEMorphologyElement.operator512361846
SVGFEMorphologyElement.radiusX512361846
SVGFEMorphologyElement.radiusY512361846
SVGFEMorphologyElement.result512361846
SVGFEMorphologyElement.width512361846
SVGFEMorphologyElement.x512361846
SVGFEMorphologyElement.y512361846
SVGFEOffsetElement512361846
SVGFEOffsetElement.dx512361846
SVGFEOffsetElement.dy512361846
SVGFEOffsetElement.height512361846
SVGFEOffsetElement.in1512361846
SVGFEOffsetElement.result512361846
SVGFEOffsetElement.width512361846
SVGFEOffsetElement.x512361846
SVGFEOffsetElement.y512361846
SVGFEPointLightElement512361846
SVGFEPointLightElement.x512361846
SVGFEPointLightElement.y512361846
SVGFEPointLightElement.z512361846
SVGFESpecularLightingElement512361846
SVGFESpecularLightingElement.height512361846
SVGFESpecularLightingElement.in1512361846
SVGFESpecularLightingElement.kernelUnitLengthX4512317.445417.4
SVGFESpecularLightingElement.kernelUnitLengthY4512317.445417.4
SVGFESpecularLightingElement.result512361846
SVGFESpecularLightingElement.specularConstant512361846
SVGFESpecularLightingElement.specularExponent512361846
SVGFESpecularLightingElement.surfaceScale512361846
SVGFESpecularLightingElement.width512361846
SVGFESpecularLightingElement.x512361846
SVGFESpecularLightingElement.y512361846
SVGFESpotLightElement512361846
SVGFESpotLightElement.limitingConeAngle512361846
SVGFESpotLightElement.pointsAtX512361846
SVGFESpotLightElement.pointsAtY512361846
SVGFESpotLightElement.pointsAtZ512361846
SVGFESpotLightElement.specularExponent512361846
SVGFESpotLightElement.x512361846
SVGFESpotLightElement.y512361846
SVGFESpotLightElement.z512361846
SVGFETileElement512361846
SVGFETileElement.height512361846
SVGFETileElement.in1512361846
SVGFETileElement.result512361846
SVGFETileElement.width512361846
SVGFETileElement.x512361846
SVGFETileElement.y512361846
SVGFETurbulenceElement512361846
SVGFETurbulenceElement.baseFrequencyX512361846
SVGFETurbulenceElement.baseFrequencyY512361846
SVGFETurbulenceElement.height512361846
SVGFETurbulenceElement.numOctaves512361846
SVGFETurbulenceElement.result512361846
SVGFETurbulenceElement.seed512361846
SVGFETurbulenceElement.stitchTiles512361846
SVGFETurbulenceElement.type512361846
SVGFETurbulenceElement.width512361846
SVGFETurbulenceElement.x512361846
SVGFETurbulenceElement.y512361846
SVGFilterElement512361846
SVGFilterElement.filterUnits512361846
SVGFilterElement.height512361846
SVGFilterElement.href512361846
SVGFilterElement.primitiveUnits512361846
SVGFilterElement.width512361846
SVGFilterElement.x512361846
SVGFilterElement.y512361846
color-interpolation-filters179331842
color-interpolation-filters.auto179331842
color-interpolation-filters.linearRGB287922928229
color-interpolation-filters.sRGB287922928229
filter.svg_elements898935✕8935✕
flood-color512361846
flood-color.currentColor512361846
flood-color.transparent512361846
flood-opacity512361846
lighting-color512361846
lighting-color.currentColor512361846
lighting-color.transparent512361846
feBlend512461846
feBlend.in512461846
feBlend.in2512461846
feBlend.mode512461846
feColorMatrix512361846
feColorMatrix.in512361846
feColorMatrix.type512361846
feColorMatrix.values512361846
feComponentTransfer512361846
feComponentTransfer.in512361846
feComposite5≤18361846
feComposite.in5≤18361846
feComposite.in25≤18361846
feComposite.k1579361846
feComposite.k2579361846
feComposite.k3579361846
feComposite.k4579361846
feComposite.operator5≤18361846
feComposite.operator.lighter_value41798610418610
feConvolveMatrix612361846
feConvolveMatrix.bias679361846
feConvolveMatrix.divisor679361846
feConvolveMatrix.edgeMode679361846
feConvolveMatrix.in612361846
feConvolveMatrix.kernelMatrix612361846
feConvolveMatrix.kernelUnitLength679361846
feConvolveMatrix.order679361846
feConvolveMatrix.preserveAlpha679361846
feConvolveMatrix.targetX679361846
feConvolveMatrix.targetY679361846
feDiffuseLighting512361846
feDiffuseLighting.diffuseConstant579361846
feDiffuseLighting.in512361846
feDiffuseLighting.kernelUnitLength579361846
feDiffuseLighting.surfaceScale579361846
feDisplacementMap512361846
feDisplacementMap.in512361846
feDisplacementMap.in2512361846
feDisplacementMap.scale512361846
feDisplacementMap.xChannelSelector579361846
feDisplacementMap.yChannelSelector579361846
feDistantLight5≤18361846
feDistantLight.azimuth579361846
feDistantLight.elevation579361846
feDropShadow137930618306
feDropShadow.dx137930618306
feDropShadow.dy137930618306
feDropShadow.in137930618306
feDropShadow.stdDeviation137930618306
feFlood512361846
feFuncA512361846
feFuncB512361846
feFuncG512361846
feFuncR512361846
feGaussianBlur5≤18361846
feGaussianBlur.edgeMode✕✕✕8✕✕8
feGaussianBlur.in5≤18361846
feGaussianBlur.stdDeviation5≤18361846
feImage512361846
feImage.crossorigin✕✕114✕✕114✕
feImage.href512361846
feImage.preserveAspectRatio57922618226
feMerge512361846
feMergeNode512361846
feMergeNode.in512461846
feMorphology512361846
feMorphology.in512361846
feMorphology.operator512361846
feMorphology.radius512361846
feOffset512361846
feOffset.dx612361846
feOffset.dy612361846
feOffset.in612361846
fePointLight512361846
fePointLight.x512361846
fePointLight.y512361846
fePointLight.z512361846
feSpecularLighting512361846
feSpecularLighting.in512361846
feSpecularLighting.kernelUnitLength4579317.445417.4
feSpecularLighting.specularConstant512361846
feSpecularLighting.specularExponent512361846
feSpecularLighting.surfaceScale579361846
feSpotLight512361846
feSpotLight.limitingConeAngle512361846
feSpotLight.pointsAtX512361846
feSpotLight.pointsAtY512361846
feSpotLight.pointsAtZ512361846
feSpotLight.specularExponent512361846
feSpotLight.x512361846
feSpotLight.y512361846
feSpotLight.z512361846
feTile512361846
feTile.in512361846
feTurbulence512361846
feTurbulence.baseFrequency512361846
feTurbulence.numOctaves579361846
feTurbulence.seed512361846
feTurbulence.stitchTiles579361846
feTurbulence.type579361846
filter512361846
filter.filterUnits579361846
filter.height579361846
filter.primitiveUnits579361846
filter.width579361846
filter.x579361846
filter.y579361846
svg.global_attributes.filter≤537935≤10.1≤5335≤10.3
svg.global_attributes.flood-color512361846
svg.global_attributes.flood-opacity512361846