How to make file hidden in windows

Download Windows Speedup Tool to fix errors and make PC run faster

In this post, we will show you how you can make your files or folders Hidden or Read only on Windows 11/10 PC. When you set a file as Hidden, folks will not be able to see the file or folder. When you set a file to be Read only, folks will be able to read the file but they will not be able to make changes and save them.

make a File or Folder Hidden or Read Only

Hidden Files are any files with the ‘Hidden’ attribute in the Properties turned on. These files are hidden because they are usually important operating system-related files. These files are hidden from the normal view so that they do not get changed or deleted. While the Hidden attribute can be applied to files and folders, the Read only attribute applies to files inside a folder only.

To set the attributes of the File or Folder to Hidden, follow these steps:

  1. Locate the file
  2. Right-click on it
  3. Under Attributes, select Hidden.
  4. The file will get hidden.

To see it again, you can use this method to show Hidden files.

You should know one thing. If the checkbox shows a square inside, the Folder’s Properties, it means that some items inside are Hidden or Read only and some not.

A blank checkbox indicates that none of the items have that attribute, whereas a checkmark indicates that that file or all the files in the folder have that attribute.

Make a file Read only in Windows 11/10

To set the attributes of the File or Folder to Read only, follow these steps:

  1. Locate the file
  2. Right-click on it
  3. Under Attributes, select Read only.
  4. The file will now be Read only and changes made will not get saved.

You will, however, be able to save this file with a different name.

Clicking on the Advanced button, as shown above in the first image, will open another box that allows you to compress or encrypt files and archive or index items.

I hope this basic tutorial helps you.

Can we lock a folder in Windows 11/10?

Yes, you can lock a file or a folder in Windows 11/10. For this, you can use some free folder encryption software that first encrypts your item and then let you set a custom password to lock it. Or else, you can use a script and create a BAT file to password protect folders without using third-party tools.

How to restrict users from deleting files and folders in Windows 11/10?

The best way to protect a file or folder from deletion in Windows 11/10 is by changing the security permissions. You can Deny a user from Full Control, Modify, Read, Write, and other permissions for a file or folder, and then that user account won’t be able to delete it. You first need to Disable inheritance for the file/folder and then you can access and edit the deny permissions for a user.

Now read: How to list all the Hidden files & folders on your Windows computer.

Disha is an MBA who loves to dabble with computers. Her love for Windows and Office has now compelled her to start blogging here with us.

Sometimes, the best way to keep sensitive information concealed from prying eyes is to hide it in the open. We’ll show you easy ways to hide folders in Windows 7, 10, and 11.

Disclaimer: None of these solutions will effectively hide your data from experienced users. For truly sensitive and confidential data, we recommend encrypting files and folders or storing them on a password-protected USB drive.

1. Hide Folders

Windows offers an easy way to quickly hide folders from unsuspecting eyes. This method requires that Windows does not show hidden files and folders, so let’s make sure that’s the case.

Windows 11 File Explorer Folder Options

  1. Open File Explorer (any folder) and navigate to Folder Options. Windows 10: View > Options > Change folder and search options Windows 11: See more > Options
  2. Within Folder Options switch to the View tab.
  3. Under Files and Folders find the option Hidden files and folders and select Don’t show hidden files, folders, or drives.
  4. Click OK.

Once Windows is set to conceal hidden files and folders, you can go ahead and hide a folder.

Windows 11 Folder Properties and Advanced Attributes

  1. Right-click the folder you want to hide and select Properties.
  2. In the General tab, check the option called Hidden.
  3. Then click the Advanced button to change Archive and Index attributes; you might want to block indexing of the folder contents.
  4. Optional: Under Advanced Attributes, check the Encrypt contents to secure data option.
  5. Click OK to save your changes.

When you need to access your hidden folder, go through folder options to temporarily make hidden folders visible. Obviously, this is a little inconvenient. To take a shortcut and hide or unhide several folders at once, you can use the tool Free Hide Folder. It can hide and unhide selected folders, given the folder options are set to not show hidden files and folders.

