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.
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 changes | Once it is live here |
|---|---|
| The address | A link that starts with https, in place of a path on your disk |
| Who can open it | Anyone you send the link to, in place of only you |
| On a phone | Opens in the browser like any page, with no file to download |
| The code | Still HTML, CSS and JavaScript. Nothing is converted. |
Want to see the page before it has an address? Open the code in the 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 animagesfolder, zip the folder that holdsindex.htmland drop the zip. The files go live together at one link. - Several pages. Put them in the same zip.
index.htmlis 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 want | Where it belongs |
|---|---|
| A page to show one person, a class or a client today | The box on this page |
| A site that strangers find by searching | A public static host. GitHub Pages, Netlify and Cloudflare Pages are all free for public sites. |
| A private page at an address on your own domain | Solo, at $19 a month, which includes one custom domain |
If an AI wrote the HTML
Paste what it gave you into the box above. If the page came from Claude, host Claude HTML shows where the file is. If you do this often, add Stacktree to ChatGPT or Claude 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.
Frequent questions
How can I convert HTML to a website? +
How do I turn HTML code into a website for free? +
Do I need to save my HTML code as a file first? +
Do I need a domain name or web hosting? +
Will my CSS and JavaScript still work? +
How do I turn a folder of HTML, CSS and image files into a website? +
Will my website show up on Google? +
Does the website work on a phone? +
How do I make a website from HTML that ChatGPT or Claude wrote? +
What can I not publish here? +
Related
- Free HTML hosting What the free plan covers, how long a page stays up, and other free hosts compared.
- HTML to URL What the link looks like, who can open it, and how long it works.
- Host Claude HTML The same tool for a page Claude made, with how to get the file out of Claude.
- HTML viewer See the code as a page before it goes online. Nothing is uploaded.
- Share an HTML file with a client Send a link instead of an attachment, and see when it was opened.
- Custom domains Put a page at an address on your own domain, from Solo.
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.
- MDN: Publishing your website ↗ The ways to put a finished site online, including a public one on GitHub Pages.
- GitHub Docs: GitHub Pages ↗ Free hosting for a public site kept in a repository.
- MDN: Content-Security-Policy ↗ The browser rule a host uses to decide which scripts, fonts and images a page may load.