---
title: "My sprites are all the same size. How can I pack them in a grid?"
description: "To pack same-size sprites in a grid, set algorithm to Grid/Strip, and adjust the texture width to control row length."
canonical: "https://www.codeandweb.com/texturepacker/knowledgebase/grid-layout"
product: "texturepacker"
source: "html"
---

# My sprites are all the same size. How can I pack them in a grid?

To arrange your sprites in a grid layout with uniform cell sizes, follow these steps:

*   Set the "Algorithm" parameter to "Grid/Strip".
*   Set "Trim Mode" to "None" to keep all sprites at their original size.

If you want a specific number of sprites per row, set a fixed texture width:

![grid layout](https://www.codeandweb.com/static/53d5a2d7df9bbd7da14bd803f79b73da/7b74b/grid-layout%402x.png)

![fixed texture width](https://www.codeandweb.com/static/3d2013f449ded846322729c78c911c6f/7b74b/fixed-width%402x.png)

To pack all sprites in a single row (sprite strip), set the maximum (or fixed) texture width large enough to fit all sprites side by side.

## Structured data

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "My sprites are all the same size. How can I pack them in a grid?"
}
```
