Skip to main content
KPZsProductions

Free online tools

px to rem converter

Enter a value in pixels or in rem and the other field updates instantly. The default base is 16 px, and you can change it.

Default 16, the font size of the html element.

1.5rem

Common values

pxrem
10px0.625rem
12px0.75rem
14px0.875rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
28px1.75rem
32px2rem
40px2.5rem
48px3rem
64px4rem

Your data never leaves your browser. Nothing is sent to a server.

How to use it

  1. Enter a value in pixels or in rem.
  2. If your base font size is not 16 px, change the base.
  3. Copy the result with the rem unit.
  4. Use the table to check typical sizes quickly.

How rem is calculated

The rem unit is relative to the font size of the root html element. With the default 16 pixels, 1 rem is 16 px, so 24 px is 1.5 rem. The formula is pixels divided by the base size.

Why rem instead of px

Sizes in rem scale with the browser font settings. Someone who raised the default text size gets a larger interface. Pixels do not do that, which is why rem is usually the better choice for text and spacing.

What not to convert to rem

Thin borders, shadows and icon details are often left in pixels because they should look the same at every text size. Use rem where the interface should grow with readability.

Frequently asked questions

Need more than a tool?

If there is a bigger project behind it, a website, a shop or an app, describe it in a short brief. We reply with specifics and no obligation.

Describe your project

Newsletter

Subscribe to the newsletter

Concrete lessons from our projects, new case studies and practical tips on web apps and automation. No spam.

By subscribing, you accept the privacy policy.

We use essential cookies to run the site and, with your consent, optional PostHog analytics. Cookie Policy