You can host an HTML file without setting up a server or connecting a Git repository. On htmlhost, importing opens an editable preview; publishing is a separate step that gives you a public HTTPS address.
Start with a file or a complete folder
For a single page, save your document as index.html. If it uses a separate stylesheet or images, include those files too. An HTML file cannot upload assets that exist only on your computer.
A self-contained HTML file keeps its styles and browser scripts inside the document. You can paste or upload that file on its own. If it references local files, keep the folder together instead; one HTML page can still depend on several assets.
Download the example website (ZIP) to follow along. It contains a home page, an About page, a nested page, a stylesheet and an SVG image. No dependencies or build step are needed.

No website yet? Start from an HTML template instead, such as a landing page, portfolio or restaurant website. It opens in the same editor, ready to publish. Explore HTML hosting use cases for more project ideas.
Import, preview, then publish
- Open the homepage and choose Import Project. Paste a complete HTML document, or drop your HTML file, folder or ZIP.
- Wait for the editor to open. Importing has not published the site yet.
- Preview each page at desktop and phone widths. Check the navigation, images and any form fields. Remove private information from the files.
- Use Publish in the editor. Follow any sign-in or plan prompts and check the selected site lifetime.
- Wait for confirmation, then open the resulting HTTPS URL in another tab. This is the address to share.
A draft is not the same as a published site. After editing an already published project, use Update to send the changes to the live address.
Share and update the same address
Copy the confirmed public HTTPS address, not the editor URL or a file:// address from your computer. Open it in a private browser window to check what a visitor sees. Keep passwords, private information and API secrets out of published source files.
For the next revision, open the existing project, edit it and select Update. Share the same public address after checking the result. Creating another project gives you a separate site; saving a draft alone does not change what visitors see.
Keep CSS, images and page links working
hosting-starter/
index.html
about.html
services/consultation.html
assets/styles.css
assets/mark.svgFrom index.html, assets/styles.css resolves within the project. From a nested page, use ../assets/styles.css or a site-root path such as /assets/styles.css. Match filename case exactly: Mark.svg and mark.svg are different paths.
For a larger project, follow the multi-page static site walkthrough. Upload the project folder, not just its home page.
What is included for free?
A signed-in Free account includes 3 site creations in total, 500 MB of site storage, and its sites never expire. Deleting a site does not restore a creation slot. Pro includes unlimited sites. Custom domains are included with Pro or available as a paid add-on on Free. Check current plans and limits before publishing a permanent site.
Fix common publishing problems
- Unstyled page: include the stylesheet and check its path. A path starting with
file://or a local disk location will not work online. - Missing image: upload the actual file, check filename case and make sure any external image URL allows public access.
- Link opens a missing page: import the destination HTML file too. Test nested links from both the home page and the nested page.
- Changes appear only in the editor: publish or update, then check the live URL. Saving a draft alone does not update the public site.
- Form does not deliver: a visible form needs a submission destination. Connect it through the editor’s form settings and test delivery; appearance alone does not verify it.
Can I turn a local HTML file into a shareable link?
Yes. An address beginning with file:// points to a file on your own device, so sending that address will not share the page. Import the document and its assets, publish the project, and share the resulting HTTPS URL. Check it in a private browser window to confirm what a visitor sees.
Can I host HTML with CSS and JavaScript?
Yes. Keep your stylesheet and script alongside the HTML, or in their existing folders, and import the whole project. Browser JavaScript can provide menus, animations and other interactions. PHP, Node.js servers and custom SQL databases need a separate backend; uploading their source files does not run them. htmlhost collections can store typed site records, and Pro secure calls connect services that require a secret key.
What if my HTML came from an AI tool?
A complete HTML document follows the same upload process. A React component or framework project may need a static build first. The AI-generated HTML publishing guide shows how to prepare the output and check unfinished forms, images and scripts.
Made your report, presentation or prototype in Claude? See how to share Claude artifacts for export formats, native sharing options and a working HTML report you can try.
Prefer the terminal?
Install Node.js and npm, then install the CLI, sign in and deploy your project folder:
npm install -g htmlhost-cli
htmlhost login
cd path/to/your/project
htmlhost deploy .Approve the sign-in code in the browser opened by the CLI. For updates, conflicts and troubleshooting, use the terminal deployment tutorial.