Tools /Front-end
● Ready to calculate
Front-end

Type scale.

Create a modular scale in PX and REM, with a preview and CSS variables.

More options

Calculation inputs

Live conversion
Worked example
Scale base size
16 px
Scale ratio
1.25
Root font size
16 px
Smaller levels
2
Larger levels
6
Highlighted level
0

Size in PX: 16 px

Size in REM: 1 rem

px
px
Size in PX16 px
Size in REM1 rem

Visual preview

-2 · 10.24 px · 0.64 rem
Ideas taking shape.
-1 · 12.8 px · 0.8 rem
Ideas taking shape.
0 · 16 px · 1 rem
Ideas taking shape.
1 · 20 px · 1.25 rem
Ideas taking shape.
2 · 25 px · 1.5625 rem
Ideas taking shape.
3 · 31.25 px · 1.953125 rem
Ideas taking shape.
4 · 39.0625 px · 2.441406 rem
Ideas taking shape.
5 · 48.828125 px · 3.051758 rem
Ideas taking shape.
6 · 61.035156 px · 3.814697 rem
Ideas taking shape.

Generated CSS

:root {
  --text-minus-2: 0.64rem;
  --text-minus-1: 0.8rem;
  --text-0: 1rem;
  --text-1: 1.25rem;
  --text-2: 1.5625rem;
  --text-3: 1.953125rem;
  --text-4: 2.441406rem;
  --text-5: 3.051758rem;
  --text-6: 3.814697rem;
}

CSS uses a decimal point in every language.

EXPLORE, COMPARE, CREATE

Reference table

Keeps the other project dimensions unchanged to compare scenarios.

Highlighted level Result
-2 10.24 px
-1 12.8 px
0 16 px
1 20 px
2 25 px
3 31.25 px
4 39.0625 px
5 48.828125 px
6 61.035156 px
✦

Less calculating, more creating. Leave the numbers to us.