Още не е на български, затова е на английски.

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.

Get a link for my HTML file

Free plan: no credit card, 1 published page.

On this page

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:

  1. 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.
  2. 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.
  3. 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

ViewerOpen a file or paste codeFile sent anywhere in our testPage scriptsOn a phone (emulated Pixel 7)
ConvikaA file (.html or .htm, up to 2 MB) or pasted codeNo; only the upload button sends itOn by default; Run scripts turns them off; sandboxedFits the screen; a Phone width switch
HTML Online ViewerA file (Import from file) or pasted codeNoOn, with no switch to turn them off; sandboxed, alerts and new windows allowedNo phone layout: drawn 801 pixels wide and shrunk to fit a 412-pixel screen
Code BeautifyA file (File) or pasted codeNoOn, with no switch; no sandboxRuns; the page is a little wider than the screen
CodeShackA file (Open an HTML file; up to 10 MB, its page says) or pasted codeNoOn, with no switch; sandboxed, alerts and new windows allowedFits; the preview sits under the editor; Mobile, Tablet, and Desktop widths
Phoenix CodeA file (Open .html file; up to 2 MB, its page says) or pasted codeNoOff by default, as are outside images and styles; turn on Allow external resources, then Run scripts; sandboxedFits; Responsive, Desktop, Tablet, Mobile, and custom widths
Static.appA file (Open HTML file) or pasted codeNoOn, with no switch; sandboxed, alerts and new windows allowedFits; the preview sits under the editor; Desktop, Tablet, and Mobile widths
Tiiny HostPasted code only; its page says a saved file goes through its upload box, which publishes itYes: the code went to the W3C's HTML validator as we typed, as Tiiny Host's page saysOn, with no switch; no sandboxFits; the preview sits under the editor
ViewerSign-upEditingA link to the pageAds in our test
ConvikaNone to view, or for a 3-minute preview link; a free account to publishA plain text box (Edit the code); no console or formattingGet a link by uploading this page: works for 3 minutes, scripts and forms off; keep the page free to publish a link that runsNone
HTML Online ViewerNoneA code editor with Format; Export to fileNone on the pageGoogle ads
Code BeautifyNone to viewA code editor with Beautify HTML and Minify HTMLSave & Share; Code Beautify doesn't say who can open itDisplay ads
CodeShackNoneA code editor, with a console under the previewShare Preview puts the code in the link itself; CodeShack says that part never reaches a serverAd network scripts (Mediavine)
Phoenix CodeNoneA text box; Copy HTML and Download .htmlNoneNone seen
Static.appNone to viewA code editor with FormatPublish this as a live website hosts it on Static.app, "free for 7 days," its page saysNone seen
Tiiny HostNone to view; its page says Publish needs a verified email addressA code editor with HTML, CSS, and JavaScript tabs and a list of HTML errorsPublish gives a tiiny.site linkNone 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:

ViewerRead the viewer's own pageShow an alert() boxOpen a new windowSave a file to DownloadsMove the tab to another site
ConvikaNoNoNoNoNo
Phoenix Code (scripts turned on)NoNoNoNoNo
CodeShackNoYesYesNoNo
Static.appNoYesYesNoNo
HTML Online ViewerNoYesYesNoNo
Code BeautifyYesYesYesYesYes
Tiiny HostYesYesYesYesYes

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.

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

See the page, then send it as a link

Open the file in the viewer to check it. When it looks right, upload it and publish it, and the other person opens a link instead of a file.

Get a link for my HTML file

Free plan: no credit card, 1 published page.