SupportENFR

CSS units

Colors & CSS

Convert px, rem, em, and pt. rem uses the root size you type. em uses the parent size. The math stays in your browser.

Try
pxremempt
px24px
rem1.5rem
em1.5em
pt18pt

Did you know? The point is a printer's unit. PostScript fixed it at 1/72 inch. CSS kept that, and fixed the reference pixel at 1/96 inch, which is why the factor is 4/3.

Learn more about CSS units

What is this tool?