Preview an HTML file
Paste your HTML below, or drop the file, and click Share: a second later it renders at its own link, ready to open on any device or send to anyone. Nothing is uploaded until you click Share. This page exists for "preview html file online", "in cursor", "in vscode" and "on iphone" - the answer to all four is the same box.
Paste some HTML first
Cmd/Ctrl+Enter shares, Esc goes back.
This page is held for a quick review. The link starts working once it clears.
By uploading you agree to the terms. Free pages are unlisted and kept forever.
Preview without uploading
Save the code as page.html and open it: every browser renders local HTML files, scripts run, and inline CSS applies. Relative images only work if they sit next to the file. In VS Code or Cursor, right-click the file and open it in the browser, or use a live-preview extension. What a local preview cannot do is reach a phone or another person; that is what the link above is for.
Preview on a phone
Phones do not open .html attachments reliably: iPhone Quick Look sometimes shows the code, and Android depends on the file manager. Upload the file here, open the link on the phone (or scan the QR code the tool shows), and it renders in the browser like any web page. More in how to open an HTML file on a phone.
What the link is
A free, unlisted page at https://name.sharehtml.org, up to 5 MB, kept forever, served byte-for-byte with nothing injected. Search engines are told not to index it. Delete or replace it any time from the management link you get with the upload.