px

CSS Units Converter

real-time

Convert between all CSS units — px, rem, em, vw, vh, ch, fr, cm, pt and more. Set your own context (font size, viewport, DPI).

Convert From

= in pixels16.0000 px

Context

Root font-size
px
Parent font-size
px
Viewport width
px
Viewport height
px
Container width
px
Screen DPI
dpi

Viewport Presets

Absolute
pxPixel
16.0000px
ptPoint
12.0000pt
pcPica
1pc
cmCentimeter
0.42333cm
mmMillimeter
4.23333mm
inInch
0.16667in
Relative
remRoot em
1rem
emEm
1em
%Percent
1.33333%
chCh (0 width)
2ch
exEx (x-height)
2ex
lhLine Height
0.66667lh
Viewport
vwViewport Width
1.11111vw
vhViewport Height
1.77778vh
vminViewport Min
1.77778vmin
vmaxViewport Max
1.11111vmax
svhSmall Viewport H
1.97531svh
dvhDynamic Viewport H
1.77778dvh
lvhLarge Viewport H
1.61616lvh
Special
frFraction (Grid)
0.16fr
cqwContainer Query Width
1.33333cqw
Input16 px
= Pixels16.0000 px
Root em16px
Viewport1440×900
Units21
Live

Quick Reference — Common Conversions

pxrememptvw (1440)vh (900)
10.06250.06250.750.069440.11111
20.1250.1251.50.138890.22222
40.250.2530.277780.44444
80.50.560.555560.88889
120.750.7590.833331.33333
161112.00001.111111.77778
241.51.518.00001.666672.66667
322224.00002.222223.55556
483336.00003.333335.33333
644448.00004.444447.11111
Click any row to set as input. rem/em based on 16px root font. vw/vh based on 1440×900 viewport.
🔢
20 CSS Units
px, rem, em, %, ch, vw, vh, vmin, vmax, svh, dvh, lvh, fr, cqw, pt, pc, cm, mm, in, ex — all supported.
⚙️
Custom Context
Set your own root font size, parent font size, viewport dimensions, container width and DPI.
📋
Code Snippets
Click any unit card to see common CSS usage examples with copy buttons.