Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

CSS Unit Converter

Pixels, rems, ems, points and percents all measure the same sizes in different ways. Convert any value between them using your base font size, and see every unit side by side.

Result will appear here.

How to use

  1. Enter a value or select an option.
  2. Choose the From and To units — the result updates live.
  3. Also see the converted values in all units below.

Tips

  • Use rem for font sizes so text respects the user's browser settings.
  • Reserve px for borders and hairlines where exact rendering matters.
  • Check the base font size on the html element first - the whole conversion depends on it.
  • Percent widths are relative to the parent, so they can differ from what the converter shows.

Note: 1 pt = 1.333 px (at 96 dpi). em depends on the parent element's size, rem on the root.