Skip to content
Jellykit

Grid Snap Calculator

Round any size to an 8-point grid, or a grid step of your own, and see the grid values around it, for one size or a pasted list.

  • Runs on your device
Loading tool

About Grid Snap Calculator

Spacing and sizes on an 8-point grid are multiples of 8: 8, 16, 24, 32 and so on. Enter a size from a mock-up or a measurement and this calculator gives the nearest grid value, the one below and the one above, plus a short table of the grid values around it and how far each is from your size.

Use a 4-point grid for finer steps, or any step you like, including fractions. Paste a list of sizes to snap them all at once.

How it works

  1. The size is divided by the grid step. Rounding that quotient down and up gives the grid lines on either side.
  2. The nearest line is whichever is closer. A size exactly halfway between two lines rounds up, and the result says so.
  3. Values are rounded to six decimal places so that fractional steps such as 0.1 do not show floating-point noise.

Questions

Why use an 8-point grid?

Eight divides evenly into the common screen densities (1×, 1.5×, 2×, 3×), is large enough to make differences visible, and gives a small set of values that keeps a layout consistent.

Should text sizes snap to the grid too?

Font sizes usually do not, but line heights often do, so that lines of text sit on the same rhythm as the spacing. Snap the line height, not the font size.

How many sizes can I snap at once?

Up to 500 in the list. The single size above the list is snapped as well, with the grid values around it.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.