IJM
Data ToolsUnit & Practical Converters

CSS Units Converter (px / rem / em / vw / vh / pt)

Convert pixel sizes to rem, em, pt, vw, and vh based on root font size and viewport dimensions.

Processed in browserNo upload

Guide · Data Tools / Unit & Practical Converters

About CSS Units Converter (px / rem / em / vw / vh / pt)

Translate pixel values into CSS rem, em, pt, vw, and vh units (or convert backwards) given explicit root font size and viewport dimensions.

When to use this tool

Essential when porting fixed Figma pixel specs into accessible rem typography and responsive layout tokens.

How to use CSS Units Converter (px / rem / em / vw / vh / pt)

  1. Enter Value and choose From Unit (px, rem, em, pt, vw, vh).
  2. Set Root / Parent Font Size (default 16 px) plus Viewport Width and Height.
  3. Copy the computed CSS units.

Supported inputs, options, and outputs

  • Inputs: Source value/unit, base font size (px), and viewport width/height (px).
  • Output: Table showing exact px, rem, em, pt, vw, and vh equivalents.

Accuracy notes and limitations

  • Assumes 1pt = 1/72 inch at CSS 96 DPI (4/3 px) and assumes em matches the provided parent font size without deep DOM inheritance.
  • Static snapshot based on your entered viewport width rather than dynamic clamp() bounds.

Privacy and browser processing

Unit conversions and formulas compute locally inside your browser tab; measurements and custom scenarios stay on your device. Hosted pages load cookie-free Vercel Web Analytics and Google Fonts.

Read the full IJM Privacy Policy or browse all Data Tools.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 123 in Data Tools →