Convert px, rem, em, pt and percent for CSS. Set the base font size, type any unit.
px = rem × base. pt assumes 96 dpi (1pt = 1.333px). % is relative to the base (100% = 1rem).
rem equals the pixel value divided by the root font size, which is 16px by default. So 24px is 1.5rem. Change the base field if your project uses a different root size.
rem is always relative to the root font size, while em is relative to the current element's font size. This converter treats em against the base for a quick estimate; in nested contexts the real em depends on the parent.
pt (points) appears in print styles and design tools. At the standard 96 dpi, 1pt equals 1.333px, which this tool accounts for.