CSS Transform Inspector
Paste a CSS transform value such as "translate(10px, 20px) scale(2) rotate(45deg)" and see exactly what it does. The tool parses the transform function list, composes every step into a single 2D affine matrix or 3D 4x4 matrix, and reports the result in CSS matrix()/matrix3d() form. It then decomposes the matrix back into translate, rotate, scale, and skew components so you can see the net effect even when functions are chained, and it tells you whether the transform is invertible (determinant zero means the transform collapses space and cannot be undone). It flags syntax problems such as unbalanced parentheses, a wrong argument count, an unknown function, or an unparseable number, and it checks whether a 3D transform is actually a 2D one. Everything runs on-device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Drop a file here, or browse
Accepts: .css,.txt,.html,.svg,text/plain,text/css
Files stay on your device.
Ctrl+V to paste an image
Text is processed on this device. If a file is selected, the file is used instead.
Options
Drop a file above to begin
Your file are processed on this device and never uploaded.
How it works
What it does
Paste a CSS transform value such as "translate(10px, 20px) scale(2) rotate(45deg)" and the tool parses the transform function list, composes every step into a single 2D affine matrix or 3D 4x4 matrix, and reports the result in CSS matrix()/matrix3d() form. It then decomposes the matrix back into translate, rotate, scale and skew components so you can see the net effect even when functions are chained and the order of operations is not obvious.
Why a single matrix matters
CSS applies transforms left to right, so translate(10px,20px) scale(2) and scale(2) translate(10px,20px) are different end results. Composing the chain into one matrix removes the guesswork: the functions view lists each step in order, and the matrix view shows the one combined transformation that the browser will actually apply.
Invertibility and the determinant
The tool reports whether the transform is invertible. A determinant of zero means the matrix collapses space — it cannot be undone — as with scale(1, 0), which flattens the y axis. Non-invertible transforms are a common source of subtle bugs, so the findings view calls them out explicitly.
Errors and 3D detection
The parser flags syntax problems such as unbalanced parentheses, a wrong argument count, an unknown function or an unparseable number, and it checks whether a 3D transform is actually a 2D one. The decimals option controls how many places the reported numbers are rounded. Everything runs on-device, so the transform never leaves this tab.
Questions
What does "not invertible" mean?
A transform with a determinant of zero collapses space along at least one axis — for example scale(1, 0) flattens the y axis. Such a transform cannot be undone, which is why the tool flags it as not invertible.
Does order matter between transform functions?
Yes. CSS composes transforms left to right, so translate(10px, 20px) scale(2) and scale(2) translate(10px, 20px) produce different final matrices. The tool composes the whole chain into one matrix so you can see the actual combined effect.
What is the difference between matrix() and matrix3d()?
matrix() is a 2D affine matrix with six values, while matrix3d() is a full 4x4 matrix with sixteen. The tool reports a 2D result in matrix() form, and a 3D one in matrix3d() form, and it also detects a 3D transform that is actually 2D.
Is the transform sent anywhere?
No. The transform is parsed, composed and decomposed entirely on-device; nothing is transmitted and the tool works fully offline.
Related tools
See categoryMatrix Calculator
Add, multiply, transpose, and find the determinant or inverse of small matrices.
CSS Unit Converter
Convert between px, rem, em, pt, pc, in, cm, mm and % for CSS lengths.
CSS Gradient Generator
Build linear, radial and conic CSS gradients with custom colour stops.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.