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 toolTypography & 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.
Related tools
Browse all toolsDesign & color
Fluid CSS clamp() generator
Compute zoom-safe linear rem + vw CSS clamp() formulas scaling smoothly across mobile and desktop viewport widths.
Design & color
CSS Flexbox & Grid playground
Prototype Flexbox alignment, wrapping, and CSS Grid columns interactively with live item preview and copyable CSS output.
Calculators & finance
Unit converter
Convert measurements across length, weight, temperature, area, volume, speed, and decimal vs binary data storage.