CSS Matrix Calculator - Interactive CSS Lab | IconVault
Build CSS transform stacks and see the 2D matrix math step by step, with a live preview and copyable matrix(). Free, runs fully in your browser.
CSS Matrix Calculator
Watch transform stacks become 2D matrices step by step
Pure math, works everywhere. Every CSS 2D transform is a 3x3 matrix. Stacking transforms multiplies their matrices left to right, and the result is identical to the single matrix() below.
Transform stack
Add a step
Combined matrix
transform: matrix(1.0876, 0.3381, -0.5071, 0.725, 55.1113, 34.7866);
Geometric preview
Dashed: original. Teal: transformed. Red dot: origin.
Step-by-step multiplication
About this tool
IconVault's CSS Matrix Calculator demystifies the math behind every CSS transform. Add translate, rotate, scale and skew steps to a stack, edit their values, and watch each step's 3x3 matrix, the multiplication chain, and the combined result update live. A geometric preview shows your square morphing around its origin, and one click copies the equivalent single matrix() function or the original transform stack. It is free and runs fully in your browser.
Every 2D transform is just a 3x3 matrix, and stacking transforms multiplies those matrices left to right, which is why order matters so much in CSS. Seeing the numbers makes concepts like why rotate then translate differs from translate then rotate click instantly. The calculator is also genuinely useful: paste a stack from DevTools, simplify it to one matrix(a, b, c, d, e, f), or verify hand-written matrices before shipping them. The math is pure client-side JavaScript, so it works in every browser.
Frequently asked questions
Popular searches
More tools
Algorithm Visualizer
Watch sorting and searching animate step by step
Alt Text Helper
Write better image alt text with live feedback
ARIA Reference
Searchable ARIA roles and attributes guide
Array Visualizer
Step through map, filter, reduce like a debugger
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon