Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

HTML Viewer Plus

lzqlzq460 downloads

Enhanced HTML Viewer: Embedded preview, full-screen, zoom, dark mode sync, search, MHTML support, hot refresh.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

An Obsidian plugin for previewing and embedding HTML/MHTML files directly in your vault.

中文文档

Features

  • Embed preview — Render HTML inline with ![[file.html]]
  • Element targeting — ![[file.html#elementId]] shows only the specified element
  • Custom sizing — ![[file.html|400]] for width, ![[file.html|400x300]] for width × height
  • Fullscreen / Open externally — Fullscreen or open in system browser
  • Zoom — Ctrl + scroll to zoom, adjustable step
  • In-page search — Ctrl+F to search text within HTML, auto-switches tabs
  • Dark theme sync — Follows Obsidian dark mode with custom CSS support
  • Hot refresh — Auto-reload when HTML file changes
  • MHTML support — Open .mht/.mhtml web archives directly
  • Right-click menu — Right-click HTML to copy embed/link syntax
  • Scroll guard — Click to activate scrolling, prevents accidental scroll

Installation

Manual

  1. Download main.js, manifest.json, styles.css
  2. Create .obsidian/plugins/html-viewer-plus/ in your vault
  3. Copy the three files into that directory
  4. Restart Obsidian, go to Settings → Community plugins, enable HTML Viewer Plus

BRAT

Not yet on the community marketplace. Install via BRAT:

  1. Install the BRAT plugin
  2. BRAT Settings → Add Beta Plugin → enter kuaile1407/html-viewer-plus
  3. Enable the plugin

Usage

Embed in notes

![[demo.html]]              default width and aspect ratio
![[demo.html|600]]          width 600px
![[demo.html|600x400]]      600px × 400px
![[demo.html#chart]]         show only id="chart" element

Direct open

Click an HTML file in the file explorer to open it in a dedicated view with zoom, search, refresh, and open-externally controls.

Toolbar

Button Embed mode Direct open
⛶ Fullscreen —
+ / - — Zoom in/out
↺ — Reset zoom
🔍 — Search
↻ — Refresh
↗ Open externally Open externally
→ Locate in file —

Right-click menu

Right-click on HTML content to see ancestor elements with IDs. Click to copy embed syntax to clipboard.

Settings

Option Default Description
Default width 100% Embed area default width
Aspect ratio 4/3 Supports 4/3, 16:9, 1.33
Show toolbar On Action buttons on embed view
Enable zoom On Zoom in direct open mode
Zoom step 0.1 Zoom increment per scroll
Enable search On Search in direct open mode
Sync dark theme On Auto-inject dark CSS
Custom dark CSS — Appended after default dark styles
Custom background Off Force HTML body background color
Hot refresh Off Auto-reload on file change
MHTML support On Support .mht/.mhtml files

Supported formats

  • HTML: .html .htm .shtml .xht .xhtml
  • MHTML: .mht .mhtml

Support the author

If this plugin helps you, consider buying me a coffee ☕

License

GPL-3.0

HealthExcellent
ReviewSatisfactory
About
Preview and embed HTML and MHTML files inside your vault using wiki links like ![[file.html]] or ![[file.html#elementId]]. Set custom sizes or ratios, zoom and search in-page, open full‑screen or externally, auto‑reload on edits and sync dark mode. Right‑click to copy embed or link syntax.
HTMLFiles
Details
Current version
1.0.1
Last updated
2 months ago
Created
2 months ago
Updates
1 release
Downloads
460
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
GPL-3.0
Report bugRequest featureReport plugin
Author
lzqlzqkuaile1407
GitHubkuaile1407
  1. Community
  2. Plugins
  3. HTML
  4. HTML Viewer Plus

Related plugins

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Advanced URI

Control everything with URI.

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Recent Files

Display a list of recently opened files.

QuickAdd

Quickly add new notes or content to your vault.

Text Extractor

A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.

Meld Encrypt

Hide secrets in your notes.