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.
Sharing an HTML page online takes three steps and about a minute. Nothing is public until you choose to publish.
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.
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.
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.
Anything a browser can show from a single HTML file can become a page with its own link.
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">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.
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.
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.
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).
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.
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.
Add a password so only the people you give it to can open the page.
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.
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.
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.
Sharing HTML can mean three different things. Here's where each one fits.
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.
Shows your HTML as a working web page at its own address, with its styles, scripts and forms. Best for showing someone the result.
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.
Send a client or teammate a page they can click through on their own phone, instead of a stack of screenshots.
Turn the HTML that ChatGPT, Claude or Gemini wrote into a page people can actually visit and use.
Hand in an exercise as a working page, with a link you can set to expire after the review.
Share an email design as a web page so colleagues can review it in their browser before it's sent.
Publish a results page, an event schedule, a menu or an announcement without setting up a website.
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.
The same page and link, without opening a browser.
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 serverSend 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 Save the HTML as a file, then publish it with one command.
npm install -g htmlhost-cli
htmlhost login
htmlhost deploy index.htmlCLI reference 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.
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
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.
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.
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.
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
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.
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.
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.
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.
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>.
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.
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.
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
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
Preview it first, publish when it looks right, and update it whenever you like. The link stays the same.