Skip to main content
CSS Tools
Recently added

CSS Units Converter

Convert px values to rem, em, and % based on a root font size.

Introduction

CSS Units Converter translates pixel measurements into rem/em/percentage values using your chosen root font size.

Features

  • px input
  • Configurable root size
  • rem/em/% output

How to use

  • 1
    Enter px and root size.
  • 2
    Copy rem if needed.

Example

16px root

Input
24px
Output
1.5rem

Benefits

  • Use CSS Units without installing a desktop app or browser extension.
  • Works well alongside CSS Formatter and Flexbox Generator for adjacent steps in the same workflow.
  • Results stay in this browser tab until you copy or download them.

FAQs

Shown as equal to rem assuming root context.

No.

Not included in this version.

Pair CSS Units with CSS Formatter, Flexbox Generator, Grid Generator. See Related tools on this page.


Developer resources