> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/websites/file-manager/create-files-and-folders.md).

# Create Files and Folders

Create new files and folders on your website with File Manager in hPanel.

New folders are created on the server right away. New files are pending changes — they appear on your website after you [deploy](https://docs.hostinger.com/websites/file-manager/edit-and-deploy.md).

## Create a file or folder

{% stepper %}
{% step %}

### Pick where it goes

In the file tree, click the folder you want the new item in — for website files, that's `public_html` or a folder inside it. If a file is selected, the new item goes in that file's folder.
{% endstep %}

{% step %}

### Open the New menu

Click **New** at the top, then **New file** or **New folder**.

<figure><img src="https://2590163678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZo6eXGMjwp7EOibdxJ6%2Fuploads%2Fgit-blob-0e4cd34112913fcd32a0f90e6e8956b833d73c69%2Fnew-menu.png?alt=media" alt="New menu open with New file and New folder"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Name it

Type the name in the file tree and press `Enter`. For a file, include the extension, such as `contact.html` or `style.css`. Press `Esc` to cancel.

<figure><img src="https://2590163678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZo6eXGMjwp7EOibdxJ6%2Fuploads%2Fgit-blob-aecdafdce4b683b4c6377770c122ddd3705e41bc%2Fnew-folder-name.png?alt=media" alt="New folder name being typed in the file tree"><figcaption></figcaption></figure>

A new file opens in the editor. Add its content, then [deploy](https://docs.hostinger.com/websites/file-manager/edit-and-deploy.md) to publish it.
{% endstep %}
{% endstepper %}

## Other ways to create items

* **From a folder in the tree** — hover over the folder and click the **New file** or **New folder** icon on its row.
* **From the right-click menu** — right-click a folder and choose **New file** or **New folder**. On a file, the new item goes in the same folder as that file.
* **When no file is open** — click **New file** in the middle of the editor.

<figure><img src="https://2590163678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZo6eXGMjwp7EOibdxJ6%2Fuploads%2Fgit-blob-bf18487ddf730a2b5210764cdbdd749d71f2cd09%2Ftree-row-buttons.png?alt=media" alt="New file and New folder icons on a folder row in the file tree"><figcaption><p>Hover over a folder to show its <strong>New file</strong> and <strong>New folder</strong> icons.</p></figcaption></figure>

***

*Last updated: November 3, 2026*
