Viewing and editing files in cPanel's File Manager
Viewing and editing files in cPanel’s File Manager
This guide explains how to view and edit files directly on your web server using cPanel’s File Manager.
Viewing a file
If you only need to check the contents of a file without making changes, you can open it in view mode.
To view a file:
- Log in to cPanel.
- On the Tools page, in the Files section, click File Manager.
- In File Manager, select the file you want to view.
- Click the View icon.
- The file will open in a new tab or window for you to review.
Editing a file
Editing a file directly in File Manager allows you to update your website quickly without needing to re-upload files.
You can edit any plain text file, such as:
- Configuration files
- HTML, CSS, or JavaScript files
To edit a file:
-
Log in to cPanel.
-
On the Tools page, in the Files section, click File Manager.
-
Select the file you want to edit.
-
Click the Edit icon.
-
Choose the correct character encoding (utf-8 is the default).
- Important: Selecting the wrong encoding may damage the file.
-
Click Edit to open the editor.
-
Make your changes.
-
Click Save Changes when you’re done.
- If you decide not to save the changes, simply close the editor.
To exit the editor, click Close.