CSS Unit Converter

Convert between px, rem, em, vh, vw, and other CSS units based on your root font size settings

Common Conversions (base: 16px)

pxrempt
12px0.75rem9.0pt
14px0.875rem10.5pt
16px1rem12.0pt
18px1.125rem13.5pt
20px1.25rem15.0pt
24px1.5rem18.0pt
32px2rem24.0pt
48px3rem36.0pt
64px4rem48.0pt
96px6rem72.0pt

How to Use This Tool

1

Enter a numeric value and select the source unit (px, rem, em, %, vw, vh, pt, cm, mm, in).

2

All other unit conversions are calculated and displayed instantly.

3

Set your base font size (for rem/em) and viewport dimensions (for vw/vh) for accurate results.

4

Click any result card to copy the value.

About This Tool

CSS Unit Converter converts between all common CSS units: px, rem, em, %, vw, vh, pt, cm, mm, and in. Enter a value in any unit and see all conversions at once. Customize the base font size (default 16px) for accurate rem/em calculations, and set viewport dimensions for vw/vh conversions. Includes a quick reference of common px-to-rem values.

Share This Tool

Twitter

Related Tools

Back to Design & CSS