The File Manager interface in cPanel gives you a simple way to manage the files and folders inside your hosting account. Instead of using FTP or another file transfer tool, you can open cPanel, access File Manager, and work directly with your website files from your browser.
File Manager is useful for uploading files, creating folders, editing website files, changing permissions, compressing folders, restoring deleted items, and searching for specific files. It is one of the most commonly used tools in cPanel because it gives you direct access to the structure of your hosting account.
This information applies to cPanel versions 126 through the latest version and was last modified on September 26, 2025.
What Is File Manager?
File Manager is a cPanel interface that organizes all the files in your account into folders. These folders may include your home directory, website root folder, public FTP folder, domain document roots, hidden configuration files, backups, images, scripts, and other website-related files.
For most website owners, the most important folder is usually public_html or www. This is the web root folder, which means files placed there are generally part of the public-facing website.
File Manager makes it possible to perform common file actions without leaving cPanel. You can create, copy, upload, download, rename, move, edit, delete, restore, compress, extract, and search for files.
Important Notes Before Using File Manager
Before making changes in File Manager, it is important to understand that editing the wrong file can affect your website. A small mistake in a configuration file, theme file, plugin file, or script can cause display problems or even make a site unavailable.
If you open a folder that contains a Git repository, you should avoid changing files or directories unless you know exactly what you are doing. Manual changes inside a Git-managed folder can cause serious repository problems, even if the repository was created through cPanel’s Git Version Control interface.
Some toolbar actions may appear gray. This means the action is not currently available for the selected item.
Some actions can only be used with one file at a time. For example, if you try to rename, edit, or view multiple files at once, cPanel will only apply the action to the first listed file in the folder.
Changing File Manager Settings
File Manager allows you to choose which folder opens by default. This can save time if you usually work in the same location.
To change the default opening folder, click Settings in the File Manager interface. The Preferences window will appear. From there, you can choose one of several default locations.
The Home Directory option opens the main folder for your account. The Web Root option opens public_html or www, which is usually the most direct route to your website files. The Public FTP Root option opens public_ftp, which is used for FTP-related files. The Document Root option lets you choose the folder for a specific domain.
You can also choose whether to show hidden files, also known as dotfiles. These files often begin with a period, such as .htaccess. Hidden files can be important for website configuration, redirects, security rules, and application settings.
There is also an option to disable character encoding verification dialogs. This can reduce repeated prompts when editing files, but you should only disable these dialogs if you understand how character encoding affects your files.
After choosing your preferences, click Save.
Understanding Character Encoding Warnings
When you use the Edit or HTML Editor option in File Manager, cPanel may display a character encoding verification dialog. This dialog asks you to confirm the file’s character encoding before editing.
Character encoding controls how letters, symbols, and special characters are displayed. Choosing the wrong encoding can corrupt the file or cause characters to appear incorrectly.
If a file opens and displays strange special characters, do not save it. Cancel the action and reopen the file using the correct encoding. Saving a file with the wrong encoding can permanently damage its content.
The Toggle Help option provides more guidance on selecting the correct encoding. You can also choose Disable Encoding Check if you do not want to see these prompts in the future.
Creating New Files and Folders
File Manager allows you to create new files and folders directly inside your hosting account.
To create a new file, click + File in the toolbar. Enter the file name in the New File Name field, then choose the folder where the file should be created. Click Create New File to finish.
To create a new folder, click + Folder in the toolbar. Enter the folder name, choose the location, and click Create New Folder.
You can also rename a file or folder by clicking its name, typing the new name, and pressing Return.
Copying Files
To copy one or more files, select the files you want to duplicate and click Copy in the toolbar. You can also right-click the selected item and choose Copy from the menu.
In the Copy window, enter the destination path where the copied file should be saved. Then click Copy File(s).
One important limitation is that you cannot create a copy of an item inside the same folder. If you need a duplicate in the same location, you may need to copy it elsewhere first or rename the copied item.
Copying Folders That Contain Files
Copying a folder that contains files requires a slightly different process. First, compress the folder using your preferred file compression tool on your computer. The method depends on your operating system. For example, on macOS, you can right-click a folder and select the Compress option.
After the folder is compressed, upload the compressed file through File Manager. You can drag and drop the file into the upload area or use the Select File button.
Once the compressed file appears in File Manager, select it and click Extract. This will unpack the folder and its contents into the chosen location.
Moving Files and Folders
To move files, select the item or items you want to move, then click Move in the toolbar. Enter the destination file path in the move window, then click Move File(s).
You can also move files by dragging a file icon into a destination folder. Another method is to rename the file path, depending on what you are trying to accomplish.
Moving files should be done carefully. If you move a website file to the wrong location, links, images, scripts, or pages may stop working.
Updating File and Folder Permissions
Permissions control who can read, write, or execute a file or folder. In File Manager, you can change permissions by selecting the item and clicking Permissions in the toolbar.
The Change Permissions interface lets you use checkboxes or text boxes to update the permission values. The default setting is commonly 0644 for files.
Be careful when changing permissions. Permissions that are too restrictive may prevent your website from working correctly. Permissions that are too open may create security risks.
After making your changes, click Change Permissions to save them.
Deleting and Restoring Files
When you delete a file or folder in File Manager, cPanel does not immediately erase it permanently. Instead, the item is moved to the Trash folder.
To delete an item, select the file or folder and click Delete in the toolbar. A confirmation window will appear. Click Confirm to move the item to Trash.
To restore an item, click View Trash in the toolbar. Select the file or folder you want to recover, then click Restore. Confirm the action to move the item back.
If you want to permanently delete everything in Trash, click Empty Trash. Be careful with this action because permanently deleted files may not be recoverable unless you have a backup.
Uploading and Downloading Files
The Upload option allows you to upload individual files, such as images, documents, scripts, and website assets.
File Manager does not upload folders directly. If you need to upload a folder, create the folder in File Manager first and then upload the files into it. Another option is to compress the folder, upload the compressed archive, and extract it inside File Manager.
The Download option allows you to save files from your hosting account to your local computer. This is useful when you want to make a backup or edit a file locally.
Editing and Viewing Files
File Manager includes options to edit or view files directly in the browser.
The Edit option opens the selected file in a text editor. This is useful for editing HTML, CSS, PHP, JavaScript, configuration files, and other text-based files.
However, cPanel does not allow you to edit files larger than 1 MB through this interface. If a file is larger than 1 MB, you must download it and edit it with a local editor.
The HTML Editor option opens the selected file in an experimental HTML editor. This may be useful for basic HTML changes, but advanced users may prefer the regular code editor or a local editor.
The View option lets you view the contents of a file without editing it.
Compressing and Extracting Files
File Manager can compress files, compressed files, and folders into archive formats such as .zip, .Gz, or .Bz2. This is useful for creating backups, moving groups of files, or downloading multiple items at once.
The Extract option lets you unpack compressed archives and store their contents in a folder.
The Compress and Extract actions only work with .zip files if Zip exists on the server. If the feature is unavailable, your hosting provider may need to install the required PHP extension through WHM’s EasyApache 4 interface.
Password Protection and Other Folder Tools
Depending on your hosting provider’s settings, File Manager may include additional folder actions.
Password Protect allows you to set a username and password to restrict access to a folder. This can be useful for private areas, staging folders, or restricted resources.
Leech Protection helps prevent users from sharing passwords to restricted areas. If an account exceeds a set number of logins within a two-hour period, the system can redirect the user to a selected URL or display an internal server error.
Manage Indices controls how users view a folder on the web. This can affect whether visitors see a directory listing or are prevented from browsing folder contents.
These features must be enabled by your hosting provider before they appear or function correctly.
Searching for Files
The Search box in the top-right corner of File Manager helps you find specific files.
By default, the search may look through all files in your home folder. You can also limit the search to public_html or to the current directory.
To search, choose the search location from the menu. The options include All Your Files, only public_html, or Current Directory. Then enter the file name and click Go.
A results screen will show matching filenames. To open a folder or go to the folder containing a file, double-click the desired item in the list.
If no matching files exist, cPanel will display a No records found message.
Best Practices for Using File Manager
Before editing important website files, download a backup copy. This gives you a way to restore the original file if something goes wrong.
Avoid editing files inside Git repositories unless you understand how the repository is managed. Manual changes may create conflicts or break version control workflows.
Be careful with permissions. Do not make files or folders more open than necessary.
Use the Trash feature as a safety net, but do not rely on it as your only backup. Once Trash is emptied, recovery may not be possible without a separate backup.
When editing files, pay attention to character encoding warnings. If a file looks corrupted or displays strange symbols, cancel the edit before saving.
Use search when you are not sure where a file is located, but make sure you are editing the correct file before making changes.
Conclusion
The File Manager interface in cPanel is a powerful tool for managing website files directly from your browser. It allows you to create, upload, edit, move, copy, compress, extract, delete, restore, and search for files without needing a separate FTP program.
Because File Manager gives direct access to important website files, it should be used carefully. A single incorrect edit, permission change, or file move can affect how a website works. With backups, careful file selection, and attention to warnings, File Manager can be one of the most useful tools in cPanel for everyday website management.