html support

HTML support

Share any .html file from your machine and MunchFile serves it as a real, interactive web page — not a download. Your <style> blocks,<script> tags, and full <head> are preserved. Nothing is stripped.

How it's served

Your HTML lives inside a sandboxed <iframe>. The iframe is given an opaque origin (no allow-same-origin), so scripts in your file cannot read the MunchFile viewer's cookies, storage, or DOM. They can still do what a normal page does: render, handle interaction, fetch from public APIs.

Above the iframe is a thin collapsible chrome bar — filename, a download link, attribution. Users can collapse it for a full-bleed view; the state persists in localStorage.

What MunchFile preserves

  • Your entire <head>: <title>, <meta>, <link>, <style>.
  • Your <script> tags. They run inside the sandbox.
  • Your inline styles and class names — exactly as written.
  • Relative image and video references (if the file references local assets, watch the folder containing them).

What MunchFile does not strip

Nothing by default. The iframe sandbox is the security boundary, not a content filter. Your file ships as you wrote it.

Raw URL access

Every HTML file gets two URLs. The default URL renders with MunchFile chrome; appending/embed serves the raw HTML with no wrapper — useful when you want to embed the page into another site via <iframe src>.

https://view.munchfile.com/abc123        ← rendered with MunchFile chrome
https://view.munchfile.com/abc123/embed  ← raw HTML, no chrome (useful for <iframe src>)

Want hosted Tailwind + DaisyUI?

If you want MunchFile to inject a framework so you can write<div class="card"> instead of inline styles, see Style Embeds. One meta tag, no build step, your file stays small.

HTML support — MunchFile Docs