# HTML to website: make HTML code a live page, free · Stacktree

Source: https://stacktr.ee/html-to-website

[Skip to content](#main) PFrom Product Hunt? Your first pages are free, no card. Code `PRODUCTHUNT` takes 50% off your first month of Studio.[Start free &rarr;](https://app.stacktr.ee/?join=1&from=producthunt)

&times;   A Stacktree customer sent you. Your first month is 50% off on any plan, taken off at checkout. [Start free &rarr;](https://app.stacktr.ee/?join=1&from=referral)

 &times;      [stacktr.ee](/)   [Examples](/#proof) [Ideas](/ideas) [How we use it](/how-we-use-stacktree) [Pricing](/pricing) [Security](/security) [Log in](https://app.stacktr.ee) [Publish one](https://app.stacktr.ee/?join=1)          Free. No account.

# HTML to website

Paste HTML code or drop the file, and it is a live page at its own address in about a second. No account. A passcode is on by default, and it lasts 24 hours unless you keep it, which is free.

    Paste HTMLorChoose a fileWho can open itPasscodePasscode visitors type to open the pageVisitors type it to open the page. Change it if you like.Publish private linkNo account. The page lasts 24 hours unless you keep it. Up to 10 MB, 20 pages a day from one network, and no pages that ask for passwords or payment details for another site.

## How to turn HTML code into a website

  - Paste the code. Copy all of it, from <!doctype html> to </html>, into the box above. If it is saved as a file, drop the file instead.
 - Publish it. Press Publish private link. About a second later the page is live at its own https address.
 - Open the link. It works in any browser, on a phone too. With the passcode on, the page asks for it once. When you send the link to someone, send the passcode separately.
 - Keep it, if it should last. The page is up for 24 hours. Keep it in a free account holds it at the same address, so the link keeps working.

## What turning HTML into a website means

 HTML code is already a web page. What it lacks is an address. On your computer the file opens from your own disk, and nobody else can reach it. A host stores the same code on a server and gives it a link, and that is the whole conversion. Nothing is turned into another format.

   What changesOnce it is live here   The addressA link that starts with https, in place of a path on your disk Who can open itAnyone you send the link to, in place of only you On a phoneOpens in the browser like any page, with no file to download The codeStill HTML, CSS and JavaScript. Nothing is converted.   Want to see the page before it has an address? [Open the code in the viewer](/html-viewer). It draws the page in your browser and uploads nothing.

## One file, or a folder of files

  - One file. A page with its CSS and JavaScript inside the .html file is the simple case. Paste it or drop it.
 - A folder. If the page uses a separate style.css, scripts or an images folder, zip the folder that holds index.html and drop the zip. The files go live together at one link.
 - Several pages. Put them in the same zip. index.html is the page the link opens, and the others sit beside it.
 - Markdown. A .md file works too. It is turned into a styled page.
  A zip can hold up to 1,000 files. System files, `.git` and `node_modules` are left out of it for you.

## What runs once it is live

 The page is served as static files, under a policy that keeps one person's page from reaching into another's.

  - Works. CSS and JavaScript written into the file or zipped beside it, so buttons, tabs and charts behave as they did on your computer.
 - Loads. Fonts from Google Fonts or Bunny Fonts, and libraries from cdnjs, the Tailwind CDN, or npm packages on jsDelivr and unpkg.
 - Does not load. Other scripts and images from other sites. Calls from the page to another server are blocked.
 - Does not run. Server code such as PHP. There is no database behind the page.
  After you publish, the result lists anything on your page that will not load for visitors.

## A private link, not a public website

 What you get is a real page at an https address, and it opens for anyone you send the link to. It is not a public website in the search sense. Stacktree keeps every page out of Google and away from AI crawlers on purpose, so nobody finds yours unless you send it.

   You wantWhere it belongs   A page to show one person, a class or a client todayThe box on this page A site that strangers find by searchingA public static host. GitHub Pages, Netlify and Cloudflare Pages are all free for public sites. A private page at an address on your own domainSolo, at $19 a month, which includes [one custom domain](/custom-domains)

## If an AI wrote the HTML

 Paste what it gave you into the box above. If the page came from Claude, [host Claude HTML](/host-claude-html) shows where the file is. If you do this often, add Stacktree to [ChatGPT](/chatgpt) or [Claude](/claude-ai-connector) and say "publish this": the assistant hands back the link, and the next version replaces the page at the same address.

## What it costs

  - No account: free. A page lasts 24 hours and can be up to 10 MB.
 - Free account: 3 pages, 25 MB each. A page lasts 7 days, or once someone else opens it, 30 days after their latest visit, up to 90 days in total. Free pages carry a small Stacktree badge.
 - Solo, $19 a month. 25 pages live at a time that never expire, 250 MB each, one custom domain, and no badge.
  The passcode is on every one of these. Full detail is on [pricing](/pricing).

FAQ

## Frequent questions

     How can I convert HTML to a website? +  Put the HTML on a host, which gives it a web address. Here you paste the code, or drop the .html file, in the box on this page and press Publish private link. About a second later it is a live page that opens in any browser. The code stays HTML: hosting only gives it an address.   How do I turn HTML code into a website for free? +  Paste the code into the box on this page and publish it. With no account the page is free and stays up for 24 hours. Keep it in a free account, which holds 3 pages, and it lasts 7 days, or longer once someone else has opened it. Pages that never expire are on Solo, at $19 a month.   Do I need to save my HTML code as a file first? +  No. Paste the code straight into the box, from the doctype line at the top to the closing html tag, and publish. If you already have a file, drop it instead. Not sure the code is complete? [Open it in the viewer](/html-viewer) first and look at the page. Nothing is uploaded there.   Do I need a domain name or web hosting? +  No. Publishing here gives the page an https address on stacktr.ee, so there is no domain to buy, no server to rent and nothing to set up. If you want the page at an address of your own later, such as pages.yourcompany.com, Solo at $19 a month includes [one custom domain](/custom-domains).   Will my CSS and JavaScript still work? +  Yes, when they are written into the HTML file or zipped up beside it. Fonts from Google Fonts or Bunny Fonts load, and so do libraries from cdnjs, the Tailwind CDN, and npm packages on jsDelivr and unpkg. Other scripts from other sites do not load. The publish result lists anything that will not load for visitors.   How do I turn a folder of HTML, CSS and image files into a website? +  Zip the folder that holds index.html and drop the zip in the box. The stylesheets, scripts, images and other pages inside it come along at the same link, and index.html is the page the link opens. A zip can hold up to 1,000 files, and up to 10 MB in total when you publish with no account.   Will my website show up on Google? +  No. Every page here sits at an unguessable link, is left out of every listing, and tells search engines and AI crawlers to stay out. It opens for the people you send it to, and nobody else finds it. A site that should rank in search belongs on a public static host such as GitHub Pages, Netlify or Cloudflare Pages.   Does the website work on a phone? +  Yes. The link opens in the browser on any phone, tablet or computer, with nothing to install and no account. How it looks on a small screen depends on your HTML: a page written to fit narrow screens will, and a fixed-width page needs zooming. You can check it at phone width in the [viewer](/html-viewer) first.   How do I make a website from HTML that ChatGPT or Claude wrote? +  Ask the assistant for one self-contained HTML file, with the CSS and JavaScript inside it, then paste that code into the box on this page. For Claude, [host Claude HTML](/host-claude-html) shows where to find the file. With Stacktree added to ChatGPT or Claude, the assistant can publish the page itself and hand back the link.   What can I not publish here? +  Pages that ask for passwords, sign-in codes or payment details on behalf of another site are refused before they go live, and so are pages carrying personal data such as ID numbers. A page can be up to 10 MB, and one network can publish 20 pages a day without an account.
Keep reading

## Related

   -  [ Free HTML hosting What the free plan covers, how long a page stays up, and other free hosts compared. ](/free-html-hosting)
-  [ HTML to URL What the link looks like, who can open it, and how long it works. ](/html-to-url)
-  [ Host Claude HTML The same tool for a page Claude made, with how to get the file out of Claude. ](/host-claude-html)
-  [ HTML viewer See the code as a page before it goes online. Nothing is uploaded. ](/html-viewer)
-  [ Share an HTML file with a client Send a link instead of an attachment, and see when it was opened. ](/share-html-file-with-client)
-  [ Custom domains Put a page at an address on your own domain, from Solo. ](/custom-domains)

References

## Sources and further reading

   -  [ MDN: What is a web server? ↗ What a host does with HTML files, and how a static server differs from one that runs code. ](https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_web_server)
-  [ MDN: Publishing your website ↗ The ways to put a finished site online, including a public one on GitHub Pages. ](https://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started/Your_first_website/Publishing_your_website)
-  [ GitHub Docs: GitHub Pages ↗ Free hosting for a public site kept in a repository. ](https://docs.github.com/en/pages)
-  [ MDN: Content-Security-Policy ↗ The browser rule a host uses to decide which scripts, fonts and images a page may load. ](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy)
       stacktr.ee  [How we use it](/how-we-use-stacktree) [Client project tracker](/client-project-tracker) [Weekly work report](/weekly-work-report) [Tester kit](/tester-kit) [Page video](/page-video) [Ask this page](/ask-this-page) [Client feedback](/client-feedback-loop) [Client spaces](/client-spaces) [Ideas](/ideas) [Templates](/templates) [Use cases](/use-cases) [Integrations](/agents) [Alternatives](/alternatives) [About](/about) [Blog](/blog) [Changelog](/changelog) [Pricing](/pricing) [Security](/security) [FAQ](/faq) [Made with Stacktree](/made-with)  Building with AI agents? See the [developer docs &rarr;](/developers)

---
Full markdown summary of the Stacktree marketing surface: https://stacktr.ee/llms-full.txt
