Pixel to Rem/Em Converter

Convert px, rem, and em values with a configurable base font size.

CSS Snippet

/* Base: 16px */
font-size: 24px;
font-size: 1.5rem;

FAQ

Can I convert px to rem and em in both directions?

Yes. Enter values in px, rem, or em and the other units update instantly.

Can I change the base font size?

Yes. Set a custom base font size (for example 16px or 10px) to match your project setup.

Does it provide copy-ready CSS output?

Yes. The tool generates a small CSS snippet you can copy directly.