Skip to content
M2TOOLKIT

CSS Units Converter

Convert between every CSS length unit at once.

  • Free
  • No sign-up
  • Nothing is sent or stored
px
px
px
px
px
  • 24px
  • 1.5rem
  • 1.5em
  • 2.5%
  • 1.6667vw
  • 2.6667vh
  • 18pt
  • 1.5pc
  • 0.25in
  • 0.635cm
  • 6.35mm
  • 25.4Q

Fluid size idea

clamp(1.2rem, 1.6667vw, 1.5rem)

Grows with the viewport, never smaller than 80% or larger than this size.

CSS uses 96 px per inch, so 1pt = 1.333px and 1cm = 37.8px on screen — physical size varies by display.

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the CSS Units Converter

  1. Enter a value and its unit.
  2. Set your root font size, parent size and viewport if they differ from the defaults.
  3. Copy the value in any other unit.

What does this tool do?

Using rem for type and spacing respects users' browser font settings, which is better for accessibility than fixed pixels. The default root size is 16px, so 24px = 1.5rem. Physical units like cm and pt use CSS's fixed 96 pixels per inch, so they are only accurate in print.

Why use it?

  • All 12 units at once.
  • Custom base sizes.
  • clamp() idea included.

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the css units converter.