Tink, the Tinkkit robotTinkkit
← All toolsDeveloper›Web & CSS

CSS Unit Converter (px, rem, em, vw)

Convert CSS sizes between px, rem, em, vw, vh and pt using your own base font size and screen size.

Tip from Tink: Browsers default to a 16px base, so 1rem = 16px.

px24px
rem1.5rem
em1.5em
vw1.6667vw
vh2.6667vh
pt18pt
Advertisement

How to use the CSS Unit Converter (px, rem, em, vw)

  1. Enter a value and its unit.
  2. Adjust the base font size and screen size.
  3. Copy any converted value.

Everything runs in your browser. Nothing you enter is uploaded.