Converters

CSS Units Converter

Convert CSS lengths with explicit font and viewport assumptions.

Conversion runs locally in your browser. Your input is not uploaded or saved.
Quick startThree steps to your result
  1. 1

    Add your inputEnter the value you want to work with.

  2. 2

    Set any optionsUse the controls below if you want to customize the result.

  3. 3

    Get your resultYour result appears below or updates as you work. Copy or download it when available.

Quick answers

Frequently asked questions

Which CSS units can I convert?

The converter handles CSS lengths including px, rem, em, viewport units, and physical units, with explicit assumptions for context-dependent values.

Why do rem and em conversions need font sizes?

Rem depends on the root font size and em on the relevant element or parent size. Enter the values used by your design.

How are vw and vh calculated?

Viewport units depend on viewport dimensions. Provide the viewport width or height used for the calculation.

Will this match every browser layout?

It is a mathematical conversion using your supplied assumptions; actual rendered layout can also depend on CSS and browser behavior.