htmlhost.co
FreePaste a full page or a snippet, CSS and JavaScript included→

Paste HTML and get a shareable link.

Paste your HTML code below to see it as a real web page. When it looks right, publish it and share one HTTPS link that opens on any phone or computer. Change the page later and the same link shows the update.

Opens a preview first. Nothing is public until you publish.
  • Preview before anything is public
  • Free account, no credit card
  • Update anytime, same link
How it works

Paste HTML code, preview it, share the link.

Sharing an HTML page online takes three steps and about a minute. Nothing is public until you choose to publish.

  1. 1

    Paste your HTML

    No account needed

    Paste a complete page or just a snippet into the box above. Styles in <style> tags and scripts in <script> tags come with it, and the preview opens as soon as you paste.

  2. 2

    Preview and polish

    No account needed

    See it at computer and phone sizes. Click any text to change it, edit the code directly, or describe a change and let the AI make it.

  3. 3

    Publish and share

    Free account

    Press Publish and sign in with Google, GitHub or your email. Your page goes live at its own HTTPS address, ready to copy or send from your phone's share menu.

What you can paste

Full pages, snippets and HTML written by AI.

Anything a browser can show from a single HTML file can become a page with its own link.

Works when you paste it

  • A complete HTML page, from <!doctype html> to </html>
  • A snippet: a table, a card, a chart or a sign-up form
  • CSS in <style> tags and JavaScript in <script> tags
  • Images, fonts and libraries linked by a full https:// address
  • HTML written by ChatGPT, Claude, Gemini and other AI tools
  • Forms, which send messages to your inbox once you connect them in the editor

Good to know

  • iImages saved on your computer aren't part of a paste. Drop the whole folder or a ZIP into the same box instead.
  • iServer code such as PHP or Node.js doesn't run. Pages are HTML, CSS and browser JavaScript.
  • iA React or Vue component needs to be built into plain HTML first.
  • iVisitors can see everything in your HTML, so never paste passwords or private API keys.

Tip: give your page a <title>, which names your link and the browser tab, and add this line inside <head> so it fits phone screens:

<meta name="viewport" content="width=device-width, initial-scale=1">
After you share it

A pasted page isn't a throwaway copy. It's a real web page you own: update it, rename it, take it down or bring it back.

The same link after every edit

Open the page in the editor, change anything and press Update. Everyone you sent the link to sees the new version at the same address.

Online until you decide otherwise

Sites never expire by default. You can optionally set a site to expire after 1 day, 7 days or 30 days. A short lifetime suits a demo that should disappear on its own, and an expired page can be published again.

Pro

Earlier versions, kept

Each publish is saved as a version. With Pro you can preview any earlier version and put it back live (last 100 versions, kept up to 1 year).

An address you can change

Your address is based on the page's title, like spring-menu.htmlhost.co. Rename it in the site's settings; the old address then stops working, so rename before you share widely.

Take it down at any time

Unpublish the page to take it offline while keeping your files and history, then publish it again whenever you like. Or delete it for good.

Pro

Password protection

Add a password so only the people you give it to can open the page.

Your own domain

Show the page at your own domain, like menu.yourcafe.com, with HTTPS set up for you. Included with Pro, or a paid add-on on Free.

Proper link previews

When you share the link in a chat or on social media, the preview shows the title, description and image set in your page's meta tags.

Yours to download

Export the page as a ZIP from its settings at any time, together with any form messages it has received.

Want a better preview when you share the link? Check your title, description and image with the meta tags preview tool.

Which one do you need?

Show the page, not just the code.

Sharing HTML can mean three different things. Here's where each one fits.

Code-sharing sites

Show your HTML as text for others to read or copy. Useful when you're asking about the code itself, but nobody sees the page it makes.

This page

Paste HTML, share a link

Shows your HTML as a working web page at its own address, with its styles, scripts and forms. Best for showing someone the result.

A whole website

Several pages, your own images and stylesheets, your domain. Import the folder or ZIP with HTML hosting, or follow the guide to host an HTML file.

Looking for PasteHTML or another paste tool? We compared nine ways to share HTML as a link in PasteHTML alternatives.

Ideas

What people share with a pasted HTML link.

Prototypes and mockups

