<!-- Free HTML Hosting for a Single Page | Demox -->
Source: https://www.demox.site/free-html-hosting

Single HTML file · Updated 2026-09-14 · Demox team

# Free hosting for a single HTML file

**Direct answer:** Demox can host one HTML file. In the web console, choose the .html file. The CLI command is demox deploy ./index.html. If the page links to CSS, images, or fonts on disk, those links will 404. Put the assets in the same folder, switch to relative paths, and upload a ZIP with index.html at the root instead. This is free on the public pricing page. It is meant for prototypes, AI one-pagers, and review links, not for a multi-service app.

## How to do it

1. **Step 1.** Save the page as a .html file.
2. **Step 2.** Inline assets, or zip the folder with relative paths.
3. **Step 3.** Upload the file or run demox deploy ./page.html.
4. **Step 4.** Share the HTTPS URL.

## FAQ

### Can I upload page.html that imports ./style.css?

Upload a ZIP that contains both files and names the entry index.html.

### Is there a custom domain?

Official subdomains such as name.demox.site are documented in the CLI.

## 免费托管一个 HTML 文件

网页端直接选 .html。有本地 CSS 或图片时，改成相对路径后打 ZIP 上传。

### 按这个顺序做

1. **01** 把页面存成 .html 文件。
2. **02** 资源内联，或按相对路径打 ZIP。
3. **03** 上传文件，或执行 demox deploy ./page.html。
4. **04** 分享 HTTPS 地址。

### 常见问题

### page.html 引用了 ./style.css 怎么办？

把两个文件打进同一个 ZIP，入口文件名为 index.html。

### 有自定义域名吗？

官方子域名如 name.demox.site，用法见 CLI 文档。

## Related Demox pages

- [Free static website hosting with CLI and MCP](https://www.demox.site/free-static-site-hosting)
- [Deploy AI-generated websites in seconds](https://www.demox.site/ai-website-deployment)
- [Deploy a website from MCP](https://www.demox.site/mcp-website-deployment)
- [Deploy a static site from the CLI](https://www.demox.site/cli-static-site-deploy)
- [You have an AI-generated page. How do you publish it?](https://www.demox.site/deploy-ai-generated-website)
- [Deploy a website from Claude Code](https://www.demox.site/claude-code-deploy-website)
- [CLI and MCP docs](https://www.demox.site/doc)
- [When to use Demox](https://www.demox.site/when-to-use-demox)

[Upload and publish](https://www.demox.site/console/projects) · [Read the docs](https://www.demox.site/doc)
