rem to px converter
Convert rem to px for any base font size. The output updates as you type, with a reference table covering common values.
Try 16, 24, 1.5
Updates as you type
Default 16px — change to match your project.
How to use this tool
- 1Enter the rem value you want to convert.
- 2Set your project’s base font size (defaults to 16px).
- 3Read the px equivalent and copy it for your stylesheet.
About this tool
rem is relative to the document root font size, handy for scalable, accessible designs. Sometimes you need the underlying pixel value for design-tool handoffs or pixel-perfect specs. This converter assumes the standard 16px root.
Related tools
px to rem converter
Convert px to rem with a custom base font size. Instant, accurate, no signup.
px to em converter
Convert px to em with a custom base font size. Instant, accurate, no signup.
em to px converter
Convert em to px with a custom base font size. Instant, accurate, no signup.
CSS gradient generator
Build a linear CSS gradient with two color stops and any angle. Live preview and copy-to-clipboard CSS.
Box-shadow generator
Tune offset, blur, spread, color, and inset to build a CSS box-shadow. Live preview and copy CSS.
Frequently asked questions
What base font size does this converter use?
The default is 16px, which is the browser default for the root `html` element. You can change the base in the input below to match your project (for example, some designs use 10px so 1rem = 10px).
Why use px instead of rem?
px is absolute and predictable. Use it when you need a value that won’t change with user font preferences: borders, hairlines, and pixel-snapped UI details.
Is the conversion exact?
Yes. With the base font size you specify, the conversion is a simple multiplication or division. The math is the same as what your browser does at runtime.
Does this work offline?
Conversion runs entirely in your browser. No values are sent anywhere, and once the page loads, it works offline.
Reviewing work with your team?
Pin comments directly on a live website or design — no extension, no setup.
