8-point grid calculator
Snap any size to an 8-point spacing grid, or to a grid step of your own.
Result
- Nearest
32px - Rounded down
24px - Rounded up
32px - Steps
4 × 8px - In rem
2rem
First 12 steps (px)
- Values
8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96
Missing a feature or found a bug in 8-point grid calculator? Tell me on X (@_andrewtran) or by email.
How to use 8-point grid calculator
- Enter a size in pixels.
- Set the grid step, 8 by default.
- Copy the nearest size on the grid, in pixels or rem.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Why use an 8-point grid?
Spacing in steps of 8 keeps layouts even and scales cleanly to most screen densities. A step of 4 is common for smaller details.
Related tools
Golden ratio calculator
Split a size by the golden ratio and build a type or spacing scale from it.ASCII table
All 128 ASCII characters with their decimal, hex, octal and binary codes, searchable.MIME type lookup
Find the MIME type for a file extension, or the extension for a type.HTTP headers reference
What every common HTTP request and response header does, grouped and searchable.