We are experiencing higher levels of website traffic, we are trying to expand. Thank you for your understanding.

CSS Unit Converter

Convert CSS units: px to rem/em, vw to px, and more. Set your base font size once and convert any value instantly. Generates ready-to-paste CSS for responsive layouts.

Ctrl+Enter to run  ·  Ctrl+K to switch tools  ·  Recent button shows input history

Let AI do the hard part. Fix broken HTML, convert to email-safe HTML, or clean up any markup in one click — 3 free AI runs per day, no account needed.

Try the AI HTML Fixer

FAQ

What base font size should I use?

Browsers default to 16px. If you haven't changed the root font-size in CSS, use 16 as your base for px↔rem conversions.

When should I use rem vs em?

rem is relative to the root element — predictable for global spacing. em is relative to the current element — useful for component-scoped sizing.