px to rem
16px at a 16px base font size equals 1rem — the most common everyday conversion.
Convert CSS units — px to rem, em, pt, % and more — with a custom base font size — free online.
em and % are relative to a parent element's font size in real CSS — this treats the base font size you enter as that parent value.
About
Converts a CSS length value between px, rem, em, pt, pc, in, cm, mm and percent, using a base font size you set, and shows the equivalent value in every one of those units at once.
Front-end developers use it to convert a design's pixel measurements into rem values for a stylesheet, while designers use it to check what a font size in points or picas translates to on screen. It's part of Toolapt's broader lineup of free converters, open to everyone with no account and no limit on repeat runs.
Examples
2 worked examples
16px at a 16px base font size equals 1rem — the most common everyday conversion.
32px at a 16px base equals 2rem, or 24pt.
FAQ
Quick answers to common questions about the CSS Unit Converter.
It converts a value between px, rem, em, pt, pc, in, cm, mm and percent, using a base font size you set, and shows the equivalent value in every one of those units.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. The value and base font size you enter are processed entirely on your own device — nothing is sent to a server.
rem, em and percent are all relative units — they only have a concrete pixel size once you know the font size they're relative to. The base font size field lets you set that reference value instead of assuming a fixed default.
In real CSS, em is relative to its own element's font size while rem is always relative to the root element's font size; since this tool works with a single base value, it treats both as relative to the base font size you enter.
Those come in handy for print stylesheets or any design work where a length needs to correspond to an actual physical measurement rather than a screen-relative one.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
It covers the standard CSS length units; it doesn't include viewport-relative units like vw or vh, since those depend on the browser window size rather than a font size.
Did CSS Unit Converter work for you?