# HTML to URL: turn an HTML file into a link, free · Stacktree

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

[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 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.

    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 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 URLWhat to expect   Who can open itAnyone you send it to, in any browser, with no account. With the passcode on, they type it once. How long it works24 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 pageOnce the page is in an account, replacing its file keeps the URL, and the link you sent shows the new version. On your own domainFrom Solo, at $19 a month, which includes [one custom domain](/custom-domains). In searchNever. 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/html and 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 %3C and > 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](/chatgpt) or [Claude](/claude-ai-connector) 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](/pricing).

FAQ

## Frequent questions

     How do I convert HTML to a URL? +  Paste the HTML into the box on this page, or drop the .html file, and press Publish private link. You get a URL in about a second, with no account. Copy it and send it: whoever opens it sees the page itself in their browser, not the code and not a download.   How do I turn an HTML file into a link? +  Upload the file to a host, and the host gives you the link. Here you drop the file in the box, press Publish private link, then press Copy link. Send that link by email or chat in place of the file. An attached .html file arrives as a download, and a link opens as a page.   What does the URL look like? +  It is an https address on stacktr.ee that ends in 22 random letters and numbers. Those characters keep it private: the URL is not listed anywhere and cannot be guessed. From Solo, at $19 a month, a page can sit at an address on your own domain instead, such as reports.yourcompany.com.   Who can open the URL? +  Anyone you send it to, in any browser, on a computer or a phone. They need no account and install nothing. If you left the passcode on, they type it once and the page opens. Turn the passcode off before you publish if everyone who has the link should get straight in.   Does the URL change when I edit the HTML? +  Not once the page is in a free account. Replace its file from the dashboard and the URL you already sent shows the new version, so nothing needs sending again. Replacing a page does not use up another of your 3 free pages. Publishing again from this page with no account makes a new URL each time.   Can I turn HTML code into a link without saving a file? +  Yes. Copy the whole of the code, paste it into the box and publish. The box takes pasted HTML just as it takes a file, so code from ChatGPT, Claude or an editor goes straight in. If you have several files, zip the folder that holds index.html and drop the zip to get one link for all of them.   Is an HTML to URL converter free? +  This one is. With no account the URL costs nothing and works for 24 hours. A free account keeps 3 pages for 7 days each, and longer once someone else has opened them. A URL that never expires is on Solo, at $19 a month, which keeps 25 pages live at a time.   Can people find my URL on Google? +  No. A URL made here is never listed and never indexed, and every page tells search engines and AI crawlers to stay out. People reach it only because you sent it. That is what a private link is for. If the page should be found in search, publish it on a public static host such as GitHub Pages instead.   Can I put the HTML in a data URL instead? +  Not for a link you send. A data URL packs the whole page into the address itself, so it needs no host. But the address is as long as the page, and MDN notes that modern browsers block opening a data URL as a page. For a link someone else can click, the HTML has to be hosted.   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

   -  [ 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)
-  [ HTML to website What turning code into a live page means, for one file or a folder. ](/html-to-website)
-  [ Free HTML hosting What the free plan covers, how long a page stays up, and other free hosts compared. ](/free-html-hosting)
-  [ Password-protect an HTML page What the passcode does, and the other ways to lock a single page. ](/password-protect-html-page)
-  [ HTML viewer See the HTML as a page before you make the link. Nothing is uploaded. ](/html-viewer)
-  [ Host Claude HTML The same tool for a page Claude made, with how to get the file out of Claude. ](/host-claude-html)

References

## Sources and further reading

   -  [ MDN: What is a URL? ↗ What a URL is and what each part of one does. ](https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL)
-  [ MDN: data: URLs ↗ How a data URL carries a file inside the address, and why browsers block opening one as a page. ](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Schemes/data)
-  [ MDN: encodeURIComponent() ↗ The JavaScript function that encodes text, HTML included, so it can travel inside a URL. ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent)
-  [ MDN: the anchor element ↗ The HTML tag that turns a URL into a link. ](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a)
       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
