Skip to main content
Design & colorLocal in browser — nothing is uploaded

CSS px, rem, em, pt & vw unit converter

Convert CSS lengths between pixels, root rem, inherited em, typographic points (pt), and viewport-width units (vw) with customizable base pixel scales.

Pixels (px)

24px

Root EM (rem)

1.5rem

Element EM (em)

1.5em

Points: 18pt

Viewport Width (vw)

1.6667vw

At 1440px screen

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Typography & print units

Standard CSS ratio: Uses the CSS specification equivalence where 1in = 96px = 72pt (so 1pt = 1.3333px).

Frequently asked questions

When should I use rem vs em?
Use rem for predictable global spacing and typography anchored to html font-size; use em when padding or margins should scale relative to a component’s local font size.
What is the browser default 1rem value?
16px in almost all desktop and mobile browsers unless overridden on the root html element.