Type Scale Generator
Build a modular type scale from a base size and a ratio, preview every step live and copy the sizes as CSS variables in rem or px.
- Free
- No sign-up
- Works on any device
About Type Scale Generator
A modular type scale multiplies a base font size by a fixed ratio for each step, so headings and text relate to each other. Enter a base size, choose a ratio such as 1.25 major third or 1.618 golden ratio, and set how many steps to build up and down. With 16 px and 1.25 the sizes include 20, 25 and 31.25 px going up, and 12.8 and 10.24 px going down. Each step is shown live in your sample text and exported as CSS variables in rem or px.
How to use Type Scale Generator
- Set the base size in pixels and pick a ratio, or type your own.
- Choose how many steps above and below the base to include, and the root size used for rem.
- Copy the CSS variables into your stylesheet and use them for headings, text and captions.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
What does the ratio mean?
Each step is the previous size multiplied by the ratio. A small ratio like 1.125 gives gentle steps, and a large one like 1.5 gives dramatic headings.
Why do the rem values depend on the root size?
One rem equals the root font size, which browsers set to 16 px by default. If you use another root size, enter it so the rem values stay correct.
Is this the same as fluid typography?
No. A fluid scale changes one size smoothly between screen widths. This tool builds the full set of related sizes at one base, which you can then make fluid yourself.
Is Type Scale Generator free?
Yes. Type Scale Generator on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.