Skip to content
LovTools
EN

PX to REM Converter

Convert pixels to rem/em and back, for many values at once.

Processed locally on your device — nothing is uploaded.

About the PX to REM Converter

Designs are usually measured in pixels, but accessible CSS uses rem so text scales with the user’s settings. Enter one or more values and the converter divides (or multiplies) by the root font size — 16 px by default.

Paste a whole list, separated by commas or spaces, to convert a spacing scale in one go.

How to use the PX to REM Converter

  1. Choose the direction.
  2. Enter values and the root font size.
  3. Copy the converted values.

Features

  • Goal seek: type the answer you want and the tool works out the input that gives it
  • Bulk conversion
  • Custom root size
  • Both directions
  • Reference table

Supported formats

  • Plain text

Frequently asked questions

What is the difference between rem and em?

rem is relative to the root (html) font size; em is relative to the current element’s font size, so it compounds when nested.

Is my text sent anywhere?

No. Everything runs in your browser, so nothing you paste is uploaded or stored.

Added · Last reviewed · Maintained by Sohail Khax · How we test tools