px
dpi
in
0
rem
Conversion formula: 1 inch = 96px (96dpi)
Calculation method: (inch × dpi) ÷ rootFontSize = rem
Inch to REM Conversion Instructions
REM is a unit of measurement relative to the root element (html) font size. In the default case, 1 inch equals 96 pixels, then converted to REM based on the root font size.
Common Conversion Values (Based on 16px Root Font):
- 1in = 6rem
- 0.5in = 3rem
- 0.25in = 1.5rem
- 2in = 12rem
Usage Instructions:
- Set the root element font size (default 16px)
- Adjust the screen DPI value (default 96)
- Input the inch value
- Get the corresponding REM value
Usage Tips:
- Suitable for responsive design
- Scales based on the root font size
- Accurate to three decimal places
- Commonly used in web layout