HTML to URL
Paste HTML or drop the file and get a URL you can send to anyone, in about a second. No account. A passcode is on by default, and the link lasts 24 hours unless you keep it, which is free.
How to convert HTML to a URL
- Paste the HTML, or drop the file. The box above takes code, an .html file, a Markdown file or a zip.
- Press Publish private link. The URL appears in about a second.
- Copy it. Copy link copies the URL. Copy link and passcode copies both.
- Send it. Whoever opens it sees the page, not the code. With the passcode on, they type it once.
What the URL looks like
The URL is an https address that starts with stacktr.ee/p/ and ends in 22 random letters and numbers. Those characters are the private part: the URL is not listed anywhere, and there is no pattern to guess. The passcode is a second lock, so a forwarded link alone does not open the page.
| About the URL | What to expect |
|---|---|
| Who can open it | Anyone you send it to, in any browser, with no account. With the passcode on, they type it once. |
| How long it works | 24 hours with no account. In a free account, 7 days, or 30 days after another person's latest visit, up to 90 in total. On Solo it does not expire. |
| When you edit the page | Once the page is in an account, replacing its file keeps the URL, and the link you sent shows the new version. |
| On your own domain | From Solo, at $19 a month, which includes one custom domain. |
| In search | Never. Pages are not indexed. |
Other things HTML to URL can mean
The phrase covers more than one job. If you came for one of these instead:
- A data URL. A data URL starts with
data:text/htmland carries the page inside the address itself. It needs no host, but it is as long as the page, and modern browsers block opening one as a page, so it is no use for sending. - URL-encoding. To carry HTML inside another URL, its special characters are swapped for codes:
<becomes%3Cand>becomes%3E. In JavaScript,encodeURIComponent()does this. It does not put a page online. - An HTML link to a URL. The other way around: to make a URL clickable in HTML, wrap it in an anchor tag,
<a href="https://example.com">My page</a>.
A private URL, not a public website
The URL opens a real page for anyone you send it to. It is not a public website. Stacktree keeps every page out of Google and away from AI crawlers on purpose, so nobody arrives at your URL from a search.
If you want an address people can find, with a name you chose, use a public static host. GitHub Pages, Netlify and Cloudflare Pages are all free for public sites.
Sending the URL
Paste it into an email, a chat or a document like any other link. With the passcode on, send the passcode in a separate message, so a forwarded link alone opens nothing. Pasted into Slack or Teams, a page with a passcode shows as a locked graphic, with no title and no description.
If an assistant wrote the HTML, it can make the URL too. Add Stacktree to ChatGPT or Claude and ask it to publish, and it hands back the URL in the chat.
What a URL 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 do I convert HTML to a URL? +
How do I turn an HTML file into a link? +
What does the URL look like? +
Who can open the URL? +
Does the URL change when I edit the HTML? +
Can I turn HTML code into a link without saving a file? +
Is an HTML to URL converter free? +
Can people find my URL on Google? +
Can I put the HTML in a data URL instead? +
What can I not publish here? +
Related
- Share an HTML file with a client Send a link instead of an attachment, and see when it was opened.
- HTML to website What turning code into a live page means, for one file or a folder.
- Free HTML hosting What the free plan covers, how long a page stays up, and other free hosts compared.
- Password-protect an HTML page What the passcode does, and the other ways to lock a single page.
- HTML viewer See the HTML as a page before you make the link. Nothing is uploaded.
- Host Claude HTML The same tool for a page Claude made, with how to get the file out of Claude.
Sources and further reading
- MDN: What is a URL? ↗ What a URL is and what each part of one does.
- MDN: data: URLs ↗ How a data URL carries a file inside the address, and why browsers block opening one as a page.
- MDN: encodeURIComponent() ↗ The JavaScript function that encodes text, HTML included, so it can travel inside a URL.
- MDN: the anchor element ↗ The HTML tag that turns a URL into a link.