# Pixel Grid

> The grid of tiny squares a screen is made of. Edges that sit on it look sharp.

**Field:** Design  
**Category:** Design Standards  
**Also known as:** Snap to Pixel Grid, Pixel Snapping, Pixel-Perfect Design

## Think of it like

A line drawn on one row of floor tiles looks neat. A line across two rows smudges both.

## Definition

The pixel grid is the grid of tiny squares a screen is made of. A shape whose edges sit on whole pixels looks crisp. An edge that falls halfway across a pixel gets spread over two, so it looks blurry. Design tools can snap shapes to the pixel grid as you move them. It matters most for thin lines and small icons.

## Example

A 1-pixel line placed at x = 3.5 shows as two faint gray pixels. Moved to x = 3, it is one sharp black line.

## Why it matters

Blurry edges make icons and thin lines look cheap, even when the design is good.

## Common mistake

Scaling an icon by an odd amount, like 150%. Its edges land between pixels and blur.

## Three principles

- **Whole numbers.** Positions and sizes in whole pixels.
- **Snap on.** Let the tool keep shapes on the grid.
- **Check small things.** Thin lines and icons blur first.

## Related terms

- [8-Point Grid](https://learn.benibix.com/term/design/eight-point-grid)
- [Pixels per Inch (PPI)](https://learn.benibix.com/term/design/pixels-per-inch)
- [Raster Image](https://learn.benibix.com/term/design/raster-image)
- [Icon](https://learn.benibix.com/term/design/icon)
- [Optical Alignment](https://learn.benibix.com/term/design/optical-alignment)

## Told apart from

- [Pixel Grid vs 8-Point Grid](https://learn.benibix.com/compare/pixel-grid-vs-eight-point-grid): People think the pixel grid and the 8-point grid are the same grid, and they are not. The pixel grid is the screen itself, the tiny squares every shape lands on. The 8-point grid is a rule a team picks for spacing, so gaps and sizes come in steps of 8. A layout can follow the 8-point grid and still blur if its edges miss the pixel grid.

![Five panels. UI density: the same list at scale 0, -1 and -2, with rows of 36, 32 and 28 pixels. Motion token: a token named duration-short, 150 ms with standard easing, with arrows to a menu, a dialog and a toast. Optical alignment: a play triangle in a circle at the math center, which looks too far left, and nudged right to the optical center. Pixel grid: a 1-pixel line placed off the grid smears across two pale columns, and on the grid it fills one solid column. Opacity: three blue squares over gray stripes at 100, 60 and 20 percent.](https://learn.benibix.com/diagrams/des9-ui-details.svg)

---

Source: https://learn.benibix.com/term/design/pixel-grid
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
