.NSZ

NSZ File

Compressed Nintendo Switch Package
Ask a question
QUICK ANSWER

An NSZ file is a Nintendo Switch game package (NSP) compressed losslessly with Zstandard, typically 40-80% smaller than the original. Modern Ryujinx-family emulators open NSZ files directly; for anything else, decompress it to NSP with the NSZ tool. Downloading others' Switch games in any format is copyright infringement.

Developer: nicoboss (NSZ open-source project / community) Category: Game Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .OBB · .PAK · .ROFL · .PACKAGE

On this page

19k+ extensions indexed
Last reviewed Aug 21, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the NSZ file format?

.nsz is a Compressed Nintendo Switch Package - a community-created lossless compressed variant of the .NSP game package format used on the Nintendo Switch. Introduced in 2019 by developer nicoboss via the open-source NSZ tool, it is not an official Nintendo format but is widely adopted in the homebrew and emulation community.

Structurally, an .nsz file is a PFS0 partition container (the same underlying format as .nsp) in which each NCA (Nintendo Content Archive) payload has been recompressed as an .ncz file using the Zstandard (zstd) lossless algorithm. The first 0x4000 bytes of each .ncz entry are preserved intact from the original encrypted NCA header, followed by a block-compressed payload section. The file carries a PFS0 magic signature (50 46 53 30) at byte offset 0, identical to a standard .nsp.

Compression typically achieves a 40-80% size reduction while remaining fully lossless: decompressing an .nsz reproduces the original .nsp byte-for-byte. SHA-256 integrity hashes embedded in the CNMT metadata NCA verify correctness after decompression. The .nsz format mirrors the relationship between .XCZ and .XCI - both pairs cover compressed versus uncompressed Switch game images from package and cartridge sources respectively.

Modern Ryujinx-family emulators can load .nsz files directly without a prior decompression step. The nsz command-line tool and GUI utilities such as NSC_BUILDER support both compression and decompression on Windows, Linux, and macOS.

Security & safety

RISK: MEDIUM

The NSZ format itself is data, not executable code, so the file won't 'run' on your PC. The real issues are legal and operational: using NSZ requires console encryption keys (prod.keys) and the games inside are copyrighted - compressing your own legally-dumped games is the only defensible use, while downloading or sharing others' Switch games is piracy. Practically, get the NSZ tool only from its official GitHub (nicoboss/nsz); 'NSZ converter/opener' sites and bundled installers are common malware/adware bait in this scene. Running pirated content on a real Switch also risks a Nintendo console ban.

Format details

in a nutshell
FULL NAMECompressed Nintendo Switch Packageaka Compressed NSP, NSZ Switch game
DEVELOPERnicoboss (NSZ open-source project / community)since 2019 (NSZ tool by nicoboss)
CATEGORYGame Files
MIME TYPEapplication/octet-stream
TYPECompressed container of a Nintendo Switch NSP, with NCA contents recompressed as NCZ
STANDARDOpen · royalty-free
This extension is also used by…
  • NVIDIA nTune benchmark file (legacy) - Old benchmark/profile data from NVIDIA's discontinued nTune overclocking tool (the original db_name).
  • Nullsoft / generic compressed data (rare) - Occasionally seen as a generic 'compressed' marker by unrelated tools.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
50465330
ASCII
PFS0
An NSZ is a PFS0 (NSP) container in which each NCA has been turned into an NCZ. The PFS0 magic "PFS0" appears at offset 0. Inside, NCZ entries keep the first 0x4000 bytes of the original NCA intact (still encrypted), followed by a section header and Zstandard-compressed data.

Programs that open NSZ files

