Free online HTML viewers compared: which one runs a file or pasted code on a phone?
Quick answer
Pick an online HTML viewer by 3 facts: does the file stay in your browser, can you turn its scripts off, and does the tool fit a phone. In our October 25, 2026 test of 7 viewers, 6 sent the file nowhere, 2 let you turn scripts off, and 2 ran the page's scripts with no sandbox.
Free plan: no credit card, 1 published page.
On this page
- How to choose an online HTML viewer
- Online HTML viewers compared
- Run a file or paste code
- Privacy: what each viewer sends
- Is an online HTML viewer safe for a file someone sent you?
- Viewing HTML on a phone
- When to use an editor instead
- Get a link to the page
- Which one to pick
- Frequently asked questions
- Sources
You have an .html file from ChatGPT, Claude, or an email, or a block of code in a chat, and you want to see the page. A search for "html viewer online" returns a page of tools that look alike: code on the left, the page on the right. They differ on 4 things you can't see from the outside: whether the file leaves your browser, whether you can stop the page's scripts, how much those scripts may do, and whether the tool works on a phone.
Every row below comes from our own test on October 25, 2026, and from each tool's own page, read the same day. We loaded the same test page into each viewer in Playwright's Chromium 156, at desktop width and on an emulated Pixel 7 screen, and watched every request the browser sent. The test page tried to read the viewer's page, show an alert box, open a window, save a file, and move the tab. The viewers are the first 6 Brave Search results for "html viewer online" that day, minus Readdy (4th), whose preview ran none of our page's JavaScript, plus Tiiny Host, which also turns the page into a link, and Convika's own HTML viewer.
How to choose an online HTML viewer
3 questions decide it:
- Does the file stay in your browser? It matters for a client's draft, a page with names in it, or a file you don't trust. 6 of the 7 viewers sent the file to no server in our test.
- Can you turn scripts off, and what can scripts do when they're on? It matters for a file someone sent you. Only Convika and Phoenix Code had a switch, and 2 viewers ran the page with no sandbox at all.
- Does it work on your phone? It matters if the file is in your phone's Downloads. 5 of the 7 fitted a phone screen, and a 6th ran a little wider than it.
Then 2 extras: do you want to edit the code, and do you need a link someone else can open?
Online HTML viewers compared
| Viewer | Open a file or paste code | File sent anywhere in our test | Page scripts | On a phone (emulated Pixel 7) |
|---|---|---|---|---|
| Convika | A file (.html or .htm, up to 2 MB) or pasted code | No; only the upload button sends it | On by default; Run scripts turns them off; sandboxed | Fits the screen; a Phone width switch |
| HTML Online Viewer | A file (Import from file) or pasted code | No | On, with no switch to turn them off; sandboxed, alerts and new windows allowed | No phone layout: drawn 801 pixels wide and shrunk to fit a 412-pixel screen |
| Code Beautify | A file (File) or pasted code | No | On, with no switch; no sandbox | Runs; the page is a little wider than the screen |
| CodeShack | A file (Open an HTML file; up to 10 MB, its page says) or pasted code | No | On, with no switch; sandboxed, alerts and new windows allowed | Fits; the preview sits under the editor; Mobile, Tablet, and Desktop widths |
| Phoenix Code | A file (Open .html file; up to 2 MB, its page says) or pasted code | No | Off by default, as are outside images and styles; turn on Allow external resources, then Run scripts; sandboxed | Fits; Responsive, Desktop, Tablet, Mobile, and custom widths |
| Static.app | A file (Open HTML file) or pasted code | No | On, with no switch; sandboxed, alerts and new windows allowed | Fits; the preview sits under the editor; Desktop, Tablet, and Mobile widths |
| Tiiny Host | Pasted code only; its page says a saved file goes through its upload box, which publishes it | Yes: the code went to the W3C's HTML validator as we typed, as Tiiny Host's page says | On, with no switch; no sandbox | Fits; the preview sits under the editor |
| Viewer | Sign-up | Editing | A link to the page | Ads in our test |
|---|---|---|---|---|
| Convika | None to view, or for a 3-minute preview link; a free account to publish | A plain text box (Edit the code); no console or formatting | Get a link by uploading this page: works for 3 minutes, scripts and forms off; keep the page free to publish a link that runs | None |
| HTML Online Viewer | None | A code editor with Format; Export to file | None on the page | Google ads |
| Code Beautify | None to view | A code editor with Beautify HTML and Minify HTML | Save & Share; Code Beautify doesn't say who can open it | Display ads |
| CodeShack | None | A code editor, with a console under the preview | Share Preview puts the code in the link itself; CodeShack says that part never reaches a server | Ad network scripts (Mediavine) |
| Phoenix Code | None | A text box; Copy HTML and Download .html | None | None seen |
| Static.app | None to view | A code editor with Format | Publish this as a live website hosts it on Static.app, "free for 7 days," its page says | None seen |
| Tiiny Host | None to view; its page says Publish needs a verified email address | A code editor with HTML, CSS, and JavaScript tabs and a list of HTML errors | Publish gives a tiiny.site link | None seen |
Sources for both tables, read on October 25, 2026: HTML Online Viewer, Code Beautify's HTML Viewer, CodeShack's HTML Viewer, Phoenix Code's HTML Viewer, Static.app's HTML Viewer, Tiiny Host's HTML Viewer, our test of each, and, for Convika, the code that runs its HTML viewer.
Run a file or paste code
All 7 take pasted code, so code from a chat works anywhere. A file is different. 6 of them open a file from your device: Convika with Choose an .html file, HTML Online Viewer with Import from file, CodeShack with Open an HTML file, Phoenix Code with Open .html file, Static.app with Open HTML file, and Code Beautify with File. Tiiny Host's viewer takes pasted code only.
On a phone, choosing a file from Downloads or Files beats copying a long page into a text box. In Convika's viewer, tap Choose an .html file, or switch to Paste code, paste, and tap Show the page. If the page points to files that didn't come with it, such as style.css or photo.png, Convika lists them under the page, because a viewer that reads one file can't show the others.
Privacy: what each viewer sends
We looked at every request the browser sent while each viewer opened the test page, and for a few seconds after, for any that carried the page's text. 6 viewers sent none. Tiiny Host sent the code to the W3C's validator at validator.w3.org, which its page states: "While you're viewing, only the W3C's validator receives your code, and all it sends back is the error list."
What the tools themselves say:
- Convika: the browser reads the file, and it reaches Convika only when you press Get a link by uploading this page.
- CodeShack: "The code you paste or open stays in your browser and is never uploaded or stored," except when you fetch a page by its address, which goes through CodeShack's server.
- Phoenix Code: "The file is read and rendered locally and is not uploaded to Phoenix Code."
- Static.app: "everything stays in your browser, so your file never leaves your device."
- Code Beautify: "This tool does not send code to the server for preview." A file is read by the browser; a page fetched by its address goes through Code Beautify's server.
- HTML Online Viewer doesn't say.
The viewer is one half of it. Once a page's scripts run, the page itself can send data to other sites. In every viewer that ran our test page, its fetch() to another site went out, except Phoenix Code. Turning scripts off stops that.
Is an online HTML viewer safe for a file someone sent you?
It depends on the sandbox around the preview: the frame that decides what the page's code may do. This is what our test page could do in each viewer, with its scripts on:
| Viewer | Read the viewer's own page | Show an alert() box | Open a new window | Save a file to Downloads | Move the tab to another site |
|---|---|---|---|---|---|
| Convika | No | No | No | No | No |
| Phoenix Code (scripts turned on) | No | No | No | No | No |
| CodeShack | No | Yes | Yes | No | No |
| Static.app | No | Yes | Yes | No | No |
| HTML Online Viewer | No | Yes | Yes | No | No |
| Code Beautify | Yes | Yes | Yes | Yes | Yes |
| Tiiny Host | Yes | Yes | Yes | Yes | Yes |
In Code Beautify and Tiiny Host, the preview has no sandbox. The page's script read the viewer's own page and wrote to the site's storage. A download link and a file the script built both landed in Downloads, the method Microsoft calls HTML smuggling. A link in the page also took over the tab. Saving a file is the step that matters: an HTML attachment that saves a file is how that attack reaches a computer.
No viewer here scans a file for malware, and none can make a fake sign-in form look fake. For a file you didn't expect, Is it safe to open an HTML file? covers the red flags and how to read the code without running it.
Viewing HTML on a phone
On an emulated Pixel 7 screen, 412 pixels wide, Convika, CodeShack, Phoenix Code, Static.app, and Tiiny Host fitted the page to the screen, with the preview under the code where both show. Code Beautify ran the page, but its layout ran a little wider than the screen. HTML Online Viewer has no phone layout: it drew its desktop page 801 pixels wide and shrank it to fit.
A phone's own preview is no substitute. On an iPhone, tapping an .html file in Files opens a Quick Look preview, which ran no JavaScript in our iOS 26.3 test (How to open an HTML file on iPhone). On Android, the Files app asks which app should open the file, and in our Android 16 emulator test the app called HTML Viewer showed the text but ran no scripts (How to open an HTML file on Android). A viewer in the phone's browser runs the page. We tested these viewers on an emulated screen, not on a real phone or in Safari.
When to use an editor instead
Convika's viewer is for seeing a page, not for working on it. Edit the code reopens the code in a plain text box, and there's no console, no formatting, and no developer tools. If you're changing the code, an editor-first tool does more:
- CodeShack shows the page's console output and errors under the preview.
- Tiiny Host splits HTML, CSS, and JavaScript into tabs and lists HTML errors with their line numbers.
- Code Beautify and HTML Online Viewer reformat messy code in one click.
- W3Schools' Tryit Editor runs whatever you type when you press Run, which suits its lessons. In our test it ran the page with no sandbox, as Code Beautify did: an alert box, a new window, a file saved to Downloads, and the tab moved to another site.
Get a link to the page
A viewer shows the page on your own screen. To show it to someone else, you need a link. Drop your file in the box above, or paste the code, to get a preview link without an account. It works for 3 minutes, with scripts and forms off, so it's for checking the page on your other device, not for sending. Click Keep this page — free, no card and sign up, and the page moves into your account, where its scripts run.
From the dashboard, click Publish page, choose Public under Who can open this page?, and click Next. The first time, click Publish free. Copy the link and send it instead of the file. The Free plan includes 1 published page. The viewer's own Get a link by uploading this page button makes the same preview link from the page it's showing.
Not a fit for: editing code with a console, or a page made of many files. Use CodeShack or Tiiny Host's editor for the first, and a host that takes a folder for the second (Free HTML hosting compared).
Which one to pick
- A file you didn't expect: Phoenix Code, which keeps scripts and outside images off until you allow them, or Convika with Run scripts off. Type no password into either.
- A quiz or a game that has to run on your phone: Convika, CodeShack, or Static.app. Each fitted the phone screen and kept the page's scripts sandboxed. In our test, Convika's showed no
alert()boxes, and in all 3 the page couldn't save to the browser's storage. - Fixing the code: CodeShack for its console, or Tiiny Host for its separate tabs and error list.
- Tidying messy code: Code Beautify or HTML Online Viewer.
- A link for someone else: Convika (publish free) or Tiiny Host (publish after you verify your email). CodeShack's Share Preview works for a snippet, since the code rides inside the link.
Frequently asked questions
What is the best free HTML viewer online?
The one that fits your file. For a file you don't trust, Phoenix Code, with scripts off until you allow them, or Convika with Run scripts off. For a page that has to run on a phone, Convika, CodeShack, or Static.app, which fitted a phone screen and sandboxed the page in our October 25, 2026 test. Convika's showed no alert() boxes, and in all 3 the page couldn't save to the browser's storage. For editing, CodeShack, with its console.
Can I view an HTML file online without uploading it?
Yes. In our test, Convika, HTML Online Viewer, Code Beautify, CodeShack, Phoenix Code, and Static.app read the file in the browser and sent it to no server. Tiiny Host's viewer sent the code to the W3C's validator, as its page says. In Convika's HTML viewer, the page goes to Convika only if you press Get a link by uploading this page.
Is an online HTML viewer safe?
For your own file, yes. For a file someone sent you, it depends on the viewer's sandbox. In our test, Code Beautify and Tiiny Host let the page read the viewer's own page, save files to Downloads, and move the tab. Convika and Phoenix Code blocked all of that, and both let you turn the page's scripts off. No viewer makes a fake sign-in form safe: don't type a password into a page you didn't expect.
Can I view HTML on my phone?
Yes, in a viewer that fits a phone screen. Open Convika's HTML viewer in Chrome or Safari and tap Choose an .html file, or Paste code. CodeShack, Phoenix Code, Static.app, and Tiiny Host also fitted an emulated Pixel 7 screen in our test. HTML Online Viewer drew its desktop layout and shrank it to fit.
How do I view an HTML file from ChatGPT?
Download the file from the chat, or copy the whole code block. Then open an HTML viewer: in Convika's HTML viewer, tap Choose an .html file, or tap Paste code, paste, and tap Show the page. The page runs in your browser and isn't uploaded. To send it to someone, publish it and send the link.
Which online HTML viewer lets me turn JavaScript off?
Convika and Phoenix Code, in our test. Convika runs scripts until you uncheck Run scripts. Phoenix Code starts with scripts off and runs them only after you turn on Allow external resources and then Run scripts. The other 5 had no switch.
Do online HTML viewers keep my code?
No, for the 3 whose pages say so: CodeShack says code is "never uploaded or stored," Static.app says its viewer "does not store your code," and Tiiny Host says "Nothing kept on our servers." Phoenix Code says the file "is not uploaded," Code Beautify says it doesn't send code to its server for the preview, and HTML Online Viewer's page doesn't say; in our test, none of those 3 sent the file anywhere. Convika's viewer sends the page nowhere unless you press Get a link by uploading this page. A share or publish button is different: it puts your code on that tool's server or, for CodeShack's Share Preview, inside the link.
Sources
- Brave Search results for "html viewer online" and "view html file online" (checked October 25, 2026)
- HTML Online Viewer (checked October 25, 2026)
- Code Beautify: HTML Viewer (checked October 25, 2026)
- CodeShack: HTML Viewer (checked October 25, 2026)
- Phoenix Code: HTML Viewer Online (checked October 25, 2026)
- Static.app: HTML Viewer (checked October 25, 2026)
- Tiiny Host: HTML Viewer (checked October 25, 2026)
- W3Schools Tryit Editor (checked October 25, 2026)
- HTML smuggling surges (Microsoft Threat Intelligence, November 11, 2021) (checked October 25, 2026)
- The iframe element and its sandbox attribute (MDN) (checked October 25, 2026)
Next step
How to share an HTML file as a link that opens on any phone
Email and Google Drive open HTML on a phone without scripts. Compare 5 hosts (Netlify Drop, Tiiny Host, Pagelive, GitHub Pages, Convika) and follow 4 steps.
Related articles
- Is it safe to open an HTML file someone sent me? How to check firstAn HTML file is a web page: it can run scripts and show a fake sign-in box. Open one only if you expected it, and check it as text or with scripts off first.
- Free HTML hosting compared (2026)Netlify Drop, Cloudflare, GitHub Pages, Vercel, Tiiny Host, and 6 more free HTML hosts compared: sign-up, link expiry, custom domain, forms, stats, and badge.
- How do I open an HTML file on an iPhone, and how do I send one that opens?Tap an .html file in the iPhone Files app and you get a preview with no scripts. Open it in Safari with a free viewer, or send a link instead of the file.
- How do I open an HTML file on Android, and how do I send one that opens?Android asks which app opens an .html file. In our emulator test, Chrome ran the page and HTML Viewer didn't. Use Chrome or a free viewer, or get a link.
- Netlify Drop alternatives in 2026: 7 hosts compared on forms, stats, and domainsNetlify Drop links have a temporary password until you sign in and pause once 300 credits are used. Compare 7 hosts, including Cloudflare Drop and Convika.