Publish an HTML website for free — get a link in seconds

Upload your HTML file and get a shareable URL. No hosting account, no terminal, no configuration.

Upload your HTML file

Get a public URL in seconds. Free links last 7 days.

HTMLかMarkdownを貼り付けまたはここにファイルをドロップ.mdと.htmlに対応、最大50 MB · Freeプランは1 MBまで
公開範囲

You finished building your page. Now you need a URL so someone else can open it in a browser — not a local file path, an actual web address. dochost lets you upload a single HTML file and immediately get a public link you can share. There is no sign-up form blocking you, no DNS to configure, and no build step. Free links stay live for seven days, which is enough time for a review, a submission, or a quick demo. If you need the link to last indefinitely, a paid plan makes it permanent. That is the whole product.

How to publish your HTML file

  1. 1.

    Open dochost — no account needed.

  2. 2.

    Click Upload and select your HTML file, or drag it onto the page.

  3. 3.

    Copy the generated URL and share it anywhere; the link works for seven days free, or permanently on a paid plan.

実際の例

Sarah is three weeks into a coding bootcamp. Her assignment is a single-page personal portfolio: one index.html file with all the CSS written in a <style> block at the top, a short JavaScript snippet that toggles a dark-mode class, and sections for her name, a brief bio, and two project descriptions. The file is about 180 lines long. Everything she built lives in that one file.

Her instructor asked for a live URL by 11 PM so the cohort can peer-review each other’s work. Sarah has heard of GitHub Pages but has not set up a repository for this project and does not want to learn the Pages workflow under a time crunch. She opens dochost, drags her index.html onto the upload area, and within a few seconds she has a URL like dochost.co/d/abc123. She pastes it into the class Discord, her instructor opens it, the dark-mode toggle works, and the page looks exactly as it does when she opens the file locally. The link stays active for seven days — well past the assignment deadline. She did not create an account, did not touch a terminal, and was done in under two minutes.

publish an HTML website for freeについてのよくある質問

What exactly is free, and what is the catch?

Uploading and publishing is free with no account required. The catch is straightforward: free links expire after seven days (3 days if published as private). After that the URL stops working and the file is deleted from our servers. There is no surprise charge — the link just goes offline. If you need the page to stay up permanently, a paid plan removes the expiry. There are no bandwidth overage fees or hidden storage costs. The free tier is meant for short-lived sharing: reviews, submissions, quick demos.

I have multiple HTML files — can I publish the whole site?

dochost publishes one self-contained HTML file per upload. If your project is split across several files — a separate styles.css, an about.html, image assets in a folder — it will not work correctly here. dochost is not a static-site host with a build pipeline; it serves a single page. If everything you need is inlined into one file (embedded CSS, embedded JS, base64 images), it will publish fine. For multi-file projects you would need a service like GitHub Pages or Netlify that understands a directory structure.

Will JavaScript in my HTML file actually execute on the published page?

Yes. dochost serves your file as a normal HTML document in the browser, so the browser handles JavaScript the same way it would if you opened the file locally. Inline scripts and scripts loaded from public CDN URLs both run. What will not work is anything that requires a backend: server-side code, Node.js, PHP, database calls, or API routes. dochost has no server-side runtime. Pure client-side JavaScript — DOM manipulation, fetch calls to external APIs, UI toggles — works without changes to your file.

Can I use my own domain name instead of a dochost URL?

Pointing your own registered domain at a single uploaded page is not the focus of the free tier. On paid plans you can set a custom slug — a short, readable path — and Max plans add a custom subdomain. If a fully branded apex domain like portfolio.yourname.com is essential, a host built around custom domain mapping such as Netlify or Vercel is the better fit. dochost is optimized for speed of publishing and sharing, not full hosting customization.

What platform can I just put HTML into to publish a draft website?

This one, if the draft is a single self-contained file — paste or upload it and it is live at a URL in a few seconds, with no repository, no build step and no DNS. Be clear about the trade-off, though: dochost publishes one HTML document, not a multi-page project with a /css folder and its own routing. If your draft is a folder of files that reference each other, you want a static host like Netlify or Cloudflare Pages instead. If it is one file you need a stakeholder to look at this afternoon, a repository and a build pipeline are a lot of ceremony for a link. If the file is already finished, the HTML file to link converter is the same publish step with the upload box open by default.

Before you publish: check that it is one file

Most HTML that “breaks” after publishing worked locally because the browser could reach other files on your computer. A published page cannot. Run through this before you upload:

  • Styles and scripts are inside the file. A <link href="styles.css"> or <script src="app.js"> pointing at a file next to yours will 404. Paste the contents into a <style> or <script> block, or point at a public CDN URL.
  • Images load from a public URL or are embedded. A path like images/logo.png only exists on your machine. Use a full https:// address, or embed small images as base64 data URIs. Base64 makes an image about a third larger, which counts toward the size limit.
  • It fits the size limit. Free pages can be up to 1 MB; Pro raises that to 10 MB and Max to 50 MB. Text-only pages are rarely close; embedded photos are what push a file over.
  • Links to your other pages are full URLs. about.html is a second file, and dochost publishes one page at a time. Publish it separately and link to its URL, or use a static host if the project is really a multi-page site.
  • Nothing needs a server. Forms that post to PHP, Node code and database calls have nothing to run on. Client-side JavaScript, including fetch to public APIs, works.

If an AI assistant wrote the page, it can fix all of this for you: ask it to “put everything in one self-contained HTML file”.

リンクをずっと残すには

無料の公開ページは最初7日間、非公開ページは3日間表示されます。有料プランなら無期限のリンクにできます。トライアル中の有効期限は別のルールです。

料金を見る

関連する使い方