Guides / Publish HTML

Publish HTML online and get a live URL instantly

Publish an HTML file online with PreviewShip. Upload a .html file, paste HTML source, or deploy from CLI, MCP, VS Code, Cursor, and get a public live URL.

Updated 2026-05-14

Answer First

PreviewShip publishes HTML online by packaging a single .html file or pasted HTML source as a static index.html preview. You can deploy from the browser, CLI, MCP, VS Code, or Cursor and share the returned public URL with clients, teammates, or an AI agent workflow.

Key takeaways

  • Best for AI-generated HTML, one-page prototypes, reports, dashboards, and small landing pages.
  • Works without Git, CI/CD, server setup, or a production hosting account.
  • Supports direct .html upload, pasted HTML, CLI deploys, MCP deploys, and editor deploys.
  • For multi-file projects, build first and deploy the static output folder with index.html and assets.

Recommended workflow

  1. Create or export your HTML file from ChatGPT, Claude, Cursor, a design tool, or a local editor.
  2. Open PreviewShip Deploy and choose upload HTML, paste HTML, or run `npx previewship deploy ./page.html`.
  3. Name the project and start the deployment.
  4. Copy the live URL and share it with reviewers.

Comparison snapshot

QuestionPreviewShipTraditional hosting
InputHTML file, pasted HTML, or build outputUsually FTP, Git, or server files
SetupNo server or CI setupOften requires DNS, hosting, or repo setup
AI workflowMCP and CLI friendlyUsually human-dashboard first
Best useFast review and sharingProduction site operations

Why HTML needs a public URL

AI tools now generate complete HTML pages for landing pages, research reports, calculators, dashboards, and small prototypes. The output is useful, but a local file is hard to review on another device.

Publishing HTML online turns the artifact into a normal web page. Reviewers can open it on mobile, share it in Slack, comment on it, or test it in a browser without downloading files.

What PreviewShip accepts

PreviewShip supports three common inputs: a single .html file, pasted HTML source, or a built static output folder. The first two are ideal for AI-generated one-page artifacts. The third is ideal for React, Vue, Svelte, Astro, and static exports.

If your zip contains package.json, src, and node_modules, it is probably source code rather than deployable static output. Build it first and deploy dist, build, out, or another folder that contains index.html.

Search intent fit

This workflow targets people searching for ways to publish HTML online, host an HTML file, convert HTML to a live URL, share a Claude HTML artifact, or deploy HTML generated by ChatGPT.

FAQ

Can I publish one HTML file without zipping it?
Yes. PreviewShip supports direct .html upload and pasted HTML source in the console, plus single-file deploys from CLI, MCP, VS Code, and Cursor.
Does PreviewShip preserve my HTML meta tags?
PreviewShip deploys the HTML artifact as static output. Any title, meta description, Open Graph tags, and JSON-LD that are inside the HTML remain part of the page.
Can I publish HTML generated by ChatGPT or Claude?
Yes. Save the generated code as a .html file, paste it into the console, or let an MCP-compatible agent deploy it directly.
Is this the same as production hosting?
PreviewShip is optimized for fast preview sharing. Use it for reviews, demos, prototypes, and temporary public links rather than full production hosting workflows.