# How to Upload HTML File to WordPress

> To upload an HTML file to WordPress, navigate to Pages in your Admin Dashboard, select a page, open the block inserter, and search for the HTML or File block. Add the block, manually copy and paste code or select upload for the file, and click Save.

Canonical: https://livedemo.ai/tutorials/how-to-upload-html-files-to-wordpress/
Apps: WordPress
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a5096ab56e05a00ffd4b2/preview?step=1

## Steps

1. Navigate to your Admin Dashboard and click 'Pages' in the left sidebar.
2. Choose an existing page and click on it.
3. Click the 'Block inserter.'
4. In the search bar, search for 'HTML' button.
5. Click 'Custom HTML' and add it to your site.
6. You may also choose to search for 'File' and add it to your site.
7. This block will allow you to input HTML, but you'll have to copy and paste it manually into a code block.
8. In the module that appears, select the option to 'upload'. You can also add the file to your 'Media Library'.
9. Click 'Save' to apply changes.
10. That's it! You have successfully uploaded the HTML file to WordPress.
