Skip to content
ZeroServer.tools

Spacing Scale Generator

Generate a consistent spacing scale for your design system in seconds.

NameMultiplierpxremVisual
3xs0.5×2px0.125rem
2xs1×4px0.25rem
xs2×8px0.5rem
sm3×12px0.75rem
md4×16px1rem
lg5×20px1.25rem
xl6×24px1.5rem
2xl8×32px2rem
3xl10×40px2.5rem
4xl12×48px3rem
5xl16×64px4rem
6xl20×80px5rem

About Spacing Scale Generator

A consistent spacing scale is the foundation of any design system. This tool generates tokens from a single base unit — the most common is 4px, which aligns with Material Design, Tailwind, and most UI frameworks. Each step multiplies the base by a fixed factor so the scale is perfectly proportional. Export the result as CSS custom properties (--spacing-md), Tailwind CSS spacing config, or SCSS variables and paste them straight into your project. Using a shared scale eliminates arbitrary magic numbers and makes spacing decisions instantly consistent across components and breakpoints.

Private & free — this tool runs entirely in your browser.

KinstaFast managed hosting — up to $500 + 10% recurring.affiliate

Related Design & CSS tools