How to Edit a File in the cPanel File Manager

You can edit files directly on your website using the built-in File Manager in your cPanel account, without downloading them or connecting over FTP. This guide shows you how to open a file, make your changes and save them, and explains the difference between the two editors cPanel offers so you pick the right one for the job.

Last reviewed: 27 July 2026, against cPanel & WHM (Jupiter interface, current stable). This guide is written for Noiz hosting and is kept current against cPanel. It complements, and does not replace, the official cPanel documentation linked below.

Official Documentation Reference

Prerequisites

  • A Noiz hosting plan that uses cPanel, and your cPanel sign-in details.
  • The location of the file you want to edit (for a website, files usually live under public_html).

Editing a File

  1. Log in to your cPanel account.
  2. In the Files section, click File Manager.
    The File Manager icon in the Files section of cPanel
  3. Navigate to the directory where your file is located (for example, public_html for your main website).
  4. Right-click the file, then click Edit or HTML Editor in the context menu. (If your file does not appear, see the note on hidden files in Troubleshooting below.)
    The right-click context menu on a file, showing the Edit and HTML Editor options
  5. cPanel shows a character-encoding confirmation before it opens the editor. Leave the encoding as it is (usually utf-8) unless you have a specific reason to change it, then click Edit to open the editor.
    The character-encoding confirmation dialogue with the Edit button to open the editor
  6. Make your changes, then click Save Changes at the top of the editor.
    The cPanel file editor with the Save Changes button at the top

Your file is now saved. Because File Manager edits go straight to the live copy on the server, the change takes effect on your site immediately.

Edit or HTML Editor: Which to Use

cPanel gives you two editors, and picking the wrong one is the most common cause of a mangled file:

  • Edit opens a plain code editor with line numbers and syntax highlighting. Use it for HTML you have written by hand, and for PHP, CSS, JavaScript, .htaccess, configuration files and anything else where the exact characters matter. This is the safe default for almost every edit.
  • HTML Editor is a visual (WYSIWYG) editor for HTML pages, marked as a beta feature in current cPanel. It is convenient for simple text changes, but it can rewrite or reformat your markup and strip out code it does not understand, so avoid it on hand-crafted pages or anything containing scripts.

Troubleshooting

The file appears as strange or random characters: you selected the wrong encoding at step 5. Do not click Save Changes, or you may corrupt the file. Close the editor, right-click the file again, and choose the correct encoding (utf-8 suits most modern files) before opening it.

You cannot open a large file: the in-browser editor will not open files larger than roughly 1 MB. Download the file (right-click, Download), edit it on your computer, then upload it back over the original.

The file (such as .htaccess) is not listed: dotfiles are hidden by default. Click Settings in the top-right of File Manager, tick Show Hidden Files (dotfiles), and save.

Save Changes does nothing or reports an error: the file may be read-only. Right-click it, choose Permissions, and confirm the owner has write access (for a typical file that is 644).

Before editing anything important, it is worth keeping a copy: right-click the file, choose Copy, and save it with a name such as index.html.bak so you can roll back if a change goes wrong.

If you would rather Noiz handle the change for you, or you are unsure which file to edit, contact the Noiz support team and they will assist.

  • 0 Users Found This Useful
  • cpanel, edit, editor, filemanager
Was this answer helpful?

Related Articles

How to Upload Files via the cPanel File Manager

The cPanel File Manager lets you upload files to your hosting account straight from your web...

How to Create Folders and Files in the cPanel File Manager

The cPanel File Manager lets you create, organise, and edit your website files directly in your...

How to Edit the .htaccess File in the cPanel File Manager

The .htaccess file is a per-directory Apache configuration file that controls redirects, URL...

How to Create an FTP Account in cPanel

File Transfer Protocol (FTP) lets you upload, download and manage the files in your hosting...

How to Change an FTP Account Password in cPanel

Every cPanel account has a main FTP login plus any number of additional FTP accounts you create...