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.

All tools

CSS Matrix Calculator

Watch transform stacks become 2D matrices step by step

5 of 5 free uses left

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

1. translate(60px, 20px)
2. rotate(25deg)
3. scale(1.2, 0.8)

Add a step

Combined matrix

1.0876
-0.5071
55.1113
0.3381
0.725
34.7866
0
0
1
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

1. translate(60px, 20px)
1
0
60
0
1
20
0
0
1
×
2. rotate(25deg)
0.9063
-0.4226
0
0.4226
0.9063
0
0
0
1
×
3. scale(1.2, 0.8)
1.2
0
0
0
0.8
0
0
0
1

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

css matrix calculatorcss transform matrixmatrix() csscss matrix functiontransform matrix calculator2d matrix calculatorcss transform stackmatrix multiplication csscss matrix(a b c d e f)css matrix parametersunderstand css matrixcss transform mathlearn css matrixcss matrix tutorialinteractive matrix democss matrix playgroundcss matrix visualizertransform order csscss rotate then translatematrix multiplication order3x3 matrix transformcss transform origingetComputedStyle matrixcss matrix decompositionsimplify css transformscss transform to matrixmatrix to transform csscss skew matrixcss rotate matrixcss scale matrixcss translate matrixmatrix3d vs matrixcss 2d transformscss transform functionscss transform cheat sheetcss transform examplescss animation matrixjavascript css matrixcanvas transform matrixsvg transform matrixlinear algebra csscss matrix copy pastecss transform generatorcss matrix generatorwebgl matrix csscss transform referencecss matrix explainedcss transform labmatrix math for developerscss matrix() explainedtransform matrix math

More tools

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

View all 10+ tools →