PX to REM Converter

This converter turns CSS pixel lengths into rem and rem back into pixels. Enter a value and the root font size your stylesheet sets, or paste a whole spacing scale and get every value converted at once along with a block of custom properties. It shows the division it did, whether the result terminates or was rounded, and what the same value would be at a 10px root. A rem is always the root font size, which is what separates it from em, and that distinction is the one this page keeps pointing at.

Calculator Type
Negative values are allowed, for margins and offsets.
What html { font-size } resolves to. Leave it at 16 unless you changed it.
Widget
What html { font-size } resolves to. Leave it at 16 unless you changed it.
Widget
A spacing or type scale. Up to 40 values.
Used to build a --name-1, --name-2 block you can paste.
Widget