Free Hide Unhide Folder Tool

Although access to this tool is protected by a password, it does reveal that there are hidden folders somewhere and advanced users will find them with ease.

2. Make Folders Invisible

When you make your folder invisible, rather than hiding them, you won’t have to go through folder options to unhide your folder. On the downside, someone may discover your invisible folder by accident.

To make an invisible folder, you have to do two things: remove the folder name and make the folder icon transparent.

To clear the folder name in Windows 7:

  1. Select the folder and press F2.
  2. Then hold the ALT key while typing the numbers 0160 using the number pad.
  3. Hit Enter and the folder name should be gone.

The above method doesn’t seem to work in Windows 10 or 11.

Windows 11 Desktop Folder Without Name

To remove the folder name in Windows 10 or 11:

  1. Select a desktop folder and press F2 (to rename it).
  2. Then right-click the existing name and choose Insert Unicode control character.
  3. From the list, select NADS.
  4. Finally, click any empty spot on the desktop.

To make the folder icon invisible:

  1. Right-click your folder and select Properties.
  2. Switch to the Customize tab and click the Change Icon… button.
  3. You can find several blank icons in the default Windows icon collection. Select one, click OK, then click Apply in the Properties window. This might require a couple of tries until you succeed.
Windows 11 Select Blank Folder Icon

If the invisible folder sits on your desktop, make sure it’s along the edge of the screen and towards the right side. This will decrease the chance of it being found by chance. Note that anyone can still access the folder, given they find it. For example, clicking CTRL+A will select and highlight all files and folders, including invisible ones.

3. Hide a Drive in Windows

Hide Drive in Windows 11

Hiding an entire drive is probably the best option if you want to avoid accidental discovery.

  1. Press the Windows key, type Disk Management, and hit Enter.
  2. Right-click the drive you’d like to hide and select Change Drive Letter and Paths…
  3. Select the drive letter and click Remove.
  4. A warning will pop up, click Yes.

When you now head into File Explorer > This PC, you won’t be able to locate the drive under Devices and drives.

If you’d like to make the drive visible again, follow the steps above up until step 3, then, in the Change Drive Letter and Paths window, click Add… to re-assign a drive letter.3 Quick & Easy Ways to Hide a Folder in Windows 7

4. Use the Command Prompt to Hide Files and Folders

Hide Folder via Command Prompt

If you’re comfortable using the command prompt, this may be the best method for you. It’s definitely the most effective one, short of using encryption or a third-party tool.

  1. Press Windows + R to launch the Run menu.
  2. Enter cmd and hit Enter.
  3. Navigate to your target folder or file using the CD and DIR commands.
  4. To hide a file or folder, use the following command:

            attrib +h "replace this with target file or directory name"
        
  5. To show a hidden file or folder, type this command:

            attrib -h "replace this with target file or directory name"
        

After using the command in step 4, check for your file or folder using the File Explorer; you won’t be able to find the hidden item. Even when you go back to the command prompt and run the DIR command, it should have disappeared from the list. Yet, when you run the command in step 5, it’ll magically reappear.

5. Hide Folders With My Lockbox

Lockbox Folder Selection

My Lockbox is a third-party utility to lock and hide folders. When you first launch the tool, you need to create a password. Next, you can assign a Lockbox folder.

In the free version, you’re limited to one hidden folder, although you can change the folder anytime. When you launch My Lockbox, you can lock (hide) and unlock (unhide) your Lockbox folder. Unlike Free Folder Hide, My Lockbox will also hide your folder when the folder options are set to show hidden files, folders, and drives.

Lockbox Control Panel

In the My Lockbox Control Panel, you can access additional options, for example, to set trusted applications allowed to access your folder or to create hotkeys.

Keep Your Data Safe

The safest way to secure and hide your data is to encrypt it. Professional versions of Windows come with BitLocker, but you can also use a free third-party utility like VeraCrypt.

