How to use PX to REM Converter
- Choose px → rem or rem → px.
- Enter a value and the root font size (16px by default).
- Read the result and the reference table.
Supported features and limitations
Assumes the root (html) font size you enter. If your site sets html { font-size: 62.5% }, use 10px as the root size. em units depend on the parent element, so the em figure is only valid when the parent equals the root.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
What is 24px in rem?
1.5rem with a 16px root.
Why use rem instead of px?
rem scales with the user’s browser font-size setting, which helps accessibility.
Related tools
- CSS Clamp() Generator for Fluid Typography - Generate a CSS clamp() value that scales a font size or spacing smoothly between two viewport widths.
- Color Converter - Convert between HEX, RGB and HSL colours.
- Border Radius Generator - Set each corner’s radius and copy the CSS border-radius shorthand, with a live preview.
- JSON Formatter & Validator - Format, minify and validate JSON with clear errors.
- URL Encoder / Decoder - Encode or decode URLs and query strings.
- Password Generator - Create strong random passwords in your browser.