> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Viewing and editing files in cPanel's File Manager

> Learn how to view and edit files in the cPanel File Manager.

This article describes how to use the cPanel File Manager to view and edit files directly on the web server.

## Viewing a file

You may not always need to edit a file. If you just want to take a quick look at a file's contents, you can view it without opening an editor.

To view a file in File Manager, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).

2. On the **Tools** page, in the **Files** section, click **File Manager**:\
   ![cPanel - File Manager icon (Jupiter theme)](https://static.hosting.com/kb/kb-cpanel-jupiter-file-manager-icon.png)

3. In the File Manager main window, click the file that you want to view.

4. Click the **View** icon:\
   ![cPanel - File Manager - View icon](https://static.hosting.com/kb/kb-cpanel-78-file-manager-view.png)

   The file's contents appear in a new page.

## Editing a file

When you edit a file using cPanel's File Manager, you can make immediate changes to your web site without the need to upload a new version of the file.

You can use the File Manager editor to modify any kind of plain text file, including:

* Configuration files.

* HTML, CSS, and JavaScript files.

To do this, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).

2. On the **Tools** page, in the **Files** section, click **File Manager**:\
   ![cPanel - File Manager icon (Jupiter theme)](https://static.hosting.com/kb/kb-cpanel-jupiter-file-manager-icon.png)

3. In the File Manager main window, click the file that you want to edit.

4. Click the **Edit** icon:\
   ![cPanel - File Manager - Edit icon](https://static.hosting.com/kb/kb-cpanel-78-file-manager-edit.png)

5. Select the character set encoding that the file uses. The default is **utf-8** (Unicode).

   > 🚧 Important
   >
   > Make sure that you select the correct character encoding for the file. Otherwise, the file may become corrupted.

6. Click **Edit**. The file's contents appear in a new page, ready for editing.

7. To save your changes, click **Save Changes**.

   > 👍 Tip
   >
   > If you do not want to save your changes, just close the page.

8. To close the editor, click **Close**.

## Related articles

* [Getting started with File Manager](/docs/getting-started-with-file-manager)

* [Uploading and downloading files in File Manager](/docs/upload-and-download-files)

* [Configuring file permissions in File Manager](/docs/file-permissions)
