Pixels and rem converter

Convert CSS pixels to rem or back using your root font size.

Graphics Stateless

Quick guide

Try an example

You enter

Value to convert
24
Root font size (px)
16
Conversion direction
Pixels to rem

You get

1.5rem
How it works and limits

Use the computed root font size in pixels. The same rem value can represent different pixel lengths on different pages.