EN
PortuguêsEnglishEspañol
All tools
Developer tools 100% free

PX to REM converter

Convert px to rem, em, pt and percent and back, with an adjustable base size and a CSS reference table.

How to use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to CSS and design

PX to REM converter

–

Available in: PortuguêsEspañolEnglish

Advertisement

PX to REM converter: what it is for

Type a value in any unit and the others are calculated instantly: pixels, rem/em, points and percent. The default base is 16px, but you can change it if your site uses a different root font size.

The table shows the most common conversions, from 10px to 64px.

How to use

  1. Adjust the base size if needed.
  2. Type the value in px, rem, pt or %.
  3. Copy the converted value.

When to use it

  • Writing responsive, accessible CSS.
  • Converting measurements from a Figma layout.
  • Standardizing font sizes in a design system.

Frequently asked questions

How many pixels is 1rem?

By default, 16px, which is the default font size in browsers. If your CSS changes the font-size of the html element, adjust the base.

What is the difference between rem and em?

rem is relative to the font size of the root element (html). em is relative to the font size of the parent element, so it can change inside nested components.

How do I convert pt to px?

1pt is 1/72 of an inch and 1px is 1/96, so 1pt = 1.333px.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.