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 Embed

the-piezathe-pieza96 downloads

Embed standalone interactive HTML files (with working JavaScript) inline in your notes via a simple html-embed code block.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Embed standalone interactive HTML files — with working JavaScript — directly inside your Obsidian notes.

Drop a small code block in any note and a sandboxed iframe is rendered in its place, served through Obsidian's own resource path so that scripts, styles, and local assets all load correctly. Perfect for living documents: algorithm visualizations beside your CS notes, interactive chemistry diagrams beside your study guide, or custom dashboards beside your project plan.

Why this plugin exists

Obsidian's reading view sanitizes raw <iframe> tags and strips <script> blocks, which makes it surprisingly difficult to embed your own self-contained interactive HTML. HTML Embed registers a tiny custom code block (html-embed) that resolves a vault-relative HTML file through the supported app:// resource protocol — so JavaScript runs, styles apply, and the embed feels native.

Usage

```html-embed
file: visualizations/binary-search-tree.html
height: 600
```

Options:

Key Default Description
file required Path to the HTML file. Vault-relative or absolute (e.g. C:/path/to/file.html).
height 600 Iframe height in pixels.
width 100% Iframe width.

A small "Open in browser" link is added under each embed as a fallback.

Example use cases

  • Algorithm step-throughs (BFS, A*, sorting)
  • Cipher / cryptography playgrounds
  • Interactive math demos (function plotters, geometry, probability)
  • Live data dashboards (load a local CSV and render with vanilla JS)
  • Custom flashcard widgets, timers, or study tools

Installation

From Community Plugins (after release approval)

  1. Open Obsidian → Settings → Community plugins
  2. Disable Restricted mode if it's on
  3. Browse → search "HTML Embed" → Install → Enable

Manual installation

  1. Download main.js and manifest.json from the latest release
  2. Copy them into <your-vault>/.obsidian/plugins/html-embed/
  3. Reload Obsidian and enable HTML Embed in Settings → Community plugins

Security

Each embed is rendered inside a sandboxed iframe with allow-scripts allow-same-origin allow-forms allow-popups. Only files from your own vault can be loaded. As with any plugin that runs JavaScript, only embed HTML files you trust.

About

This plugin is published by The Pieza, a community building tools and experiences for makers, students, and educators. The Pieza ships small, sharp, well-crafted utilities that respect the user's time and attention.

In partnership with Mr. Dewey — an all-in-one academic buddy and educational reformer working to centralize the student academic workspace. HTML Embed is part of Mr. Dewey's larger mission to help students keep their notes, references, study aids, and interactive learning materials together in one place.

Contributing

Issues and PRs welcome at https://github.com/the-pieza/obsidian-html-embed. Please keep the plugin focused — small surface area is a feature, not a limitation.

License

MIT © The Pieza

98%
HealthExcellent
ReviewPassed
About
Embed standalone interactive HTML files with working JavaScript directly inside your notes using a small html-embed code block. Render each file in a sandboxed iframe served via Obsidian's resource path so scripts, styles, and local assets load correctly. Provide an "Open in browser" fallback under each embed.
HTMLFilesVisualization
Details
Current version
1.0.0
Last updated
Last month
Created
Last month
Updates
1 release
Downloads
96
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
Author
the-piezathe-pieza
thepieza.com/
GitHubthe-pieza
  1. Community
  2. Plugins
  3. HTML
  4. HTML Embed

Related plugins

Kanban

Create Markdown-backed Kanban boards.

Notebook Navigator

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

Local REST API & MCP Server

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

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

QuickAdd

Quickly add new notes or content to your vault.

Recent Files

Display a list of recently opened files.

Omnisearch

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

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.