8px Grid Calculator
Snap any measurement up, down, or to the nearest multiple on an 8px or custom design grid.
Snap any size to the nearest multiple of the grid
40px5 × 8px
32px
40px
8 · 16 · 24 · 32 · 40 · 48 · 56 · 64 · 72 · 80
Runs in this browser. Nothing is uploaded.
How to use 8px Grid Calculator
Enter any layout dimension in pixels and set Grid base (default 8px).
Read Nearest on grid, Round down, Round up, and the first 10 grid multiples.
Copy any snapped pixel value or the full scale list.
Frequently asked questions
How are halfway ties snapped?
Halfway values (such as 36px on an 8px grid) round upward cleanly to the higher grid multiple (40px).