When you need to remotely access your data from multiple different devices or locations, consider secure cloud storage.

Quick Links

  • Use File Explorer’s «Hidden» Option

  • Password Protect Your Files or Folders

  • Using a Free Third-Party App to Hide Files

If you want to keep certain files and folders out of people’s sight, it’s possible to hide those items on your Windows 11 PC. You have both built-in and third-party methods to do that, and I’ll show you both.

An easy way to hide files and folders without using third-party tools is by using File Explorer. You can utilize this file manager’s “Hidden” option that hides the selected items from the view. However, note that this method isn’t foolproof. If someone enables the viewing of hidden items, they can see your hidden files and folders.

That said, to use this method, launch File Explorer (press Windows+E) and find the file or folder to hide. Right-click the file or folder and select «Properties.»

"Properties" highlighted for a file in File Explorer.

On the Properties window, open the «General» tab if you aren’t already there. In the Attributes section, enable the «Hidden» option. Then, select «Apply» followed by «OK.»

Various options highlighted to hide a file on the Properties window.

Your chosen item is now hidden. If you’ve hidden a folder, all the files and subfolders in that folder are also hidden.

To view or unhide your hidden file or folder, make File Explorer show hidden items. To do that, open File Explorer, click the three dots at the top, and choose «Options.» Access the «View» tab, turn on the «Show Hidden Files, Folders, and Drives» option, and choose «Apply» followed by «OK.»

The option to show hidden files highlighted on the Folder Options window.

You’ll now see your hidden items. To unhide an item so it’s always visible, right-click the item and choose «Properties.» Disable the «Hidden» option and select «Apply» followed by «OK.»

The option to unhide a file highlighted on the Properties window.

Utilize Command Prompt

If you like running commands, use a command in Command Prompt to hide your files and folders. To do that, open Windows Search (press Windows+S), type Command Prompt, and select «Run as Administrator.» Choose «Yes» in the User Account Control prompt.

In Command Prompt, type the following command. Replace «PATH» with the full path to the folder where the file or folder you want to hide is located. Then, press Enter.

cd PATH

To hide a file, type the following command. Replace «FileName.ext» with the name and the extension of the file. Then, press Enter.

attrib +h "FileName.ext"
The command to hide a file typed in Command Prompt.

To hide a folder, type the following command. Replace «FolderName» with the name of the folder to hide. Then, press Enter.

attrib +h "FolderName"

The «h» parameter in this command applies the Hidden attribute to the specified file or folder, making that item invisible.

In the future, to unhide a file, use the following command. Make sure to replace «FileName.ext» with the name and the extension of the file to unhide.

attrib -h "FileName.ext"

To unhide a folder, run the following command replacing «FolderName» with the name of the folder to unhide.

attrib -h "FolderName"

This command removes the Hidden attribute from the specified file or folder, making that item visible.

Password Protect Your Files or Folders

Another way to keep your items out of people’s reach is by password-protecting them. When you do this, your items are still visible, but people have to enter the correct password before they can access those items. You do this by making a password-protected archive from your files and folders.

Windows 11 doesn’t offer a built-in option to add password protection to archives, so you’ll have to use a third-party option. Free apps like 7-Zip and WinRAR help you do the task. I’ll show you how to use the former one.

Launch the 7-Zip site and download and install the app on your PC. Restart your Windows 11 system after installing the app. Then, launch File Explorer (press Windows+E) and find the file or folder to password-protect.

Right-click that file or folder and select Show More Options > 7-Zip > Add to Archive.

7-Zip > Add to Archive highlighted for a file in File Explorer.» src=»https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2024/12/6-add-to-archive.jpg»></p>
<div class= Картинка с сайта: www.howtogeek.com

On the Add to Archive window, select the «Enter Password» field and type the password you want to use. Choose the «Reenter Password» field and re-type the same password. Optionally, configure other options.

