Toolsvana→Developer Tools→CSS Unit Converter

CSS Unit Converter

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

Pixels - absolute unit based on screen resolution

Used for rem, em, % conversions

Conversion Results

px(source)
16
Pixels
rem
1
Root em
em
1
Em
%
100
Percentage
vw
0.833333
Viewport Width
vh
1.481481
Viewport Height
pt
12
Points
cm
0.423333
Centimeters
mm
4.233333
Millimeters
in
0.166667
Inches

Quick Presets

About CSS Unit Converter

The CSS Unit Converter is a comprehensive tool for web developers and designers to convert between all major CSS length units. It supports pixels (px), rem, em, percentages (%), viewport units (vw, vh), points (pt), centimeters (cm), millimeters (mm), and inches (in).

Understanding CSS units is crucial for responsive web design. Relative units like rem and em scale based on font size, making them ideal for accessible, responsive layouts. Viewport units (vw, vh) are relative to the browser window size, perfect for full-screen layouts and responsive typography. Absolute units like px, pt, cm, mm, and in have fixed sizes regardless of context.

The converter allows you to customize the base font size (default 16px) used for rem, em, and % calculations, as well as the viewport dimensions for vw and vh calculations. All conversions are displayed simultaneously, making it easy to compare values across different unit systems.

Quick presets are provided for common values like 1rem (16px at default base), 100vw (full viewport width), and standard font sizes. You can copy any converted value directly to your clipboard for use in your stylesheets.