How to Hide Files and Documents on Android

How to hide files, PDFs and scanned documents on Android with Safe folder, Secure Folder, Private space or an encrypted vault, and why .nomedia doesn't hide documents.

Part of: Hide photos on AndroidUpdated November 24, 20268 min read

To hide files and documents on Android, move them into a locked space that file managers can't browse into. The built-in choices are the Safe folder in Files by Google (Android 8 and newer, PIN or pattern), Samsung Secure Folder (Samsung account required), and Android's Private space (Android 15 and newer). An encrypted vault app such as HideBerry is another option, with its own PIN and no account. One common tip doesn't work for documents: a .nomedia file only keeps photos, videos and audio out of media apps, so a PDF in that folder still shows in every file manager. Before you choose, check how each option is backed up and what happens if you forget the lock, because for several of them the answer is that the files are gone. For photos, start with how to hide photos on Android.

Compare the options for files

OptionWhereLockAccount neededBackupIf you forget the lock
Safe folderFiles by Google, Android 8+PIN or patternNone in Google's stepsGoogle says Back up to Google Drive isn't available for itGoogle says you can't access the files
Secure FolderSamsung phonesIts own lock or biometricsSamsung accountNot described on Samsung's pageReset with your Samsung account password
Private spaceAndroid 15+Screen lock or a separate lockOptional Google accountNot restored from a device backupGoogle says lock recovery isn't available
HideBerryAndroid 9+Its own PIN or patternNoA backup file you make and save12 recovery words let you set a new PIN
.nomedia folderAny phoneNoneNoLike any folderNothing to forget, nothing locked

Facts about Google and Samsung features are from their own help pages as of November 2026 (see Sources). Menu names can differ by phone and version.

Hide files with Safe folder (Files by Google)

Google's steps:

  1. Open Files by Google and scroll to Collections.
  2. Tap Safe folder and choose PIN or Pattern. Enter it twice, then tap Got it.
  3. To move files in, find them, touch and hold (grid view) or tap More next to a file (list view), then tap Move to Safe folder and enter your PIN or pattern.

To take a file out, open Safe folder, select it, tap More and Move out of Safe folder. It returns to its original place. Google says to stay in Safe folder until the move finishes; switching apps cancels it.

What to know: Google warns not to clear Files by Google's storage with other apps, and not to move an SD card holding Safe folder files to another phone. Resetting Safe folder deletes its files for good.

Hide files with Samsung Secure Folder

  1. Set it up under Settings, Security and privacy, More security settings, Secure Folder, and sign in to a Samsung account.
  2. Open Secure Folder, tap More options, then Add files.
  3. Choose the file type, select the files and tap Done.
  4. Choose Move (the original is removed) or Copy (the original stays).

Samsung notes that Secure Folder data is encrypted with Samsung Knox, and that clearing the Secure Folder app's data deletes everything in it. Our page on Samsung Secure Folder covers it fully.

Hide files with Android Private space

On Android 15 and newer:

  1. Open Settings, Security & privacy, Private space, and set it up.
  2. Open Private space, tap Add, then Add files.
  3. Pick files from main storage and choose Copy or Move. Google says they go to the Downloads folder inside Private space.

When Private space is locked, Google says its apps are stopped and hidden from the launcher, recents, sharing and Settings. Two cautions from the same page: if you forget the Private space lock you lose access, and Private space isn't restored when you restore the phone from a backup. More on Android Private space.

Hide files with an encrypted vault app

Here is how it works in HideBerry, which we make:

  1. Open HideBerry and unlock it.
  2. Put in any file through Android's file picker. HideBerry receives only the file you pick.
  3. Sort files into folders, and search by name later.

Photos, videos, text files and PDFs (PDFs on Android 11 and newer) open inside the app, and nothing is decrypted to a file to view them. Other file types (a spreadsheet, a ZIP) are stored safely and can be taken out when you need them. You can also write notes directly in the vault.

The detail that matters for documents is names. A file called "passport-scan.pdf" says a lot even if nobody opens it. HideBerry encrypts its index too, so file names, folders and thumbnails aren't readable on disk. The HideBerry security page explains how this works and lists what it can't protect.

Two limits to know. HideBerry's offer to delete the original applies to photos and videos, so for documents, delete the original from Downloads or wherever it was yourself. And taking a file out saves a normal, unencrypted copy outside the vault; the app labels this as leaving the vault's protection.