Then, at the bottom, click «OK» to start creating a password-protected archive.

The options to create a password-protected archive highlighted on the Add to Archive window.

When the archive is created, double-click it to check if it’s password-protected. You can now delete the original files or folders so people can’t access them. Right-click those original files or folders and then click the trash can icon. You can press and hold the Shift key to select multiple files for deletion to save yourself a bit of time.

The trash can icon highlighted for the original files in File Explorer.

Choose «Yes» in the prompt so the items are deleted and not just moved to the Recycle Bin.

Note that 7-Zip doesn’t allow you to add files after you’ve created an encrypted archive. Therefore, make sure to add all the files you want to protect in one go. One way to do this is to bring all your files in one folder and then add them to an archive.

Using a Free Third-Party App to Hide Files

You also have the option to use free third-party apps to hide files and folders on your system. One of these is Wise Folder Hider, which allows you to hide items even in its free version (it has a paid version as well).

To use it, access the Wise Folder Hider site and download and install the app on your PC. Launch the app and create the login password that you’ll use to unhide items. Then, to hide a file, click «Hide File.» To hide a folder, click «Hide Folder.»

"Hide File" and "Hide Folder" highlighted in Wise Folder Hider.

Navigate to the directory where the file or the folder you want to hide is located, then select that item.

"Select Folder" highlighted on the Select Folder window.

Your chosen file or folder is now hidden. You won’t see it in File Explorer anymore.

To unhide a hidden file or folder, launch the Wise Folder Hider app. Next to the item you want to unhide, click the «Operation» drop-down menu and choose «Unhide.»

"Unhide" highlighted for a folder in Wise Folder Hider.

Without any prompts, the app will immediately make the selected items visible.


And that’s how you protect your files and folders from prying eyes on your Windows 11 PC. You also have the option to hide specific folders from the Windows Search results if you’d like to do that.

If you have some files and folders that you want to keep safe from prying eyes, you might want to hide them so others can’t access them easily. Luckily, Windows allows you to hide all kinds of items, using only built-in tools like File Explorer or commands run in PowerShell or Command Prompt. In this guide, I show you how to hide both files and folders in Windows 10 and Windows 11:

How to hide files and folders in Windows 10 using File Explorer

If you’re using Windows 10, open File Explorer and navigate to the file or folder you want to hide. I chose to hide a file from my desktop.

Navigate to the file or folder you want to hide

Navigate to the file or folder you want to hide

Right-click or press and hold on the file or folder and, in the menu that appears, click or tap Properties. You can also select the file/folder and press ALT + Enter on your keyboard to achieve the same result.

Right-click and choose Properties

You see the Properties window for the selected file or folder. Then, in the General tab, check the Hidden box, and click or tap OK.

Choose Hidden and press OK

If you set a file as hidden, the change is applied immediately.

If you set a folder as hidden, you see a prompt named “Confirm Attribute Changes.” Next, you’re asked whether you want to apply the change only to the folder or also its subfolders and files. Most users will probably want the second option, “Apply changes to this folder, subfolders and files.” Select the option you prefer and press OK twice.

Confirm Attribute Changes

The change is applied according to your choice. After setting the file or folder as hidden, its icon is grayed out to signal the attribute change.

The selected file is marked as hidden and its icon grayed out

The selected file is marked as hidden and its icon grayed out

To completely hide this file from view, as well as all other hidden files or folders, click or tap the View tab in File Explorer and deselect the “Hidden items” option.

How to stop displaying hidden items

How to stop displaying hidden items

TIP: If you want to password-protect a folder, read this guide: 8 tools to password-protect your folders in Windows.

How to hide files and folders in Windows 11 using File Explorer

If you’re using Windows 11, the steps are the same as the ones in Windows 10, but the File Explorer window looks different. Therefore, I think it’s best to have a dedicated section for the users of this operating system. Start by opening File Explorer (Windows + E) and navigating to the file or folder you want to hide. Next, select it and press ALT + Enter on your keyboard or right-click (or press and hold) on it and choose Properties in the context menu.

