T
ToolBox
PX

CSS Units Converter

Convert between px, rem, em, vw, vh, and other CSS units

Conversion Results

UnitValueCSSCopy
px
1616px
rem
11rem
em
11em
vw
0.83330.8333vw
vh
1.48151.4815vh
%
0.83330.8333%

Quick Reference (base: 16px)

pxremvwvhNote
10.06250.05210.09261px
40.250.20830.37040.25rem
80.50.41670.74070.5rem
120.750.6251.11110.75rem
140.8750.72921.2963Body small
1610.83331.48151rem (base)
181.1250.93751.66671.125rem
201.251.04171.85191.25rem
241.51.252.22221.5rem
3221.66672.9632rem
4832.54.44443rem
6443.33335.92594rem

What is CSS Units Converter?

Convert CSS units between pixels, rem, em, viewport width (vw), viewport height (vh), and percentages. Set your base font size and viewport dimensions for accurate conversions. Essential for responsive web design when you need to switch between absolute and relative units. See conversion results for all units simultaneously.

How to Use CSS Units Converter

  1. 1Enter a value in any CSS unit (px, rem, em, vw, vh)
  2. 2Set the base font size (default 16px) for accurate rem/em conversions
  3. 3Set viewport dimensions for vw/vh conversions
  4. 4See all equivalent values update in real time

Frequently Asked Questions

px (pixels) are absolute units. rem is relative to the root element's font size (usually 16px). em is relative to the parent element's font size. rem is preferred for consistent sizing across the page, while em is useful for component-specific scaling.
rem units respect the user's browser font size settings, making your site more accessible. If a user increases their default font size, rem-based layouts scale proportionally. px ignores user preferences and always renders at the exact pixel size.
vw (viewport width) and vh (viewport height) are relative to the browser window size. 1vw = 1% of the viewport width, and 1vh = 1% of the viewport height. They're useful for full-screen sections, responsive typography, and fluid layouts.

Related Tools