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
Ctrl + Enter to run · Recent brings back your last inputs · 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.
Related tools
All 112 free tools
CSS Minifier & BeautifierCompress or format CSS
SVG OptimizerMinify and clean SVG markup
Website Accessibility AuditCrawl a page for WCAG risks
CSS Grid GeneratorVisual grid layout builder
CSS Flexbox GeneratorBuild flexbox layouts visually with live preview
SVG to CSS Data URI EncoderSVG as background-image
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.