PX to RLH Converter (Root Line Height Unit)

Convert Pixels to RLH.

Loading converter...
Share this tool:

What Is PX to RLH Converter? (Pixels to Root Line Height)

A PX to RLH Converter converts pixels into root line-height (rlh) units using the document's root line height.

How To Find PX to RLH?

To find PX to RLH, divide the pixel value by the root line-height (set on the HTML root) and convert it into rlh units. This ensures consistent spacing across the website. Compare with RLH to PX or element-relative PX to LH.

PX to RLH Formula

rlh=
pxroot line-height
Where:
pxPixelsThe pixel size you want to convert.
root line-heightRoot Line HeightThe computed line-height of the root HTML element.
rlhRLH UnitsThe root line-height unit equivalent.

PX to RLH Conversion Table (Base Font 16px)

PX (px)RLH (rlh)
1px0.0417rlh
2px0.0833rlh
3px0.125rlh
4px0.1667rlh
5px0.2083rlh
6px0.25rlh
7px0.2917rlh
8px0.3333rlh
9px0.375rlh
10px0.4167rlh
11px0.4583rlh
12px0.5rlh
13px0.5417rlh
14px0.5833rlh
15px0.625rlh
16px0.6667rlh
17px0.7083rlh
18px0.75rlh
19px0.7917rlh
20px0.8333rlh
22px0.9167rlh
24px1rlh
26px1.0833rlh
28px1.1667rlh
30px1.25rlh
32px1.3333rlh
36px1.5rlh
40px1.6667rlh
44px1.8333rlh
48px2rlh
52px2.1667rlh
56px2.3333rlh
60px2.5rlh
64px2.6667rlh
72px3rlh
80px3.3333rlh
88px3.6667rlh
96px4rlh
100px4.1667rlh
112px4.6667rlh
120px5rlh
128px5.3333rlh
136px5.6667rlh
144px6rlh
160px6.6667rlh
192px8rlh
200px8.3333rlh
240px10rlh
256px10.6667rlh
288px12rlh
300px12.5rlh
320px13.3333rlh
360px15rlh
384px16rlh
400px16.6667rlh
480px20rlh
512px21.3333rlh
576px24rlh
600px25rlh
640px26.6667rlh
720px30rlh
768px32rlh
800px33.3333rlh
960px40rlh
1024px42.6667rlh
1080px45rlh
1200px50rlh
1280px53.3333rlh
1366px56.9167rlh
1440px60rlh
1536px64rlh
1920px80rlh

Convert back using RLH to PX or compare with element-relative PX to LH.