# How to Edit a File in the cPanel File Manager

You can use cPanel's inbuilt file manager to edit files on your website.

**1.** Log in to your cPanel account.\
**2.** In the **Files** section, click on **File Manager**.

<figure><img src="https://3645136414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIcJwwORgqOz8NHr15WEz%2Fuploads%2F7lFIfOeEInigmYhcC891%2Fimage.png?alt=media&#x26;token=ec4f87d0-c234-47ea-a3c8-ec82a26d5215" alt=""><figcaption></figcaption></figure>

**3.** Navigate to the directory where your file is located.\
**4.** Right-click on the file. Then click on **Edit** or **HTML Edit** in the Context Menu.

<figure><img src="https://3645136414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIcJwwORgqOz8NHr15WEz%2Fuploads%2FuUUJThfhtsxSclPNJorG%2Fimage.png?alt=media&#x26;token=02cb80f7-45f7-4543-b1c8-0f2ce7c014ec" alt=""><figcaption></figcaption></figure>

**5.** In the **HTML Editor** window, click on **Edit**.

<figure><img src="https://3645136414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIcJwwORgqOz8NHr15WEz%2Fuploads%2F7q0ldHpLelWRYeRHxbYI%2Fimage.png?alt=media&#x26;token=abe011d6-5c52-4d7b-9b4f-a5a16d296379" alt=""><figcaption></figcaption></figure>

**6.** Make changes to the file and then click on **Save Changes**.

<figure><img src="https://3645136414-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIcJwwORgqOz8NHr15WEz%2Fuploads%2FOdupggH4pEvFJjcQWfFr%2Fimage.png?alt=media&#x26;token=47022836-d51b-47f1-8ca8-03f7db150869" alt=""><figcaption></figcaption></figure>

Your file has been successfully edited.
