CSS Unit Converter
Convert between px, rem, em, %, pt, vw, and vh.
Value to convert
Conversions
em and % are treated relative to the root font size for simplicity; vw and vh use the same viewport dimension entered above.
About the CSS Unit Converter
Convert a CSS length between pixels, rem, em, percent, points, vw, and vh, with configurable root font size and viewport dimension so the conversions match your actual project setup.
Examples
16px to rem
16px, root 16pxOutput
1remKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
CSS Specificity Calculator
HTML & CSS
Compare and rank the specificity of CSS selectors.
Font Pairing Preview
HTML & CSS
Preview heading and body font combinations live.
HTML Entity Cheatsheet
HTML & CSS
Searchable reference of common HTML character entities.
HTML Viewer with CSS & JS Tabs (Live Preview)
HTML & CSS
Edit HTML, CSS, and JS in tabs with an instant sandboxed live preview.
Tailwind Class to CSS
HTML & CSS
Translate common Tailwind utility classes into plain CSS.
Border Radius Generator
HTML & CSS
Fine-tune per-corner border radii visually.
Frequently asked questions
Read more
- CSS container queries vs media queries
Media queries respond to the viewport; container queries respond to the component's own box. When to use which, with working examples.
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser