1.25rem to px
1.25rem is 20px at the default 16px root, a size often used for small subheadings (h5/h6).
1.25rem =
20px
How the conversion works
CSS unit conversions assume a default root font size of 16px (the browser default), where 1rem = 16px and 1em = 16px in a default context. Points use the CSS reference of 96dpi, so 1pt = 1.3333px. That makes 1.25rem equal to 20px.
The formula is: px = rem × 16.
When to use px
Pixels are absolute and predictable, which is why designers and design tools usually think in px. Converting to px is handy when translating a mockup’s exact measurements into relative units like rem.
Quick reference: rem to px
Convert any value between px, rem, em and pt.
Open the CSS Unit Converter