Base 16, ratio 1.25, step 2
Step 2 is 25 px, or 1.563 rem with a 16 px root.
Pick a base size and a ratio to generate a full scale of font sizes, shown in pixels and rem.
Each step multiplies (or divides) the base size by the chosen ratio.
| Step | px | rem | |
|---|---|---|---|
| -2 | 10.24 | 0.64 | Ag |
| -1 | 12.8 | 0.8 | Ag |
| 0 | 16 | 1 | Ag |
| 1 | 20 | 1.25 | Ag |
| 2 | 25 | 1.563 | Ag |
| 3 | 31.25 | 1.953 | Ag |
| 4 | 39.06 | 2.441 | Ag |
| 5 | 48.83 | 3.052 | Ag |
Fill in the values, paste your text, or upload the file this tool works with.
Most tools update live as you type; a few use a single button. Either way, the result appears right on this page.
Copy, download, or share what the tool produces — you're always in control of the output.
Pick a base size and a ratio to generate a full scale of font sizes, in both pixels and rem.
Each step multiplies (for steps up) or divides (for steps down) the base size by the ratio once per step — the same geometric progression used by modular type scales in design tools.
A 16px base with a 1.25 (Major Third) ratio produces 20px, 25px, 31.25px, and so on going up, and 12.8px, 10.24px going down.
base_px * ratio^steppx / root_pxStep 2 is 25 px, or 1.563 rem with a 16 px root.
All calculation runs in your browser; nothing you enter is sent anywhere.
Use your page's actual root font size — 16px is the browser default and the most common choice.
The ratio is chosen from a fixed list of well-known named ratios, from Minor Second to Golden Ratio, rather than freeform entry.
No — most designs only use a handful of the generated sizes (for body text, a few heading levels, and captions), not every single step.
A modular scale needs each step above the base to grow. Ratios of 1 or less would flatten or invert the scale.
Check foreground and background contrast for UI work.
Calculate proportional width or height for media and UI.
Generate clamp(), gradients, shadows, border radius, and grid CSS.
Convert SVG markup to a CSS/HTML data URI and back.
Extract dominant HEX and RGB colors from an image.
Remove extra SVG metadata, comments, and whitespace.
Calculate and compare CSS selector specificity.
Preview an image under common color vision deficiency modes.
Calculate screen PPI, dot pitch, physical dimensions, and visual sharpness.
Create a polished signature with live preview.