px-em
PX ↔ EM converter
Convert pixels to em/rem and back using your root font size—handy when moving between fixed mockups and fluid CSS.
Use em and rem for layouts that respect user font-size settings. This tool assumes a single root size in pixels; nested em math still depends on parent font sizes in real CSS.
Relationships (with root size R px):
em = px ÷ Rwhen measuring against that root.px = em × R.remequals the same number as root-relativeemwhenhtml { font-size: R px; }(browser default is usually 16 px).