Send a client or teammate a page they can click through on their own phone, instead of a stack of screenshots.

Pages written by AI

Turn the HTML that ChatGPT, Claude or Gemini wrote into a page people can actually visit and use.

Coding tests and homework

Hand in an exercise as a working page, with a link you can set to expire after the review.

HTML emails and newsletters

Share an email design as a web page so colleagues can review it in their browser before it's sent.

Reports and one-off pages

Publish a results page, an event schedule, a menu or an announcement without setting up a website.

Bug reports and demos

Reduce a problem to one small page and send the link, so support or your team sees exactly what you see.

No HTML yet? Start from a ready-made HTML template and publish it the same way, or explore more HTML hosting use cases.

For developers

Paste from your AI agent, script or terminal.

The same page and link, without opening a browser.

Your AI agent

Connect Claude, Cursor, Codex and other agents to the htmlhost MCP server, then ask: “Publish this HTML and give me the link.”

Set up the MCP server

The REST API

Send the HTML as a string; the response includes the page's link.

curl -X POST https://htmlhost.co/api/sites \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"html":"<h1>Hello</h1>"}'
API documentation

The command line

Save the HTML as a file, then publish it with one command.

npm install -g htmlhost-cli
htmlhost login
htmlhost deploy index.html
CLI reference
FAQ

Questions about pasting and sharing HTML.

How do I turn HTML code into a link?

Paste the code into the box at the top of this page and check the preview. Press Publish and sign in, and your page goes live at its own HTTPS address, which you can copy or share straight away. Have an .html file instead? Drop it into the same box.

Is it free to paste HTML and share it?

Yes. A free account includes 3 site creations in total, needs no credit card, and its pages never expire. Pro adds unlimited sites, password protection and version history, and includes custom domains. Compare plans

Do I need an account?

Not to paste, preview or edit. You sign in when you publish, free, so the page has an owner who can update or remove it. Google, GitHub and email sign-in all work.

Can I paste CSS and JavaScript too?

Yes. Keep CSS in <style> tags or style attributes and JavaScript in <script> tags, and they work on the published page as on any website. Libraries and fonts loaded from a CDN by their full address work too.

Why are my images missing?

A paste contains only text. Images linked by a full https:// address show up, but files on your computer, like images/photo.jpg, aren't included. Drop your whole project folder or a ZIP into the box instead, or add the images in the editor.

How long does the link last?

Sites never expire by default. You can optionally set a site to expire after 1 day, 7 days or 30 days. You can change it later in the site's settings. Temporary pages for demos and tests

Can I edit the page after I've shared the link?

Yes. Open it from your sites, make your changes and press Update. The link stays the same, so everyone you sent it to sees the new version.

Can I choose or change the link?

Your address is based on the page's <title>, for example spring-menu.htmlhost.co; a page without a title gets a random name. You can rename it in the site's settings, but the old address then stops working. You can also connect your own domain.

Can I make the link private?

You can unpublish the page at any time, which takes it offline but keeps your files. To share it with only certain people, Pro adds password protection.

Who can see my HTML?

Anyone with the link can open the page and view its source, as with any website. Never paste passwords, private API keys or personal details you don't want to be public.

Will search engines find my page?

Published pages are public by default, so search engines can find them. To keep a site out of search results, turn off Search engine visibility in the site's Settings (under Advanced), or add <meta name="robots" content="noindex"> to a page's <head>.

Can I embed the page on another website?

Yes. Other websites can show your page in an iframe using its link. If you'd rather they couldn't, switch embedding off in the site's settings.

Will a form on my page work?

Yes, once you connect it in the editor: messages go to your htmlhost inbox and can be emailed to you, with no server to set up. Free includes 50 form messages a month.

Does it work with HTML from ChatGPT or Claude?

Yes. Copy the complete HTML the AI wrote and paste it here. If it split the code into several files or wrote a React component, prepare it first. How to publish AI-generated HTML

Is pasting HTML the same as hosting a website?

A pasted page is a hosted page with its own address, so it's the quickest way in. For a website with several pages, its own images and stylesheets, import the whole folder or ZIP instead. HTML hosting for whole websites

Paste your HTML. Share the link.

Preview it first, publish when it looks right, and update it whenever you like. The link stays the same.