Flattening Transforms with SVGO
SVGO's convertTransform plugin simplifies and collapses transform attribute chains, reducing markup size and complexity.
Drop your image here
Supports PNG, JPG, BMP, WEBP up to 5MB
What convertTransform Actually Optimizes
The convertTransform plugin analyzes transform attribute values like combined translate, scale, and rotate chains, then collapses them into the shortest equivalent representation, whether that's a simplified shorthand or a single combined matrix, without changing the resulting visual transformation applied to the element.
- Analyzes combined translate, scale, and rotate transform chains
- Collapses them into the shortest equivalent shorthand or matrix representation
- Never changes the resulting visual transformation applied to the element
Why Flattened Transforms Matter for File Size
Design tools frequently export verbose, redundant transform chains with unnecessary precision or nested group transforms, and collapsing these into a single simplified transform meaningfully reduces markup size across icon sets and illustrations with many transformed elements, especially in large batch exports.
- Design tools often export verbose, redundant, over-precise transform chains
- Collapsing into one simplified transform meaningfully reduces markup size
- The size reduction compounds noticeably across large icon sets and illustrations
Frequently Asked Questions
Does convertTransform ever change how an element looks?
No, it only produces a mathematically equivalent, more compact representation of the same transform, so the rendered result stays visually identical.
Is convertTransform enabled by default in SVGO?
Yes, it's included in SVGO's preset-default plugin bundle, so a standard optimization pass applies this transform flattening automatically.
Related guides
Ready to Convert Your Image to SVG?
Free online converter — no sign-up, no watermarks, results in under 3 seconds.
Try It Free — Convert Image to SVG