All ToolsPixel Unit Converter
Image

Pixel Unit Converter

Convert px to rem, em, %, vw, vh, pt, in, cm, and mm with CSS reference values.

From
px
Converted result
vh
10
Reference values

em, %, vw, and vh use the reference values below.

Conversion formula
1 px = 0.1111 vh

What is Pixel Unit Converter?

Enter a value and choose CSS units. rem uses the root font size, em the supplied current font size, % the supplied base, and vw/vh the supplied viewport. Defaults are 16 px for fonts/base and 1440 × 900 for viewport, not measurements of your page. Blank or non-positive references fall back to these defaults. Inches use 96 CSS px, not your display’s physical pixels or print DPI. Check the actual CSS context before applying the rounded result.

Examples

  • 160 px ÷ 16 = 10 rem
  • 1 in = 96 CSS px

How to use Pixel Unit Converter

1. Enter a value and choose the source unit. 2. Set the reference values for rem, em, percentage, and viewport units. 3. Choose the target unit and copy the converted result.