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.

Runs in your browser Nothing uploaded Free, no signup

Everything stays in this browser

CSS Unit Converter: questions

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.

Made something with AI? Share it as a private link.

Drop in the HTML from Claude, ChatGPT or any editor and get a link your client can open anywhere — with a password, view tracking, comments and approval.