Right-click and choose Properties

Right-click and choose Properties

In the Properties window of the selected file or folder, check the Hidden box in the General tab, and click or tap OK.

Set the file or folder as hidden

If you change the attributes of a folder, you’re also asked to confirm whether you want to apply the Hidden attribute to this folder only or its subfolders and files too. Most people prefer to choose “Apply changes to this folder, subfolder and files.” After making your choice, press OK twice, and you’re done.

Confirm Attribute Changes

The selected file or folder is marked as hidden, and its icon becomes grayed out. To completely hide it from view, click or tap the View button at the top, choose Show, and then deselect the Hidden items option in the File Explorer window.

Set Windows 11 to stop displaying hidden items

Set Windows 11 to stop displaying hidden items

All hidden files and folders are no longer shown in Windows 11.

TIP: If you want to create a password-protected ZIP file that others can’t open, read this guide: 2 ways to create a password-protected ZIP file in Windows.

How to hide files and folders using Command Prompt

Open Command Prompt as administrator and then run this command:

attrib +h “path to file or folder”

Replace “path to file or folder” with the actual path towards the file or folder you want to hide, similar to the screenshot below.

Use the attrib +h command in CMD

Use the attrib +h command in CMD

After you press Enter, that file or folder is marked as hidden.

NOTE: According to other websites on the internet and Microsoft’s documentation, for the attrib command, you should add the “/s /d” parameters to the command shared earlier so that it applies to a folder, all its subfolders, and files. Unfortunately, I’ve tested this in Windows 10 and Windows 11, and it doesn’t work. If you’re using these parameters on a folder, only the folder is set as hidden. The files and subfolders inside that folder remain as they are.

How to set a file or folder as hidden from PowerShell

You can open PowerShell as administrator or a PowerShell tab in a Windows Terminal window and set a file as hidden, using the following command:

$FILE=Get-Item ”path to file\filename.extension” -Force

$FILE.attributes=’Hidden’

You should replace “path to file” with the actual path to the file you want to hide and “filename.extension” with the exact name and extension of the same file, like in the screenshot below.

Set a file as hidden from PowerShell

Set a file as hidden from PowerShell

If you want to hide a folder, the command is identical:

$FILE=Get-Item ”path to folder” -Force

$FILE.Attributes=”Hidden”

Replace ”path to folder” with the actual path towards your folder. See the screenshot below for an example.

Set a folder as hidden from PowerShell

Set a folder as hidden from PowerShell

If you also want to set all the files and subfolders inside your folder as hidden, you should also run this command alongside the previous two:

Get-ChildItem -path “path to folder” -Recurse -Force | foreach {$_.attributes = «Hidden»}

Things should look similar to the screenshot below.

Set a folder's subfolders and files as hidden

Set a folder’s subfolders and files as hidden

PowerShell runs these commands without providing any feedback. If you typed everything correctly, all the items you chose should be marked by Windows as hidden. If File Explorer is set to “Don’t show hidden files, folders, or drives,” these items should no longer be visible.

TIP: If you want to hide more than just files and folders, here’s how to hide (or unhide) any partition in Windows.

Which method did you use for hidden files or folders?

It doesn’t matter whether you’re using Windows 10 or Windows 11. The methods for hiding files and folders work the same, even if the user interface looks slightly different. Tell me which method you used and whether it worked well. Comment using the options below and let’s discuss.

Если вы не хотите делиться конфиденциальной информацией с коллегами или домочадцами, вот несколько способов её спрятать.

Windows

Встроенное средство

Как скрыть папку в Windows

Это самый простой способ, и необходимые инструменты уже встроены в Windows. Порядок выполняемых действий ничем не отличается ни в Windows 7, ни в Windows 10:

  • Создайте папку (или файл), которые хотите скрыть.
  • Щёлкните по созданной папке правой кнопкой мыши и выберите в контекстном меню пункт «Свойства».
  • В открывшемся окне свойств папки отметьте галочкой поле «Скрытый».
  • Выберите, должна ли система скрывать все вложенные папки и файлы или достаточно скрыть только содержащую их папку. В принципе, достаточно скрыть только папку.
  • Нажмите OK.
