Skip to content
Expensico

HTML Viewer

Preview HTML files safely in a sandbox with scripts disabled, and view the formatted source side by side. Nothing is uploaded.

Runs in your browser. Your files are processed on your device and are never uploaded.

How to use the HTML Viewer

  1. Open an .html file — a saved web page, an email template or an export.
  2. Preview it at desktop, tablet or phone width.
  3. Switch to Source to read the formatted markup.

Safe previews of untrusted HTML

HTML files from unknown sources can contain scripts or tracking pixels. The preview runs in a sandboxed frame with all permissions removed: no JavaScript, no form submissions, no pop-ups, no navigation, and no access to this site.

By default a content security policy also blocks remote images, stylesheets and fonts, so opening the file doesn't tell anyone you looked at it. Tick “Load remote images and styles” to see the page as designed.

When you'd use it

  • Previewing an HTML email template at phone width before sending a campaign.
  • Opening a web page someone saved with “Save page as” and sent to you.
  • Reading an HTML report or export (test results, bank statements, analytics exports) safely.
  • Checking an HTML attachment you weren't expecting — the sandbox stops it from running code or phoning home.

Device widths

The phone and tablet buttons resize the preview to 390 and 820 pixels wide — typical modern phone and tablet viewports — so you can see whether a layout is responsive. Desktop uses the full width available. In Source view the markup is formatted with Prettier for reading; Copy and Download give you that formatted HTML. Files up to 20 MB can be opened.

Related tools

Tidy messy markup with the HTML formatter, or pull out just the words with HTML to Text.

Frequently asked questions

Why does the page look broken?

Pages saved from websites often depend on scripts or external files. Scripts never run here, and remote files only load if you allow them.

Is my file uploaded?

No. It's displayed from your device.

Do links in the page work?

No. Navigation is disabled inside the preview so a page can't redirect you or open other sites. Read the link addresses in Source view instead.

Is it safe to allow remote images and styles?

Scripts stay blocked either way. Allowing remote resources only lets the page load images, fonts and stylesheets from the internet, which means those servers can see that the file was opened.