Why .nomedia doesn't hide documents

Android's developer reference describes .nomedia as telling the media scanner to ignore media in a folder, so that app graphics don't show in the gallery and app sounds don't show in the music app. It is about media. A PDF, a Word file or a text file in a .nomedia folder is still listed by any file manager, and the folder itself isn't locked. A dot at the start of a folder name may keep it out of a file manager's default view, but turning on hidden items shows it. See hiding photos from the gallery with .nomedia for what it does do.

Which files to hide first

A quick checklist of the documents people most often leave in Downloads without thinking:

  • Photos or scans of an ID card, passport or driver's license
  • Bank statements, pay slips and tax forms saved as PDFs
  • Medical letters and test results
  • Contracts and signed forms
  • Screenshots of passwords, recovery codes or account details (move these off the phone's gallery too)
  • Exported chats or notes you saved as files

Then check where copies live: Downloads, the chat app the file came in, your email attachments, and any cloud drive the file synced to.

Common mistakes

  • Moving a document into a locked space and leaving a copy in Downloads. Copy-based methods leave the original. Delete it yourself.
  • Relying on a hidden folder name. A folder called ".private" or "Private" is the first place someone would look.
  • No backup for important documents. Several locked spaces have no backup or can't be restored after a reset. Keep a copy of anything you can't replace somewhere you control. In HideBerry that is a backup file saved off the phone, plus your 12 recovery words on paper. See how to back up a photo vault.
  • Forgetting the lock. Safe folder and Private space have no recovery for a forgotten lock, according to Google.

Who this is for

A good fit: you keep scans, statements or other personal documents on your phone and sometimes hand the phone to others, or you don't want those files visible to every app that can browse storage.

Maybe not: if you need to edit a document often in another app, any locked space adds a step, because the file has to be moved or taken out first. For files you never need on the phone, deleting them after saving a copy elsewhere may be simpler.

Can other apps see files in a vault? In HideBerry, files are encrypted on the phone and their names aren't readable on disk, so there is no readable document for another app to open. For Safe folder, Secure Folder and Private space, the makers' help pages describe the lock but not every detail of how other apps are kept out, so check those pages for the current details.

Does hiding a file stop it from syncing? Not by itself. If a cloud drive app already synced the file, that copy stays in the cloud until you remove it there.

Can I hide files on an SD card? Google warns against moving an SD card with Safe folder files to another phone. For most locked spaces, keeping sensitive files in internal storage is the simpler choice.

What about hiding whole apps? That's a different job. See how to hide apps on Android.

FAQs

How do I hide a PDF on Android?

Move it into a locked space. In Files by Google, select the PDF, tap More and choose Move to Safe folder. On Samsung, add it to Secure Folder with Add files. In HideBerry, put it in with the file picker, and it opens inside the app. Then delete any copy left in Downloads.

Does a .nomedia file hide documents?

No. Android's developer reference describes .nomedia as telling the media scanner to ignore media, meaning photos, videos and audio. Documents in that folder still appear in file managers, and the folder has no lock.

What happens to Safe folder files if I forget my PIN?

Google's help page says that if you forget the PIN or pattern, you can't access the files. Resetting Safe folder deletes them permanently. There is no recovery option described.

Can I hide files on Android without an app?

Yes, if your phone has the features built in. Files by Google has Safe folder (Android 8 and newer). Samsung phones have Secure Folder, and Android 15 and newer has Private space. A .nomedia or dot folder needs no app but doesn't lock anything.

Are hidden files encrypted?

It depends on the method. Samsung says Secure Folder data is encrypted with Samsung Knox. HideBerry encrypts every item, and its index of names and folders, with AES-256-GCM. A .nomedia or dot folder leaves files unencrypted.

Lock your documents, not just your photos

HideBerry, coming soon to Google Play, holds documents, PDFs, notes and any other file in the same encrypted vault as your photos, with no account and no internet permission. Read the HideBerry security page to see how files are protected and where the limits are.

Sources

Keep private photos private

HideBerry encrypts photos, videos, notes and files on your Android phone. No account, no cloud, no ads. Free for up to 50 items, with every feature.

Coming soon toGoogle PlaySee how it works