Как скрыть папку

Готово, теперь папка скрыта. Но она ещё может быть видна, если на вашем компьютере включено отображение скрытых файлов. Чтобы отключить эту функцию, сделайте следующее:

  • Откройте меню «Пуск» и начните вводить фразу «Показ скрытых файлов и папок».
  • Откройте найденные настройки.
  • В появившемся окне параметров перейдите на вкладку «Вид», промотайте список опций вниз и отыщите раздел «Скрытые файлы и папки». Отметьте пункт «Не показывать скрытые файлы, папки и диски». Нажмите OK.

Теперь скрытые файлы и папки не будут отображаться в «Проводнике» и в результатах поиска. Учтите, что сторонние файловые менеджеры всё равно увидят вашу папку.

Более хитрый способ

Чтобы спрятать что-нибудь, нужно разместить это у всех на виду. Руководствуясь этой древней мудростью, попробуем спрятать важные данные в какой-нибудь красивой картинке.

Этот трюк возможен благодаря особенностям файлов в формате JPEG. Программы для просмотра изображений начинают анализировать файлы JPEG с начала, игнорируя данные, записанные в конце файла. Архиваторы же распознают начало архивов по особым сигнатурам, которые могут быть расположены в файле где угодно.

Проще говоря, можно соединить файл изображения и архив так, что информация в архиве будет спрятана в файле картинки. Посторонний, открыв ваш файл в просмотрщике изображений, увидит только картинку. Вы же сможете открыть картинку архиватором и увидеть в ней спрятанные данные.

Сделать это довольно просто:

  • Заархивируйте данные, которые нужно спрятать, в формате ZIP или RAR.
  • Поместите архив и картинку, в которой вы хотите спрятать его, в одну папку на диске C (так, чтобы путь к папке был C:\ваша_папка).
  • Зажмите Win + R, введите команду cmd и нажмите Enter.
  • В открывшейся командной строке введите cd C:\ваша_папка\, чтобы перейти к созданной папке.
  • Затем наберите copy /b ваше_изображение.jpg+ваш_архив.rar новое_изображение.jpg.

Готово. Командная строка создаст картинку новое_изображение.jpg, которая будет открываться в любом просмотрщике. Но если вы откроете изображение архиватором, то увидите ваши спрятанные данные. Умно, правда?

Этим способом также можно пользоваться, чтобы передавать собеседникам какие-нибудь данные на форумах или в чатах, где запрещено обмениваться любыми файлами, кроме картинок.

macOS

Как скрыть папку в macOS

Создавать скрытые файлы в macOS придётся через командную строку, потому что честным пользователям продукции Apple скрывать нечего, а атрибут hidden предназначен в первую очередь для системных файлов. Но всё равно это очень просто.

  • Создайте папку (или файл), которую хотите скрыть.
  • Откройте «Терминал».
  • Введите команду chflags hidden, но не нажимайте Enter.
  • Перетащите вашу папку в окно «Терминала».
  • Теперь нажмите Enter.

Ваша папка станет невидимой. Чтобы открыть её, придётся ввести путь к ней через Finder → «Переход» → «Переход к папке».

Ещё можно включить отображение скрытых папок, введя в терминале команду defaults write com.apple.Finder AppleShowAllFiles YES. После этого перезапустите Finder через Apple → «Завершить принудительно».

Команда defaults write com.apple.Finder AppleShowAllFiles NO снова скроет файлы и папки.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Порты для файлового сервера windows
  • Проверка лицензионного ключа windows 10 pro
  • Включить пустые пароли windows
  • Какой офис лучше для windows 10 для дома
  • Asus d540n установка windows с флешки