Spacing Scale Generator
Build an 8-point (or any) spacing scale as px or rem CSS tokens and snap any size to the grid.
Runs in your browser. Nothing leaves this device.
Open Spacing Scale Generator
Free, no account, no watermark and no daily limit.
How to use Spacing Scale Generator
- 1Set the base unit, 8 by default, and how many steps you want.
- 2Pick px or rem and CSS, Tailwind or JSON.
- 3Copy the tokens, or type a size to snap it to the grid.
Questions
What is an 8-point grid?
A habit of making every margin, padding and size a multiple of 8 pixels, with 4 for small gaps. It keeps spacing consistent and scales cleanly on common screens.
What do the three scale types do?
Grid uses the usual 8-point steps (4, 8, 12, 16, 24, 32 and so on). Linear adds the base each step. Geometric multiplies by a ratio, so big steps grow faster.
How is rem worked out?
Pixels divided by the root font size, 16 unless you change it. 24px is 1.5rem at 16.
Is anything saved or sent?
No. Everything runs in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DesignColour ConverterConvert a colour between HEX, RGB, HSL, HSV, HWB, OKLCH and CMYK, and check its contrast against white and black.
- DesignColour Picker from ImageClick anywhere on an image to get the exact colour as HEX, RGB and HSL, and see its main colours.
- DesignAspect Ratio CalculatorFind the aspect ratio of any width and height, resize to a new width or height at the same ratio, and see megapixels and common sizes.
- DesignBackground & Wallpaper GeneratorMake mesh gradients, grain textures and dot, grid, wave or stripe patterns at any size, then download a PNG or copy the CSS.
- DesignBorder Radius GeneratorRound each corner of a box in pixels or percent, see the shape change and copy the shortest CSS.
- DesignBox Shadow GeneratorSet the offset, blur, spread and colour of a CSS box shadow, watch it on a box and copy the CSS.