How Image Tiling and Pixel Rounding Work
Why dimensions that do not divide evenly need careful rounding, how square-tile center cropping is computed, and how tiles are ordered and named.
Primary Browser Tool
Image Splitter & Grid Maker
Split an image into rows and columns for Instagram grids, carousels, or print tiles and download every piece in a ZIP.
The Problem With Simple Division
Splitting a 1000 px wide image into three columns gives 333.33 px per column, and pixels cannot be divided. Two common shortcuts both go wrong. Rounding the tile width down to 333 and repeating it covers only 999 px, silently dropping the last column of pixels. Rounding up to 334 would need 1002 px, so the final tile either reads past the edge or overlaps its neighbor.
Rounding Boundaries, Not Sizes
The reliable approach is to compute where each cut falls as an exact fraction and round the cut positions. For column k of n, the left edge is round(k × width ÷ n) and the right edge is round((k + 1) × width ÷ n). Because the right edge of one tile is calculated by the same expression as the left edge of the next, tiles always meet exactly. The first edge is 0 and the last is the full width, so nothing is lost.
| Column | Left edge | Right edge | Width |
|---|---|---|---|
| 1 | round(0) = 0 | round(333.33) = 333 | 333 px |
| 2 | 333 | round(666.67) = 667 | 334 px |
| 3 | 667 | round(1000) = 1000 | 333 px |
Square Tiles by Center Cropping
When every piece must be an identical square, rounding is not acceptable, so the image is cropped first. The side of each square is the smaller of floor(width ÷ columns) and floor(height ÷ rows). The cropped area is that side multiplied by the number of columns and rows, positioned in the center of the image. The pixels outside it are discarded and shown dimmed in the preview.
For a 1000 × 500 px image split into three columns and one row, the side is min(333, 500) = 333. The crop is 999 × 333 px, starting 0 px from the left and 83 px from the top.
Ordering and Naming
Tiles are numbered in reading order: left to right within a row, rows from top to bottom. File names carry that number with leading zeros (01, 02, …) so that an alphabetical sort in any file manager is also the correct visual order. The posting order shown for profile grids is simply the reverse: for N tiles, tile i is uploaded at position N − i + 1.
Practical Examples
Checking coverage
A 1000 × 701 px image split 3 × 3 yields tiles whose areas add up to exactly 701,000 pixels, the area of the source, confirming that no pixel was dropped or duplicated.
Common Mistakes & Honest Limitations
Mistakes to Avoid
- Assuming all tiles are pixel-identical in size when the dimensions do not divide evenly. They can differ by one pixel unless Square tiles is on.
Technical Limitations
- Tiles are cut on whole-pixel boundaries with no resampling. To obtain tiles of an exact target size, resize or crop the source so its dimensions are exact multiples first.