---
title: "HTML to link"
description: "Paste an HTML page or choose a file and get a link to it in seconds. Free, no account, and the page runs as a real website at its own address."
canonical: "https://www.cool.computer/html-to-link"
last_updated: "2026-11-20"
---
# HTML to link

> Paste an HTML page or choose a file and get a link to it in seconds. Free, no account, and the page runs as a real website at its own address.

## How it works

Paste the HTML or choose an `.html` file, then press Get a link. The page goes online at an address like `quiet-river.cool.computer` and you can send that link to anyone. Scripts, styles and anything else in the file work as they do in a browser, because it is served as a website, not shown as a code preview.

The link is public and lasts 24 hours. To keep the page, press Keep this site and sign in: it moves to your free account, where it stays online, can be made private and shared by email, and can be updated at the same address.

One page here can be up to 64 KiB. For a larger page, a folder with images and scripts, or a name you choose, use the `cool` CLI:

```sh
cool publish ./site --name my-site
```

## From an AI agent

If Claude, ChatGPT, Claude Code, Codex or Cursor wrote the HTML, it can publish the page for you and update it later. See [how to deploy from Claude Code](/blog/deploy-website-from-claude-code), [Codex](/blog/deploy-website-from-codex) or [Cursor](/blog/deploy-website-from-cursor), or connect [the MCP server](/blog/mcp-server-publish-website) to a chat app.

## Questions

### How do I turn an HTML file into a link?

Paste its contents above or choose the file, and press Get a link. You get a URL that opens the page in any browser.

### Is it free?

Yes. Publishing here needs no account and no card. A free account keeps up to 20 sites. See [pricing](/pricing).

### How long does the link last?

24 hours, unless you keep the site by signing in. A kept site stays online.

### Can I make the page private?

After you keep it, yes: make it private and invite people by email. They sign in to open it.

### Does JavaScript in the page run?

Yes. The page is served as a website at its own address, so scripts and styles run in the visitor's browser.

### Can I upload CSS and images too?

This page takes one HTML file, so put styles and scripts inside it. To publish a folder, use the CLI: [how to put an HTML file online](/blog/host-html-file-free).

### What should I not publish here?

Anything private. Until you keep the site and make it private, anyone with the link can open it. See the [terms](/terms).
