Forgot a ZIP, RAR or 7z password?

Start with your archive's format and whether the password is missing or rejected. A damaged download or a missing part needs different action. Work on an archive you own or are authorized to open.

If you forgot the archive password

There is no account-style reset or hidden entry route for a properly encrypted archive. Recovery means testing candidate passwords you remember or partly remember: old variants, a meaningful phrase or a pattern you used for that project. Password length and randomness matter, not the extension alone. A long random password may be impractical to recover by any means.

Search your own secure records and the delivery message; ask the creator for the credential for this exact archive. If no candidate works, look for the original files, a backup or another authorized export. LostMyPass provides guides and does not accept archive uploads or offer a recovery service.

ZIP: a password failure and an unsupported format are different

Encrypted: enter the password chosen by the creator. ZIP can use legacy ZipCrypto or AES; the .zip name alone does not tell you which. Check the archive properties in a compatible application or ask its creator. WinZip describes AES encryption and its difference from legacy ZIP encryption.

Wrong password: check the exact characters, capitalization and copied spaces, then confirm the credential with the creator. Damaged: obtain another complete download before assuming the credential is wrong. Missing parts: if the delivery contains split volumes, collect the complete set with its original names and use an application that supports that set.

With a known password, unzip -t archive.zip tests supported ZIP data without extracting files; enter the password at its prompt. The result needs context:

  • UnZip 6.00 on a complete legacy-encrypted sample reported No errors detected.
  • An incorrect password produced incorrect password; a truncated copy reported End-of-central-directory signature not found.
  • The same UnZip build rejected the AES sample with need PK compat. v5.1 (can do v4.5). That is a compatibility failure, not proof of a wrong password.

The ZIP password guide covers saved credentials, alternate copies and file-damage checks. An application supporting AES ZIP, such as the format support documented by The Unarchiver's vendor, still needs the correct password.

RAR: distinguish encrypted headers from missing data

Encrypted: RAR can protect both the contents and filenames. A prompt before any file list appears can be expected when its headers are encrypted. Wrong password: WinRAR's encryption FAQ describes RAR 5 password checking and rejection before extraction.

Damaged: preserve the archive and ask for a new copy. WinRAR's recovery record can help with some damaged data when it was included, but it does not supply a missing password. Missing parts: collect all volumes from the sender, keep their names and start with the first volume. Check the requested part rather than renaming another part to impersonate it.

WinRAR states that it has no forgotten-password backdoor. A license or computer account reset cannot provide the archive credential. Use the RAR password guide to trace the creator and an accessible source copy.

7z: test the complete set, then interpret the message

Encrypted: the 7z format supports AES-256 and derives its key from the password. Encrypted headers can hide filenames as well as file data. Wrong password: verify the credential before treating a header error as corruption. Damaged or missing parts: compare the supplied files and sizes with the creator's complete set.

Use 7z t archive.7z to test a copy and enter the known password when requested. Some distributions name the command 7zz; for split archives, start with the .7z.001 file and keep all volumes together. In 7-Zip 26.04 on owned sample files:

  • The complete archive with its correct password reported Everything is Ok.
  • A wrong password for the encrypted-header sample produced Cannot open encrypted archive. Wrong password? and Headers Error.
  • Both a truncated archive and a set missing a middle volume produced Unexpected end of archive. That message alone did not distinguish the two causes.

These examples identify possible next checks, not every cause of an error. See 7-Zip's damaged-archive guidance and the 7z password guide. Repairing missing or damaged structure is separate from finding the password.

Before replacing or extracting anything

  1. Keep the original archive and all received parts. Test a copy without overwriting the source.
  2. Match the filename, version and expected contents with the sender. An identically named download from another site is not proof of the same data.
  3. If the source files still exist, create an authorized replacement and verify it before discarding the locked archive.
  4. After regaining access, check the extracted files and keep a labeled password record separately from the archive.

Updated and official guidance checked on 19 October 2026. Command examples are from 7-Zip 26.04 and UnZip 6.00; other versions and archive settings may report different messages.