Skip to main content

CSS Units Converter

New

Convert between CSS units: px, rem, em, pt, vh, vw, %. Customize base font size and viewport dimensions.

4.5(127 ratings)

Rate this tool

How to Use

1

Enter value

Enter the CSS value to convert.

2

Set base

Set root font size if needed.

3

Convert

See all unit equivalents.

Features

All CSS units
Custom base size
Instant conversion
Copy values

Frequently Asked Questions

rem is relative to root font size, em is relative to parent element's font size.

Convert between CSS units like px, em, rem, vh, vw, and percentages. Essential for responsive web design and maintaining consistent typography across your projects.

Did You Know?

The 'px' unit in CSS isn't actually tied to physical pixels! On high-DPI screens, 1 CSS pixel can represent multiple device pixels. This is why designs look crisp on retina displays even when sized in pixels.

  • Rem is relative to root font-size (usually 16px), em is relative to parent
  • Use rem for global sizing, em for component-specific scaling
  • 1vw = 1% of viewport width, useful for fluid typography

Explore Other Categories

Discover more useful tools from different categories