Convert between CSS units instantly: px, rem, em, vw, vh, pt, cm, mm, and more. Set your base font size and viewport dimensions for accurate conversions.
Convert between any CSS units with accurate, context-aware calculations. Enter a value, pick a source unit, and see the equivalent in all 14 CSS unit types instantly.
| Unit | Type | Description |
|---|---|---|
px |
Absolute | Pixel, the base unit for screen display |
pt |
Absolute | Point (1pt = 1/72 inch, 1pt β 1.333px) |
pc |
Absolute | Pica (1pc = 12pt) |
cm |
Absolute | Centimeter |
mm |
Absolute | Millimeter |
in |
Absolute | Inch (1in = 96px) |
rem |
Relative | Root em, relative to root font size |
em |
Relative | Em, relative to parent font size |
vw |
Viewport | 1% of viewport width |
vh |
Viewport | 1% of viewport height |
vmin |
Viewport | 1% of smaller viewport dimension |
vmax |
Viewport | 1% of larger viewport dimension |
ex |
Font | Approximate x-height (β 0.5em) |
ch |
Font | Approximate character width (β 0.6em) |
When building responsive layouts, converting between px and rem ensures your spacing scales correctly with user preferences. The default base font size is 16px, matching most browsers.
Convert pixel breakpoints to viewport units for fluid responsive designs. A 1440px container equals 100vw at that viewport width.
Different browsers have different default font sizes. Using rem instead of px ensures consistent rendering even when users adjust their browser settings.
Converting screen units (px) to print units (pt, cm, in) helps create accurate print stylesheets.
Nothing you paste leaves this tab. Every tool runs entirely in your browser β no upload, no server, no account.