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 usePX to REM converter
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
- Adjust the base size if needed.
- Type the value in px, rem, pt or %.
- 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.