How to cPanel – Edit Files with the HTML Editor

Contents

    This article is only applicable to those who have an account with Packetra and it assumes that you are already logged into the cPanel. Don’t have a hosting account yet? Check out our Shared Hosting or WordPress Hosting. If you already have one feel free to login to your portal, click the cPanel hosting service and use one of the quick actions to log onto your cPanel to follow the guide below.

    Want to upload files instead of creating them from scratch? Check out our guide on How to upload files in cPanel

    Find the cPanel File Manager

    First, under the Files section, click File Manager.

    Click File Manager under the Files Section

    Open the public_html Folder

    Next, the File Manager will open in a new tab. All your website files live inside the public_html folder. Click it to open it.

    Click Public_html directory inside the file manager

    Create Your First File in cPanel File Manager

    Next, click the +File button at the top and name it index.html. Web servers automatically look for files named index (.html, .htm, or .php) as the default page to load. Click Create New File to confirm.

    Click +File to create a new file name it index.html

    Edit Your File with the HTML Editor

    Next, click on your newly created index.html so it is highlighted in blue. Then click HTML Editor in the toolbar and click Edit.

    Select the file, click HTML Editor in toolbar to edit

    Save Your Work

    Finally, write your content into the editor and click the Save icon (floppy disk) in the top left corner. This saves your changes to index.html. You can now visit your domain directly and the web server will load your new page automatically.

    Editor opens, you can now add content to your file and hit the save button.

    Frequently Asked Questions

    Can I upload files instead of creating them?
    Yes. Click the Upload button in the File Manager toolbar to upload files directly from your computer. You can upload individual files or compressed archives and extract them on the server.

    What is the public_html folder?
    This is the root directory for your website. Any files placed here are publicly accessible through your domain. Subfolders inside public_html become paths on your website, for example public_html/images becomes yourdomain.com/images.

    Good to Know
    The File Manager is great for quick edits and small uploads. However, for bulk file transfers we recommend using an FTP client like FileZilla as it handles large uploads more reliably. Additionally, always keep a backup of your files before making changes. If you accidentally delete or overwrite something, you can restore from your hosting backups. If you run into any issues, open a support ticket through the client portal and our team will assist you.

    Updated on February 16, 2026
    Was this article helpful?