Power of Two Textures: Why They Matter and How to Resize Them
Why game textures use sizes like 512, 1024 and 2048, what happens with other sizes in Unreal Engine and Unity, and how to batch resize textures correctly.
In this article
Open any professional texture library and you will see the same sizes again and again: 512, 1024, 2048, 4096. These are powers of two (2⁹, 2¹⁰, 2¹¹, 2¹²). It is not a tradition; it makes textures faster, smaller and more predictable on the GPU. Here is why, what each engine does with other sizes, and how to fix textures that are not.
The power of two sizes
A power of two is 2 multiplied by itself. These are the sizes you will use for textures:
| Power | Size (pixels) | Typical use |
|---|---|---|
| 2⁷ | 128 | Tiny icons, decals |
| 2⁸ | 256 | Small props, mobile icons |
| 2⁹ | 512 | Small and medium props, mobile textures |
| 2¹⁰ | 1024 | Most props, UI atlases, mobile characters |
| 2¹¹ | 2048 | Hero props, characters, trim sheets |
| 2¹² | 4096 | Large terrain, cinematic hero assets (use sparingly) |
| 2¹³ | 8192 | Rare: huge terrain or virtual textures |
A texture is "power of two" when both its width and its height are on this list. They do not need to match: 2048 × 1024 and 512 × 128 are fine.
Why it matters
1. Mipmaps
Mipmaps are smaller copies of a texture used when an object is far away. Each level is half the size of the one above: 2048 → 1024 → 512 → … → 1. A 2048 texture has 12 mip levels, and the whole chain adds about one third to its memory.
With a power-of-two size, every level halves perfectly and each pixel of a smaller mip is the average of exactly four pixels above it. With 1000 × 600, the halving soon gives odd numbers (125 × 75, then 62.5…), so the engine has to round, and filtering gets less clean.
2. Block compression
GPU formats like BC1, BC7 and ASTC compress textures in small blocks, 4 × 4 pixels for BC. Every power of two from 4 upward divides into whole blocks. Other sizes get padded to the next block, and if a side is not a multiple of 4 some engines refuse to compress the texture at all. More on the formats in texture compression explained.
3. Streaming in Unreal Engine
Unreal streams texture mips in and out of memory to stay within its pool. Epic's documentation states that non-power-of-two textures are not streamed and do not get mipmaps. A non-power-of-two texture therefore always sits in memory at full size and shimmers in the distance. The texture's Power Of Two Mode setting can pad it to a power of two, which brings mips back but stores the empty padding too.
4. Unity import settings
Unity has a Non-Power of 2 import option (None, To nearest, To larger, To smaller) that rescales the texture on import. It works, but you do not control the filter, and the result can be soft. Resizing the source yourself gives you a predictable result. For sprites, Unity's Sprite Atlas packs odd-sized sprites into a power-of-two sheet for you.
How much memory each size uses
Every step up doubles both sides, so it costs four times the memory. Numbers for square textures with mipmaps:
| Size | BC1 (4 bpp) | BC7 / BC5 (8 bpp) | Uncompressed RGBA8 |
|---|---|---|---|
| 256 | 43 KB | 85 KB | 341 KB |
| 512 | 171 KB | 341 KB | 1.3 MB |
| 1024 | 0.67 MB | 1.3 MB | 5.3 MB |
| 2048 | 2.7 MB | 5.3 MB | 21.3 MB |
| 4096 | 10.7 MB | 21.3 MB | 85.3 MB |
| 8192 | 42.7 MB | 85.3 MB | 341 MB |
A 4096 texture uses 16 times the memory of a 1024 one. A rectangular texture uses the average: 2048 × 1024 in BC7 is about 2.7 MB. Check your own textures and formats with the Texture Memory Calculator.
A worked example: a 1000 × 600 texture
Say an artist hands you a 1000 × 600 albedo for a 3D sign. You have three options:
- Leave it. In Unreal it gets no mips and no streaming. In Unity it depends on the Non-Power of 2 setting.
- Pad it to 1024 × 1024. That costs 1,048,576 pixels for 600,000 pixels of image: about 43% of the texture is wasted.
- Stretch it to 1024 × 512. That is 524,288 pixels, slightly fewer than the original, with full mips and streaming. The UVs still cover 0–1, so the sign looks the same in the game.
Option 3 is almost always right for UV-mapped textures. The image looks squashed in an image viewer, but the mesh stretches it back.
When other sizes are fine
- UI images and sprites shown at a fixed size, usually without mipmaps.
- Sprite atlases where the packer controls the final size. See how to make a sprite sheet.
- Screenshots and store images that never go into the engine.
How to resize textures correctly
- Decide the target per texture: round down when the texture is bigger than it needs to be, nearest for general cleanup, round up only when you would lose important detail.
- Use a high-quality filter (Lanczos) when downscaling. Never upscale a small texture just to reach a power of two; it gets bigger without getting sharper.
- For textures mapped to UVs, stretch to the new aspect; the UVs take care of it. For sprites and UI, fit or crop instead.
- Set a max size so nothing ends up larger than your budget.
- Keep PNG for normal maps, masks and anything with alpha. JPG artifacts in a normal map show up as noisy lighting.
The free Power of Two Texture Resizer does all of this in a batch: drop up to 30 textures, pick the mode (nearest, round down, round up, percent or exact), set a max size and format, and download them as a ZIP with a size report.
Cap sizes in the engine too
- Unreal Engine: set Maximum Texture Size on a texture, or use texture groups and LOD Bias per platform.
- Unity: set Max Size per platform in the import settings.
This lets you keep high-resolution sources while shipping smaller textures on weaker platforms. For a full plan, see how to reduce texture memory.
Summary
- Power-of-two sizes: 128, 256, 512, 1024, 2048, 4096, 8192.
- They give clean mipmaps, compression and streaming; Unreal does not stream other sizes.
- Textures can be rectangular; each side must be a power of two.
- Each size step up costs 4× memory, so choose the smallest that looks right.
- Stretch UV-mapped textures to the nearest power of two instead of padding them.
Frequently asked questions
What are the power of two texture sizes?
2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096 and 8192 pixels per side. Most game textures use 256 to 4096. Each side must be one of these numbers, but the two sides can differ.
Do textures have to be a power of two?
Not strictly, but it is strongly recommended for 3D textures. Power-of-two sizes support full mipmaps, compress cleanly and stream in Unreal Engine. UI images and sprites shown at a fixed size can be other sizes.
Do textures need to be square?
No. Each side must be a power of two, but they can differ, for example 2048 × 1024 or 512 × 256.
Should I round up or down to the nearest power of two?
Round down when the texture is larger than it needs to be (saves memory, stays sharp). Round up only when detail matters and the original is close to the larger size.
Is a multiple of 4 enough instead of a power of two?
For compression, yes: BC and most ASTC formats only need whole 4 × 4 blocks. For mipmaps and streaming, no: a 1000 × 600 texture compresses, but its mip chain does not halve cleanly, and Unreal will not stream it.
Does resizing to WebP or JPG reduce game size?
Not in the final game: engines re-compress textures on import into GPU formats like BC or ASTC. Smaller source files still make version control and downloads faster.