A no-bullshit, primitive static webapp to paste HTML and view it rendered in your browser.
  • HTML 90.4%
  • Dockerfile 9.6%
Find a file
2025-10-18 02:09:00 +02:00
static move the view button further to the left 2025-07-28 21:07:06 +02:00
docker-compose.yml only expose app locally, not to 0.0.0.0 2025-10-18 02:09:00 +02:00
Dockerfile add nginx conf that always serves the app no matter what route you open, for convenience 2025-07-28 21:36:03 +02:00
LICENSE add license (MIT) 2025-07-28 20:19:24 +02:00
nginx.conf add nginx conf that always serves the app no matter what route you open, for convenience 2025-07-28 21:36:03 +02:00
README.md update readme 2025-07-28 21:43:55 +02:00

HTML Viewer Webapp

A no-bullshit, primitive static webapp to paste HTML and view it rendered in your browser. Hosted at https://utils.barnii77.dev/html-viewer.

Why does this exist?

One time I was on my phone and had ChatGPT write some HTML for me, and I tried to search for an online tool that would quickly let me paste in the HTML and let me view the page fullscreen. However, all the online "HTML editors" only show you an annoying, small preview window. So I vibe-coded this tiny tool so that doesn't happen from now on.

Deployment

Use docker, ideally with docker compose, to deploy this app. I recommend setting up a systemd service if you want to host it on a server.

Features

  • Full-screen CodeMirror editor with HTML/CSS/JS syntax highlighting.
  • View button opens your HTML in-page via a blob URL (so Back/Forward returns to the editor intact).
  • Press Back to return to the editor with your content intact.
  • No backend required, fully static and cacheable.

Files

  • index.html: single-page editor + viewer (via blob URL navigation).

License

MIT License