How it works

How to convert a picture to an N64 texture that fits TMEM (free tool)

To convert a picture to an N64 texture, you have to pick a format and a size that fit in the console's 4096 bytes of texture memory (TMEM), and then squeeze the colors into that format. The free N64 texture converter does all of it in your browser: drop in a picture, and it shows you the result, how much TMEM it uses, and gives you a PNG that libdragon's mksprite can read directly.

By David Walter, Founder
· 6 min read

The free N64 texture converter with a fox photo converted to a 64 by 64 CI4 texture, shown side by side with the original, the What it uses meters, a 16 color palette and the download buttons.
On this page
  1. What the tool is
  2. Step by step
  3. Look at the result
  4. Read the "What it uses" meters
  5. The N64's rules the tool keeps
  6. Tips: photos, drawings and pixel art
  7. Downloads
  8. Make a game with it
  9. FAQ

This page walks through the tool from the first picture to the downloads, explains the rules of the N64 that it keeps for you, and shows what happens to photos, drawings and pixel art at such small sizes.

What the tool is

It is a converter, and it is free: no account, no gems. It runs entirely in your browser as the Shiny Gen engine's own C++, the same code the cartridge build runs, compiled to WebAssembly. Nothing is uploaded; the page says so under the picture. Only the "Make a game with it" button sends your picture anywhere, and only after you press it.

Because it is the same converter our N64 games use, what you see is what the console gets. Our tests give byte-identical results to the engine across 172 cases, and 1,836 conversions across every setting extreme of our 5 consoles stay inside every hardware limit.

Step by step

1. Add a picture. Drop, paste or pick any picture your browser can open, at any size. Very large ones are read at most 2048 pixels on a side. If you just want to try it, there are four samples on the page: Photo, Drawing, Pixel art and Landscape.

2. Choose a format. The Format menu offers:

  • Best for this picture, the automatic choice.
  • RGBA16: 5-5-5 color with a 1-bit alpha.
  • CI8: a 256-color palette.
  • CI4: a 16-color palette.
  • IA8: 4-bit intensity and 4-bit alpha.
  • I8: 8-bit gray.

"Best for this picture" converts your picture in every format that fits at the size you chose, measures each result against the picture, and keeps the closest one. If two tie, it prefers the one with more color depth.

3. Choose a size. Sizes are powers of two from 8 to 64 on a side. The menu only lists sizes that actually fit the chosen format, so you cannot pick one the console cannot hold. A picture that is not square is center-cropped to the shape you pick, never squashed.

4. Dithering and background. Dithering is Off or On and matters for the CI formats. For the background choose Remove a plain background, Keep it, or Pick a color to remove (tap the color, then set the tolerance). Every setting offered is one the console can do; an impossible one is moved to the nearest legal value and the tool says so.

Look at the result

The preview has Before, After and Side by side views, a nearest-neighbor zoom, and checkerboard, dark and light backgrounds.

One button matters a lot for N64 work: As the console draws it versus Raw pixels. The N64 does not filter textures like a modern GPU. It uses a 3-point filter that blends 3 texels, not 4. The same CI4 texture of a cat drawing, shown with the filter:

A cat drawing at 384 by 384 beside its 64 by 64 texture shown as the console draws it: the lines and whiskers look soft and slightly smeared.
As the console draws it: the 3-point filter softens the lines.

And the same texture as raw pixels:

The same cat drawing beside its 64 by 64 texture as raw pixels: the outline, eyes and whiskers show as crisp square blocks.
Raw pixels: what is actually stored in the texture.

The raw view is the data you ship; the filtered view is closer to a game. Check both: a thin whisker that looks fine raw can smudge once the filter blends it.

Read the "What it uses" meters

The panel under the picture says "Within the N64's limits" when the texture fits, and shows meters:

  • Texture memory (TMEM): how much of the 4096 bytes the texture takes. The fox in the first screenshot uses 2080 of 4096.
  • Texels, palette in the upper half: for CI formats only. This one is x / 2048.

Why two meters? TMEM is 4096 bytes. Our engine counts the palette with the texels (a CI4 palette is 32 bytes, CI8 512), and the palette sits in the upper half of TMEM, as libdragon's rdpq_tex.h says. So a CI texture's texels must fit 2048 bytes. A 64 x 64 CI4 texture is exactly 2048, which is why that meter is full and still green.

