Free Shopify Tool

Free PX to REM Converter (Pixels to REM)

A pixel to rem calculator for responsive CSS: convert px to rem and em with your base font size, and rem back to pixels.

  • 100% free
  • No sign-up
  • Runs in your browser — nothing is uploaded

About this tool

Rem units scale with the user’s font size, which is better for accessibility than fixed pixels. Most browsers use a base of 16px.

Divide pixels by the base size to get rem. If your theme sets html font-size to 62.5%, change the base to 10.

How it works

  • rem = px ÷ base
  • px = rem × base

Frequently asked questions

Quick answers to what people ask most.

What is the default base font size?

16px in almost all browsers.

Rem or em?

Rem is relative to the page root. Em is relative to the parent element. Rem is easier to control.

Why does my Shopify theme use 62.5%?

Some themes set 10px as the base so 1rem equals 10px.