My All ToolsEnglish

All tools / Design tools

Type scale generator

Build a harmonious font size scale from a base size and a ratio. Copy it as CSS variables.

Open the tool

How to use

  1. Set the base font size and pick a ratio.
  2. Choose how many steps larger and smaller you need.
  3. Copy the CSS variables into your stylesheet.

Why My All Tools?

Common questions

Which ratio should I pick?

1.125 to 1.25 suits dense apps and body text. 1.333 and above gives bold headlines.

Why are sizes in rem?

rem follows the browser font size, so text still scales for users who need larger text.

More free tools

Free to try with a daily guest limit. No account needed, and your data stays in your browser.