Close view of the What it uses panel: TMEM 2080 of 4096, texels 2048 of 2048, size 64 by 64, format CI4, 2,048 bytes in the cartridge, a 16 swatch palette and the download buttons including libdragon PNG (CI4).
The meters, the palette swatches (click one to copy its hex) and the downloads.

The palette is shown as swatches, and clicking one copies its hex value.

The N64's rules the tool keeps

FormatWhat it storesLargest size the menu offers
RGBA165-5-5 color, 1-bit alpha32x32 or 32x64 (4096 B), or 64x32
CI8256-color palette32x64 or 64x32
CI416-color palette64x64
IA84-bit intensity, 4-bit alpha64x64
I88-bit gray64x64

RGBA16 spends 2 bytes a pixel, so it tops out at 32 x 32 or the 32 x 64 shapes. CI4 spends half a byte and fills 64 x 64, but only with 16 colors.

A fox photo converted to a 32 by 32 texture, shown next to the 640 by 571 original: the result is soft and blurry, with the orange ears and dark muzzle still visible.
The same fox as a 32 x 32 texture, the largest square RGBA16 allows.

Compare it with the hero picture: 64 x 64 in CI4 keeps the eyes and the nose, while 32 x 32 in full color loses most of the detail. "Best for this picture" tries these trade-offs for you.

Tips: photos, drawings and pixel art

Photos. The hardest case. The fox photo ends up with a 16-color palette and still reads as a fox, because the shapes and the dark and light areas survive. Pick a photo with a clear subject, and try dithering On and Off.

Drawings. Flat colors and bold outlines convert well. The cat keeps its orange body, outline and eyes; what suffers is anything thinner than a texel, such as whiskers. Thicken the line in the original, or remove a plain background so the cat fills the texture.

Pixel art. Art already drawn on a small grid is the best fit, and it keeps its frame when you remove a plain background. Check it with "Raw pixels", since the console view softens edges.

Downloads

  • PNG, actual size and PNG, scaled (a larger copy for viewing).
  • Palette (.pal) and Palette (hex list) for the CI formats.
  • libdragon PNG, named <name>.<format>.png, for example hero.ci4.png. For CI4 and CI8 it is an indexed PNG with the exact palette.

libdragon's mksprite reads the format from the file name and keeps an indexed PNG's palette (it is in mksprite.c), so the command is just:

mksprite hero.ci4.png

That is why the file name matters: rename it and mksprite reads a different format.

Make a game with it

Under the downloads, Make a game with it puts your converted picture (or the original) into this site's start card. There you add a few words and start an AI game session that builds a playable N64 game with your picture in it. It is a Shiny Gen account on the site, and a new account starts with free gems.

The img2n64 start card with the cat picture loaded, the picture's role set to The player, Solid 3D figure selected as free, a prompt box and the Make my N64 game button.
The start card, where your picture and a few words become a game.

See how to turn a picture into an N64 game, or Make an N64 game with AI on shinygen.ai. If you only came for the texture, the free N64 texture converter is all you need.

FAQ

Is the N64 texture converter really free?

Yes. No account, no gems, nothing uploaded unless you press "Make a game with it".

Why is the biggest size only 64 x 64?

Because TMEM is 4096 bytes, and a CI texture's palette has to fit too. The size menu only lists sizes that fit the chosen format.

What does "Best for this picture" do?

It converts in every format that fits, measures each against the picture, and keeps the closest.

Why does the preview look blurrier than the raw pixels?

The N64 filters textures with a 3-point filter that blends 3 texels, not 4. "As the console draws it" shows that. "Raw pixels" shows the stored texture with no filtering.

How do I get the texture into a libdragon project?

Download the libdragon PNG, for example hero.ci4.png, and run mksprite hero.ci4.png. The format is read from the file name, and for CI4 and CI8 the indexed PNG keeps the exact palette.

Does the tool change a picture that is not square?

It center-crops the picture to the shape of the size you choose. It never squashes it.

Further reading

Last updated: November 17, 2026