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.
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.
Open dochost — no account needed.
- 2.
Click Upload and select your HTML file, or drag it onto the page.
- 3.
Copy the generated URL and share it anywhere; the link works for seven days free, or permanently on a paid plan.
Ein echtes Beispiel
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.
Fragen zu 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.pngonly exists on your machine. Use a fullhttps://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.htmlis 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
fetchto 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”.
What “public” means for your link
Publishing gives you a public URL: anyone who has the link can open the page in a browser, with no account and no app. What you control is who else can come across it.
- Public (the default) — the page can appear on dochost’s Explore feed. On the free plan the link lasts seven days.
- Private — kept off Explore; only people you send the link to will see it. A free private link lasts three days.
- Password — on a paid plan you can require a password, so even someone who finds the link cannot read the page without it.
A public link is not the same as being on Google. Free pages are served with noindex, because they expire; a permanent page on a paid plan can opt in to search engines. How indexing works for an HTML website walks through the conditions.
Links dauerhaft behalten
Kostenlose öffentliche Seiten bleiben zunächst 7 Tage online, private Seiten 3 Tage. Mit einem bezahlten Tarif sind dauerhafte Links möglich; für Testphasen gelten eigene Ablaufregeln.
Preise ansehenÄhnliche Anwendungsfälle
- Free HTML hosting, no signupPublish from the homepage and keep the link 7 days free, or forever on a paid plan.
- Free HTML hosting — get a live link without a hosting accountMost “free HTML hosting” means a signup form, FTP, and an ad banner on your page. For a single self-contained HTML file, you need none of that — paste or upload it and get a clean public URL in seconds.
- HTML file to link converterUpload a .html file or paste the markup and get a clean, shareable URL in seconds — no server setup, no attachment headaches.
- Make a temporary URL that expires on its ownPaste a page, get a link that works for seven days and then stops. Nothing to delete afterwards, no account needed.
- Where to host a vibe-coded app when you just want the linkThe tool wrote the whole thing and now it wants a deploy pipeline. If the app is one self-contained file, paste it here and skip that part.
- Turn an HTML file into a live websiteHave an HTML file or a block of HTML? Turn it into a real website at a public URL in seconds — no hosting account, no domain, no deploy.