CSS Unit Converter

Convert px, rem, em, pt & viewport units accurately

Processed locally on your device · Zero uploads

em
1em
rem
1rem
vw
1.1111vw
vh
1.7778vh
%
1.1111%
pt
12.0003pt
Context Settings

Related Utilities Workflows

View all →

Convert CSS px, rem, em, pt, vw & vh Accurately

Build responsive typography scales quickly with custom root font-size and viewport reference widths.

How it works

  1. 01

    Set Base Font & Viewport

    Keep default 16px root size or match your project’s custom base size.

  2. 02

    Enter Any CSS Value

    Type pixels, rems, ems, or points to compute all unit equivalents.

  3. 03

    Copy CSS Value

    Copy exact rem or viewport units straight into Tailwind or CSS.

Key capabilities

  • Supports px, rem, em, pt, vw, and vh side-by-side.
  • Configurable root font size (default 16px) and viewport dimensions.
  • Instant bidirectional calculations.

Frequently asked questions

Why prefer rem over px for typography?

rem scales proportionally with the user’s browser root font-size preference, improving accessibility.

What is the default browser 1rem value?

16px in virtually all desktop and mobile browsers unless overridden on <html>.