Skip to main content
CheckTown

CSS Unit Converter

Convert between CSS units with configurable base font size

Settings

Converted Values

px

—

rem

—

em

—

vw

—

vh

—

%

—

Learn More

CSS Unit Converter: px, rem, em, and More

Convert between CSS units and understand when to use px, rem, em, vw, and vh.

What Are CSS Units?

CSS units define the size of elements on a web page. They fall into two categories: absolute units (px, cm, mm, in, pt, pc) that have fixed physical sizes, and relative units (rem, em, vw, vh, vmin, vmax, %) that scale based on context like font size or viewport dimensions.

5 min readRead full guide

Frequently Asked Questions