Where .unitypackage files come from
Unity creates them when you export assets. In Unity 6 the menu is Assets > Export Asset Package, in Unity 2022.3 it's Assets > Export Package. The option Include dependencies adds the assets and scripts your selection uses.
Importing works the other way round. Assets > Import Asset Package in Unity 6, or Assets > Import Package > Custom Package in Unity 2022.3, opens the Import Unity Package window with every item already selected, and you can deselect what you don't want.
What's inside a .unitypackage
Under the hood it's a tar archive compressed with gzip, the same format as a .tar.gz file. A package exported from Unity starts with the bytes 1F 8B, the gzip signature.
Unity doesn't store your folder tree as it is. Every asset gets its own folder named after its GUID, and that folder holds up to four files:
asset: the file itself, for example the FBX, PNG or C# scriptasset.meta: the import settings Unity keeps for it, including the GUIDpathname: one line of text with the original path in the project, such asAssets/Characters/Fox/Fox.fbxpreview.png: a thumbnail, when the package has one
A package with a single script looks like this:
c7f90dd7a865c324dab498da35074089/asset
c7f90dd7a865c324dab498da35074089/asset.meta
c7f90dd7a865c324dab498da35074089/pathnameIts pathname file holds a line like Assets/Scripts/Example.cs. Folders get a GUID folder too, with a pathname but no asset file.
How to open a .unitypackage
In Unity
Import it into a project. That needs the Unity Editor and a project to put the files in, and Unity compiles the scripts in the package as part of the import. More on why that matters below.
In your browser with EasyExtract
Drop the file on the web extractor. EasyExtract reads the package in your browser and never uploads it. You see every file under its real path, the preview thumbnails (the first 12 on the free plan) and a security scan, then extract everything or only the files you pick. Free Web includes 3 extractions or 1 GB every 30 days, for packages up to 512 MB.
On your desktop with the free app
The EasyExtract desktop app runs on Windows, macOS and Linux. It extracts offline, works through whole queues of packages and previews images, audio and 3D models. It's free.
By hand with tar
Since it's a regular .tar.gz, any tar tool can unpack it. macOS and Linux have tar built in, and current Windows versions ship tar.exe too:
mkdir extracted
tar -xzf MyPackage.unitypackage -C extractedWhat you get is the GUID layout from above, not your assets under their names. To use them you'd rename every asset file by hand, using the path in its pathname file. That's the part EasyExtract does for you, and what a package gives back per file type covers what you end up with.
Check a package before you import it
A .unitypackage can contain scripts. Importing a script makes Unity reload code, and an Editor script marked with [InitializeOnLoad] runs its code whenever scripts are recompiled. Nothing else has to be opened or clicked for that code to run.
That's why EasyExtract scans first. In the browser it reads the script files in a package (.cs, .js and .boo) and flags patterns that malicious packages use: Discord webhook URLs, links outside an allowlist, file deletion calls, process and registry access, native imports and network calls. The scanner guide lists them.
A clean result lowers the risk, it isn't a guarantee. Compiled DLLs aren't decompiled in the browser, so only import packages from sources you trust. Is this .unitypackage safe? goes through the attack and the limits of the scan in full.
Got a file that starts with UnityFS?
Then it's an AssetBundle, not a .unitypackage, and EasyExtract can't open it. AssetBundle vs .unitypackage explains the difference and which tools read bundles.