PX to REM Converter
Convert pixels to rem or em and back, with a table of common sizes.
Runs in your browser. Nothing leaves this device.
How to use PX to REM Converter
- 1Enter a pixel or rem value.
- 2Change the base size if your root font size is not 16px.
- 3Copy the value or the table as CSS.
Questions
What is the base size?
The root font size. Browsers use 16px by default, so 1rem is 16px unless your CSS changes it.
When is em different from rem?
em uses the parent element's font size instead of the root. Set the base to that size to convert em.
Is anything sent anywhere?
No. It all runs on this page.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DesignColour ConverterConvert a colour between HEX, RGB, HSL, HSV, HWB, OKLCH and CMYK, and check its contrast against white and black.
- DesignColour Picker from ImageClick anywhere on an image to get the exact colour as HEX, RGB and HSL, and see its main colours.
- DesignAspect Ratio CalculatorFind the aspect ratio of any width and height, resize to a new width or height at the same ratio, and see megapixels and common sizes.
- DesignBackground & Wallpaper GeneratorMake mesh gradients, grain textures and dot, grid, wave or stripe patterns at any size, then download a PNG or copy the CSS.
- DesignBorder Radius GeneratorRound each corner of a box in pixels or percent, see the shape change and copy the shortest CSS.
- DesignBox Shadow GeneratorSet the offset, blur, spread and colour of a CSS box shadow, watch it on a box and copy the CSS.