Convert between px, rem and em for CSS sizing with a base font size you control. Rem and em units scale with the user font settings, which makes layouts more accessible and responsive than fixed pixels, but doing the math in your head while you style is tedious. Enter a pixel value and this tool shows the equivalent rem and em; enter a rem or em value and it shows the pixel equivalent. The root font size defaults to the browser standard of 16px but you can change it to match your own base, and every field recomputes live as you type. It is a fast helper for converting a design handoff into scalable CSS. Everything runs in your browser, so nothing you enter is ever sent to a server.
A pixel value is divided by the root font size to get rem, so at a 16px root, 24px equals 1.5rem.
Yes. The root font size is adjustable, and rem and em results recompute from whatever base you set.
Yes. You can go from px to rem and em, or from rem and em back to px.
Convert between px, rem and em for CSS sizing with a base font size you control. Rem and em units scale with the user font settings, which makes layouts more accessible and responsive than fixed pixels, but doing the math in your head while you style is tedious.
Yes. CSS px to rem / em Converter is completely free, with no sign-up and no usage limits.
Yes. CSS px to rem / em Converter runs in any modern web browser. There is nothing to download or install.
Yes. CSS px to rem / em Converter runs entirely on your device in your browser, so nothing you enter is uploaded to a server.
Link this tool from a README, doc or site. The badge links back to this page.
[](https://yourhack.ai/css-unit-converter)