Vous consultez notre site en anglais, mais votre navigateur est en français.Passer au français

Estás viendo nuestro sitio en inglés, pero tu navegador está en español.Cambiar a español

Je bekijkt onze website in het Engels, maar je browser is ingesteld op Nederlands.Schakel over naar Nederlands

このサイトを英語で表示しています。お使いのブラウザは日本語に設定されています。日本語で表示

Updated: 28 October 2026 · Steps checked on iOS 27 · 6 min read

How to lock files and PDFs on iPhone

A person in profile looks down at a phone held above a paper document.

Put a password on a PDF

On iOS 26 or later, the Preview app can lock a PDF with a password. Apple’s numbers jump from iOS 18 to iOS 26: there’s no iOS 19 to 25. To see which iOS you have, open the Settings app and tap General, then Software Update. The screen shows the iOS on your iPhone, and any update that’s ready. Looking there doesn’t install anything.

  1. Open the Preview app.
  2. Open the PDF you want to lock.
  3. Tap the Actions Menu button (a down arrow) next to the file name, then tap Lock.
  4. If Require Password is off, turn it on.
  5. Type a password in Password. Type the same password in Verify.
  6. Tap the Done button (a check mark).

The password goes on the PDF itself. So the PDF asks for the password before it opens, and anyone you send the PDF to needs the password too. Keep the password somewhere safe. If you forget the password, Apple’s help gives no way back into the PDF. The PDF’s name still shows in the Files app, so choose a name you don’t mind anyone reading. The lock covers one PDF, so lock each PDF the same way.

Lock the Files app

On iOS 18 or later, you can lock the Files app. A locked Files app asks for Face ID, Touch ID or your iPhone passcode before it opens. Apple says what’s inside a locked app won’t show in iPhone search or in notifications.

  1. Go to your Home Screen.
  2. Touch and hold the Files app until a menu opens.
  3. Tap Require Face ID. On an iPhone with Touch ID, tap Require Touch ID.
  4. Tap the same choice again to confirm.
  5. Use Face ID, Touch ID or your passcode.

Anyone who knows your iPhone passcode can still open a locked Files app. The lock covers the Files app only. Preview can open the same PDFs without the Files app. So on iOS 26 or later, lock the Preview app the same way you locked the Files app. These locks work on this iPhone only, not on your iPad.

Scan a paper into a locked note

Scanning into a locked note is for paper you have in your hand, like a letter or a card. Apple says a locked note can hold a scanned paper. A locked note can’t hold a PDF that you attach from the Files app.

  1. Open the Notes app.
  2. Tap the New Note button (a square with a pencil).
  3. Type a title on the first line. The title still shows in your notes list after you lock the note, so choose a title you don’t mind anyone reading.
  4. Tap the Attachments button (a paper clip), then tap Scan Documents. On iOS 17, tap the Camera button instead of Attachments.
  5. Hold your iPhone over the paper. Your iPhone takes the scan by itself when it finds the edges of the page.
  6. Scan any other pages. Then tap the Done button (a check mark). On iOS 17 and iOS 18, tap Save.
  7. Tap the Note Actions button (three dots), then tap Lock. The note gets a lock, but the note stays open until you close it in step 9.
  8. The first time you lock a note, choose your iPhone passcode or a Notes password. If someone else knows your passcode, choose a Notes password. If you forget a Notes password, Apple can’t help you open the notes locked with it.
  9. To close the note, tap the padlock icon at the top of the note. The note then locks.

To open the note later, tap the note, then tap View Note. For more on Notes passwords and Face ID, see How to lock notes on iPhone.

Delete files for good

When you delete a file in the Files app, the file waits in Recently Deleted for 30 days. After 30 days, your iPhone deletes the file for good. To delete a file for good sooner, delete the file again in Recently Deleted.

  1. Open the Files app.
  2. Tap Browse.
  3. Under Locations, tap Recently Deleted.
  4. Tap the More button (three dots in a circle), then tap Select.
  5. Tap the files you want to delete for good.
  6. Tap the Delete button (a trash can).

A file you delete in Recently Deleted can’t be brought back.

Which lock fits your files

Here’s what each lock does.

Which lock fits your files
What opens itSomeone who knows your passcode can open itWhat it locks
PDF password (iOS 26 or later) The password you chose No One PDF
Locked Files app (iOS 18 or later) Face ID, Touch ID or your iPhone passcode Yes Only the Files app. Preview can still open your PDFs.
Note with a scan, locked with your passcode Your iPhone passcode, or Face ID or Touch ID once you turn them on for Notes Yes That note: its text, scans and photos
Note with a scan, locked with a Notes password Your Notes password, or Face ID or Touch ID once you turn them on for Notes No That note: its text, scans and photos
Underlock Your own pattern No Everything in your vault

If you’re the only one who knows your passcode, a locked Files app and a locked Preview app may be all you need.

Keep files behind your own pattern

We make Underlock, a private vault on your iPhone for photos, videos, files and notes. You open your vault by drawing a pattern on a grid of dots. Your iPhone passcode and Face ID don’t open your vault. To see how a vault helps with IDs and papers, read IDs and documents.

Underlock is coming soon to the App Store. Here’s how it will work.

  1. Open Underlock. Then draw your pattern.
  2. Tap the Add button (a plus sign), then Import from Files.
  3. Choose the files you want to import.
  4. Keep Underlock open until the import finishes. If you leave Underlock, the import stops, but files already imported stay in your vault.
  5. When Underlock asks whether to remove the originals from the Files app, tap Remove. Underlock then moves the originals to Recently Deleted, in the Files app.
  6. Check that your files are in your vault.
  7. In the Files app, delete the originals from Recently Deleted, as in Delete files for good.

Until you delete the originals, anyone who can open the Files app on your iPhone can find them in Recently Deleted. Once you delete the originals, the files in your vault are your only copy. Keep a paper copy of anything you can’t replace. See how Underlock’s setup works, step by step.

Questions people ask

The Files app has no way to hide one file, but you can lock the whole Files app. Apple says apps that come with your iPhone, like Files, can’t be hidden. To keep files out of the Files app, import them into a vault app like Underlock, then remove the originals.

Yes, on iOS 26 or later. The Preview app can put a password on a PDF: the steps are under Put a password on a PDF. With iOS 17 or iOS 18, scan the paper into a locked note instead, or keep the PDF in a vault app like Underlock.

Not a PDF from the Files app. Apple says a note with a PDF attached can’t be locked. A paper that you scan into a note can be locked: see Scan a paper into a locked note.

To Recently Deleted, in the Files app. Deleted files wait there for 30 days, and then your iPhone deletes the files for good. If a file is in iCloud Drive, deleting the file on your iPhone deletes it on your other devices too.

No. To bring a paper into Underlock, scan the paper with the Files app first. In the Files app, tap the More button (three dots in a circle), then tap Scan Documents. Then, in Underlock, tap Add, then Import from Files. Choose the scan.

Yes. Underlock is free forever: one vault, no file limit. If the free plan ever changes, you keep the plan you started with. More vaults come with Pro, Underlock’s paid plan.

Share this guide

Private photos stay private. And stay yours.

Free for one vault, with no file limit. No account, no email.

For iPhone with iOS 17 or later.

Coming soon to the App Store

Get an email when Underlock launches

  • Lifetime Pro for $39.99 at launch, not $49.99.
  • Then news a few times a year.
  • Leave the list any time.

You’re on the list.

Underlock · hello@underlock.app