← Guides

How to unlock a file on Mac

Updated 3 June 2026

On a Mac, “this file is locked” can mean three very different things. Here’s how to tell them apart and unlock each.

1. The Finder “Locked” flag (most common)

If a file shows a small padlock badge, or Finder says “The item is locked,” it has the macOS locked flag — a read-only switch that has nothing to do with passwords or encryption.

To remove it:

  • Select the file, press ⌘ + I (Get Info), and untick Locked.
  • Or in Terminal: chflags nouchg /path/to/file

That’s it — the file is editable again.

2. The file is “in use” / read-only

If you can’t save or replace a file because it’s open elsewhere, it isn’t locked — it’s busy. Quit the app that’s using it (check the Dock and Activity Monitor), or copy the file, edit the copy, and replace the original.

3. A password-protected document (PDF / Office)

If a PDF, Word or Excel file won’t let you edit, copy or open it, that’s document protection — and it’s the same on Mac as anywhere else. Our free, in-browser tools handle these without installing anything:

  • Unlock PDF — remove print/copy/edit restrictions, or decrypt with your password
  • Unlock Excel — remove sheet & workbook protection
  • Unlock Word — remove editing protection
  • Unlock ZIP — remove a ZIP password you know

Forgotten the password to open a file? That needs recovery — you only pay if we get it back.

Which one do you have?

  • Padlock badge in Finder → the Locked flag (step 1).
  • “Can’t save, file in use” → it’s busy (step 2).
  • App asks for a password, or blocks editing/printing → document protection (step 3).