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
- Step 1. Save the page as a .html file.
- Step 2. Inline assets, or zip the folder with relative paths.
- Step 3. Upload the file or run demox deploy ./page.html.
- 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 上传。
按这个顺序做
- 01 把页面存成 .html 文件。
- 02 资源内联,或按相对路径打 ZIP。
- 03 上传文件,或执行 demox deploy ./page.html。
- 04 分享 HTTPS 地址。
常见问题
page.html 引用了 ./style.css 怎么办?
把两个文件打进同一个 ZIP,入口文件名为 index.html。
有自定义域名吗?
官方子域名如 name.demox.site,用法见 CLI 文档。