px
CSS Units Converter
real-timeConvert 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
| px | rem | em | pt | vw (1440) | vh (900) |
|---|---|---|---|---|---|
| 1 | 0.0625 | 0.0625 | 0.75 | 0.06944 | 0.11111 |
| 2 | 0.125 | 0.125 | 1.5 | 0.13889 | 0.22222 |
| 4 | 0.25 | 0.25 | 3 | 0.27778 | 0.44444 |
| 8 | 0.5 | 0.5 | 6 | 0.55556 | 0.88889 |
| 12 | 0.75 | 0.75 | 9 | 0.83333 | 1.33333 |
| 16 | 1 | 1 | 12.0000 | 1.11111 | 1.77778 |
| 24 | 1.5 | 1.5 | 18.0000 | 1.66667 | 2.66667 |
| 32 | 2 | 2 | 24.0000 | 2.22222 | 3.55556 |
| 48 | 3 | 3 | 36.0000 | 3.33333 | 5.33333 |
| 64 | 4 | 4 | 48.0000 | 4.44444 | 7.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.