Unit Converter

Convert between CSS, print, and absolute units instantly.


Conversion Settings

Result
1rem
16 px = 1 rem

Quick Reference Table

UnitValue
Pixels (px)16 px
Root EM (rem)1 rem
Relative (em)1 em
Percentage (%)100 %
Viewport Width (vw)0.8333 vw
Viewport Height (vh)1.4815 vh
Inches (in)0.1667 in
Centimeters (cm)0.4233 cm
Millimeters (mm)4.2333 mm
Points (pt)12 pt
Picas (pc)1 pc

How to use this tool

Enter a value and select the units you want to convert. The conversion happens instantly. You can adjust the Base Font Size, Viewport dimensions, and PPI in the settings panel to ensure exact conversions for em, rem, vw, vh, and physical print units.

Frequently Asked Questions (FAQ)

Why do I need to set Base Font Size?

Relative CSS units like 'em' and 'rem' are based on the root or parent font size. By default, most browsers use 16px, but if your project uses a different base, you can adjust it here.

What is PPI / DPI?

Pixels Per Inch (PPI) defines how many pixels fit into one physical inch. For standard web, 96 PPI is the CSS baseline. For high-quality print, 300 PPI is generally expected.

© 2026 GraviaCode. All rights reserved.

Made with ❤️ by Microdeck Team

Microdeck

Microdeck

Loading...