7-Zip command generator
Extract an archive, create a ZIP or 7z (optionally with an AES-256 password), list what’s inside or check it for damage — copy a working 7-Zip command. On Windows the program is 7z; the macOS/Linux build from 7-zip.org is 7zz.
·
Unofficial — 7-Zip is made by Igor Pavlov (LGPL-2.1, unRAR restriction). Prefer buttons to a terminal? GUI Hub’s Zip & Unzip runs these same commands from a form, offline.
Common 7-Zip commands
Extract
Unpack a ZIP, RAR, 7z, TAR or ISO into a folder. Existing files are kept: new copies get a number.
7zz x archive.zip -oextracted -aou -y
Create ZIP / 7z
Pack files (and optionally a folder) into a ZIP or 7z archive, with an optional password.
7zz a -tzip -y archive.zip report.pdf
See what’s inside
List the files in an archive without extracting it.
7zz l archive.zip
Check for damage
Test that every file in an archive can be read (and that the password is right).
7zz t archive.zip
Questions
Is a password-protected ZIP secure?
With -mem=AES256 (or any 7z archive) the contents are AES-256 encrypted. A 7z archive also hides the file names when you add -mhe=on. Windows Explorer can’t open AES ZIPs — use 7-Zip to open them.
Are these the right options for my version?
They are the commands GUI Hub itself runs, and every option is checked against the real 7-Zip 26.06 help output on Windows, macOS and Linux in our automated tests.
Do I need to install anything?
Only 7-Zip itself (7-zip.org (Windows installer; macOS/Linux “7zz” console build), or winget install 7zip.7zip / brew install sevenzip). This page just writes the command; nothing is uploaded. If you’d rather not use a terminal, the GUI Hub desktop app runs the same commands from a form, offline, and its MCP server lets Claude or Cursor run them for you.
Windows: why do the quotes look different?
cmd and PowerShell don’t understand single quotes, so the Windows version wraps arguments with spaces in double quotes. Pick your system above the command.