FREE WEB TOOL

CSS unit converter

Convert px, rem, em, vw, and vh using configurable font and viewport dimensions.

Use tool

How to use

Convert px, rem, em, vw, and vh using configurable font and viewport dimensions.

  1. Enter the source values or text.
  2. Change only the settings you need.
  3. Run the tool and copy or reuse the result.

CSS unit conversion depends on context

Converting px to rem or em requires a base font size. vw and vh depend on the viewport, so replacing them with fixed values can change responsive behavior. Treat converted values as an equivalent under the chosen assumptions, then adjust them to the component typography and layout rules used in the real project.