---
title: "Adding Files and Folders in cPanel"
source: "https://docs.nexcess.com/hosting/control-panel/whm/cpanel/file-management/adding-files-and-folders-in-cpanel/"
description: "cPanel offers a secure File Manager tool. Learn how to add files and folders in this tutorial for enhanced security."
vertical: "Hosting"
date: "2024-03-04"
last_modified: "2026-07-02"
---

# Adding Files and Folders in cPanel

cPanel provides you with the File Manager tool that is more secure than using SFTP or FTP. Our article [Using the File Manager in cPanel](https://docs.nexcess.com/hosting/control-panel/whm/cpanel/file-management/using-the-file-manager-in-cpanel/) outlines the different things you can do within it to manage your sites. This tutorial will walk you through how to add files and folders in File Manager. To learn how to upload files, see our article [Uploading public\_html Files in cPanel](https://docs.nexcess.com/hosting/control-panel/whm/cpanel/file-management/uploading-public_html-files-in-cpanel/).

## Add a File

1. Make sure you are in the **public\_html** directory. This allows the files and folders you create to be viewable on your website.  
    ![public_html directory highlighted](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_dkplu1.png)
2. Click the **+** sign next to **File** in the tool bar at the top of the File Manager home page.  
    ![File and plus highlighted in task bar](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_85SEYp.png)
3. A pop-up will appear asking you to name the file.  
    | ### **Note:** |
    |---|
    | You need to name the file correctly for it to work, examples are: index.html, file.txt, file.php . If they are not saved this way, you will be unable to view them on your site or edit them in the code editor. |
    
    ![gif showing blank file and named file](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_7GVXmB.gif)
4. Click **Create New File**.
5. The file will now show in the file list and you can edit the html or code. If you have an html file already created and want to upload it, see our article [Uploading public\_html Files in cPanel](https://docs.nexcess.com/hosting/control-panel/whm/cpanel/file-management/uploading-public_html-files-in-cpanel/).  
    ![Added file highlighted in list](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_2oNADR.png)

## Add a Folder

1. Click the **+** sign next to **Folder** in the tool bar at the top of the File Manager home page.  
    ![Folder link highlighted](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_o5AhkJ.webp)
2. A pop-up will appear asking you to name the folder. A folder is different than a file, it does not need a .html, .php or other indicator.  
    ![gif showing folder name empty and filled in](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_GSBPJF.gif)
3. Click **Create New Folder** to create the folder in your public\_html list.
4. The folder will now show and you can upload images, documents or other files into it.  
    ![New folder highlighted in public_html list](https://docs.nexcess.com/wp-content/uploads/2026/06/help.liquidweb.com_NIzLUo.png)
