Skip to content
Learn Netverks

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 ÷ R when measuring against that root.
  • px = em × R.
  • rem equals the same number as root-relative em when html { font-size: R px; } (browser default is usually 16 px).

Live calculator

← Back to reference index