Type scale generator
Pick a base size and a ratio to get a matching set of font sizes, see them on real text, and copy them as CSS variables in rem.
Runs in your browserNothing uploadedWorks offline
Loading Type scale generatorRuns on this device. Nothing is uploaded.
Questions
What is a type scale?
A set of font sizes where each one is the size below it multiplied by the same ratio. Sizes made this way look related, so headings and body text sit well together.
Which ratio should I use?
There is no single right answer. 1.2 or 1.25 gives gentle steps that work for interfaces. 1.333 and above gives bigger jumps that suit marketing pages and posters. Try a few on your own text.
How are rem values worked out?
Each size in pixels is divided by the root size, which is 16 px in browsers unless a site changes it. So 20 px is 1.25 rem.
Related tools
All developer toolsDeveloperBase64 encode and decodeEncode text or any file to Base64 and decode Base64 back to text or the original file, with a URL-safe option.DeveloperBinary to decimalConvert binary numbers of any length to decimal, with hex and octal shown too, exactly and as you type.Developerapplication image videoChecksum verifierDrop a file and paste the published checksum to see if it matches. MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 are detected for you.DeveloperChmod calculatorTick read, write and execute boxes or type 755 or rwxr-xr-x, and get the matching octal, symbolic and chmod command, explained.DeveloperCIDR and subnet calculatorType an IP with a prefix or mask to get the network, broadcast, host range, host count, netmask and wildcard. IPv6 works too.Developerjs mjs cjsCode formatterFormat HTML, CSS, JavaScript, TypeScript, JSON, Markdown and YAML with Prettier, right in your browser, with indent and quote options.