Upload, create and edit html files

This article explains how to upload, create and edit HTML files (and other web files) using the cPanel File Manager.

Where to publish? Files visible on your site go in public_html. The main file is usually named index.html.

Accessing the File Manager

  1. Log in to cPanel from the client portal or at https://yourdomain.com/cpanel.
  2. Go to Files → File Manager.
  3. Enter the public_html folder to work with your website.

Acceso al Administrador de archivos en cPanel

This tool has functions similar to an FTP client (FileZilla): you can create folders, upload files and edit them from the browser.

Creating an HTML file or a folder

  1. In the toolbar, click on + File or + Folder.

Botones crear archivo o carpeta

  1. Enter the name (e.g. index.html, contact.html) and confirm the directory (by default, the current one).
  2. Click on Create New File or Create New Folder.

Diálogo para crear archivo o carpeta

Editing an HTML file

  1. Right-click on the file → Edit (Edit).
  2. Leave the default encoding (UTF-8) and confirm with Edit again.
  3. Write or modify the HTML code in the editor.
  4. Save the changes and test the page in the browser.

Menú contextual Editar archivo

Editor de archivos HTML en cPanel

Tip: For major changes, it is advisable to have a local copy of the file before editing in cPanel. A syntax error can affect the site's display.

Uploading HTML files from your computer

  1. Navigate to public_html or the destination subfolder.
  2. Click on Upload (Upload).

Botón Cargar en Administrador de archivos

Drag the files to Drop files here to start uploading or use Select File.

Complete site in .zip: The manager does not allow uploading folders. Compress the site into a .zip, upload it and extract it with right click → Extract (Extract).

Menú Extraer archivo comprimido

Indicate the destination folder and click on Extract File(s).

To download a local copy, select the file and use Download in the toolbar.

Moving or copying files

If you need to reorganize your site (e.g. move index.html to another folder):

  1. Right-click on the file or folder → Move (Move) or Copy (Copy).
  2. Enter the destination path and confirm with Move File(s) or Copy File(s).

Menú Mover o Copiar

You can also drag the file onto another folder in the sidebar tree:

Arrastrar archivo a otra carpeta

Verifying that the site works

  • Open https://yourdomain.com (or the specific file, e.g. /contact.html).
  • If you see a 404 error, check that the file is in public_html and that the name matches (uppercase/lowercase matters in Linux).
  • If the page appears blank, check the edited HTML for syntax errors.

Common issues

  • I cannot upload files: it may be a full disk; see Disk space full: how to fix it.
  • I uploaded the HTML but it cannot be seen: confirm the public_html path and the file name.
  • Garbled characters in text: use UTF-8 encoding when editing.
  • I need to upload many files: consider FTP with FileZilla for large transfers.

If you cannot create, edit, or upload HTML files from cPanel, open a ticket from the client portal or consult via the site's online chat.

  • cargar crear y editar archivos, cargar archivo cpanel, administrar archivos mediante cpanel, editar archivos cpanel, crear directorio en cpanel, mover copiar archivos cpanel
  • 72 Users Found This Useful
Was this answer helpful?

Related Articles

How to connect and upload files using FTP-FileZilla

This article explains how to upload files via FTP to your hosting plan using the free FileZilla...

I cannot publish files within my service

This article helps you troubleshoot when you cannot upload or publish files on hosting with a...

Anonymous FTP Precautions

This article describes the security and usage precautions of anonymous FTP in a cPanel hosting...

FTP folder utilities

This article explains the meaning of each folder in your hosting account when connecting via FTP...

Creating and managing FTP accounts

This article explains how to create and manage additional FTP accounts in cPanel to grant...