Tool Engine
Developer Tools

CSS Unit Converter

Convert between CSS units like px, rem, em, pt, vw, vh, and % instantly.

Settings

rem1
em1
pt12
vw0.8333
vh1.4815
%100

How to use

  1. 1Enter a pixel value in the input field.
  2. 2Adjust the base font size if your project uses a non-default root font size (e.g. 16px).
  3. 3Set your viewport width and height to get accurate vw, vh, and % conversions.
  4. 4Read off the converted values for rem, em, pt, vw, vh, and % instantly — no need to click anything.

Why Use This Tool?

CSS uses many different units, and mentally converting between them is error-prone and slow. This tool gives you all conversions simultaneously, with support for custom viewport and font-size settings — so you get values that match your actual project, not just theoretical defaults.

Frequently asked questions