Windows3 apps
NSZ (decompress tool) Open-source Run 'nsz -D game.nsz' to decompress back to the original .nsp, or use the bundled GUI. The reference tool for the format.
Ryujinx-family emulator Open-source Add the game directory; modern Ryujinx builds load .nsz directly (requires your own prod.keys / firmware).
NSC_BUILDER / NSCB Open-source GUI toolkit that compresses/decompresses and inspects NSP/NSZ/XCI/XCZ; convenient for batch work.
macOS1 app
NSZ (decompress tool) Open-source Python tool runs on macOS too: 'nsz -D game.nsz'. Ryujinx-family builds for macOS can load NSZ directly.
Linux2 apps
NSZ (decompress tool) Open-source pip install nsz, then 'nsz -D game.nsz' to restore the .nsp, or '-C' to compress an .nsp.
Ryujinx-family emulator Open-source Load the .nsz directly in the emulator (needs your own keys/firmware).

Technical details

deep spec
Container formatPFS0 partition filesystem - identical header structure to .nsp
File signature (magic bytes)PFS0 (0x50 0x46 0x53 0x30) at byte offset 0
Byte orderLittle-endian
Internal payload typeNCA files replaced by .ncz entries (Zstandard-compressed NCA)
NCZ header preservationFirst 0x4000 bytes of each .ncz entry retain the original encrypted NCA header unchanged
Compression algorithmZstandard (zstd) - lossless
Typical compression ratio40-80% size reduction versus the original .nsp, depending on game content type
Block-mode compressionNewer .ncz entries use block-based Zstandard for random-access decompression without a full decode pass
Integrity verificationSHA-256 hashes in the CNMT metadata NCA verify each NCA payload after decompression
Encryption modelNCA content is decrypted before Zstandard recompression; the title key and cert ticket are retained in the container
Typical file size200 MB - 15 GB compressed (large titles remain multi-GB even after compression)
MIME typeapplication/octet-stream
Lossless round-tripDecompressing an .nsz reproduces the source .nsp bit-for-bit
Native emulator supportRyujinx-family emulators parse .nsz directly without requiring prior decompression
Format originCommunity format created by nicoboss; not an official Nintendo format
Released2019 (NSZ tool by nicoboss)
Latest versionTracks the NSZ tool releases (actively maintained on GitHub)
Open standardYes · royalty-free
Specificationgithub.com

NSZ conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with NSZ files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about NSZ files.

Frequently asked questions

What is an NSZ file?
A compressed Nintendo Switch game package - an NSP file shrunk losslessly with Zstandard compression by the open-source NSZ tool. Decompressing it rebuilds the original NSP exactly.
How do I open or play an NSZ file?
Modern Ryujinx-family emulators load .nsz directly (with your own console keys). Otherwise decompress it to .nsp first using the NSZ tool ('nsz -D game.nsz').
How do I convert NSZ to NSP?
Use the NSZ tool: 'nsz -D game.nsz' produces the original .nsp losslessly. NSC_BUILDER offers a GUI for the same job. You need your console's prod.keys.
What's the difference between NSZ and NSP?
NSP is the full Switch package; NSZ is the same package with its contents Zstandard-compressed to save space (often 40-80% smaller). NSZ ↔ NSP is lossless and reversible.
What's the difference between NSZ and XCZ?
Both are compressed Switch formats: NSZ is a compressed NSP (eShop-style package), XCZ is a compressed XCI (gamecard image). Same compression idea, different base container.
Is it legal to use NSZ files?
Only with games you legally own and dumped yourself - compressing your own backups. Downloading or distributing others' Switch games is copyright infringement, and the format requires console keys you must extract from your own Switch.

References

1nicoboss/nsz - NSP/XCI compressor/decompressor (GitHub)github.com
2DeepWiki - NSZ file formats (NCZ/PFS0 structure)deepwiki.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.RPMSGRestricted Permission Message
6.MDMarkdown Document
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.EXEWindows Executable (Portable Executable)

Related extensions

.OBBAndroid Opaque Binary Blob (APK Expansion File)
.PAKGame Resource Package (PAK)
.ROFLLeague of Legends Replay
.PACKAGEThe Sims / Maxis DBPF Package (game content & mods) - dominant meaning
.XSBXACT Sound Bank
.SAVSaved Game File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z