ndz studio

Analyze DS ROMs and pack them, and their rom hacks, to .ndz in your browser
Drop .nds or .ndz files here — multiple at once is fine.
loading…
Make an .xdelta patch

A patch holds what one ROM changes over another: a hack you have as a patched ROM, or a sibling game over its base. xdelta3 3.2.0 runs here in your browser and writes the same patch its command line does. Pick the base ROM, then the ROM the patch should produce, or drop both on this panel, base first.

none
none
pick two ROMs

What am I looking at?

Example: Pokémon White 2, a 512 MB ROM, 8 KB blocks. 146 MB with no dictionary, down to ~108 MB at the far end.


Each point is one dictionary size. Across the bottom is how much of the cart's 8 MB PSRAM the dictionary would occupy; up the side is the resulting .ndz file size. The amber point is the recommended balance.

It's a sliding scale

PSRAM is shared. Whatever the dictionary doesn't take becomes decompressed-block cache while you play.

More dictionary = smaller file on your SD card.
More cache = fewer SD reads and fewer repeat decompressions, so less battery drain and fewer load hitches.

"none" still compresses

Block compression and the per-block filters always apply. Choosing none just skips the shared dictionary, leaving the entire 8 MB as cache. It's the best-battery, most-responsive end of the scale, and the file is still far smaller than the raw ROM.

Where to land

The curve drops steeply, then flattens. Most of the savings arrive in the first couple of megabytes; past the knee you're trading a lot of cache for very little size. The amber point marks that knee, but it's your call which end you want.

← all cache · best batterysmallest file →

Block size

The ROM is packed in blocks, and the cart decompresses a whole block whenever the game reads one that isn't cached. 8 KB is the default. Bigger blocks make a smaller file (Black 2: 112 MB at 4 KB, 109 MB at 8 KB, 107 MB at 16 KB, 105 MB at 32 KB) but take longer to decompress on every miss, which can show as a hitch when a game loads a lot at once. Each block size has its own chart; picking another one analyzes again.

Rom hacks

Have a hack as an .xdelta patch? Don't patch the ROM. Drop the patch onto the card of its base game (or click Add rom hack…) and pack it. Several hacks per game is fine; each gets its own row. You get a small .delta.ndz that holds only what the hack changes; the cart takes the rest from the base .ndz while you play. Put both files in the same folder on the SD card, and the launcher lists the hack under the base game, with its own save.

The patch is applied here first, so it has to be for this exact dump, the same as patching normally. A hack belongs to the base .ndz it was packed with and uses its block size: if you repack the base with another dictionary or block size, pack its hacks again.

Already packed? Drop the base .ndz with its .delta.ndz hacks: the base is unpacked back to its ROM here, and its hacks are rebuilt from it, so you can add more hacks or repack everything without the original patches. The base stays as it is until you repack it, and its card opens at the block size it was packed with.

No patch, just the patched ROM? Or a sibling game you'd rather carry as a patch over its base, Pearl over Diamond say? Make an .xdelta patch below the cards builds one from the two ROMs, with xdelta3 itself; then add it to the base's card like any other hack.

Hacks of DSi-enhanced games (Pokémon Black/White and their sequels, among others) are packed as their maker shipped them. A hack without DSi parts, which is most of them, boots in NTR (DS) mode; one that keeps them boots in DSi mode, with its hash tables regenerated so the console accepts it. The launcher's version sheet flips a hack between the two modes with X. If a hack doesn't work in one mode, try the other.