Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

PX to REM

Convert px to rem and back with a configurable root font size, plus a reference table of common pixel values in rem.

Processed locally in your browser — nothing is uploaded.

The html element's font-size (browser default is 16).

Common values at 16px root

pxrem
40.25
60.375
80.5
100.625
120.75
140.875
161
181.125
201.25
241.5
281.75
322
362.25
402.5
483
563.5
644

About PX to REM

Type a pixel value to see it in rem, or a rem value to see it in pixels — both fields stay linked. The root font size defaults to the browser standard of 16 px but is fully configurable for projects that change the html font-size.

Below the converter, a reference table lists common spacing and type sizes (4 px through 64 px) in rem at your chosen root, handy while translating a pixel-based design into rem-based CSS.

Common uses

  • Convert a designer's pixel spec into rem units
  • Check what 1.25rem means in pixels on a 10 px root
  • Keep a rem cheat sheet open while writing CSS

Example

Input

24 px at a 16 px root

Output

1.5 rem