html360
v2.5.1
Published
CLI tool to create standalone 360° panoramas in a single HTML file.
Maintainers
Readme
A simple CLI tool to pack 360° equirectangular panoramas into a single, standalone HTML file. Perfect for sharing with friends via messengers or viewing offline.
💡 The Core Idea
The philosophy of html360 is to make a 360° panorama feel like a simple, universal file (like a image or video).
You can open it on any device without:
- Installing special software (any modern web browser is all you need).
- Relying on external services (Google Photos, Yandex Panoramas, etc.).
- An internet connection.
🖼️ Live Demo
Experience the result of an 8K panorama processed by html360: View Demo
🚀 Quick Start
Install it globally:
npm install -g html360Or run it without installation using npx:
npx html360 panorama_1.jpg panorama_2.jpg✨ Windows Integration
One of the coolest features of html360 is the ability to pack panoramas directly from your File Explorer. No terminal skills required for your friends!
Right-click -> Send to -> html360
Setup Context Menu
After installing the package globally, run this command once to add html360 to your "Send To" menu:
html360 install-menuRemove Context Menu
html360 uninstall-menuHow it works
- Open any folder with your 360° photos.
- Select one or multiple JPEG/PNG files.
- Right-click -> Send to -> html360.
- Done! A standalone .html file will appear next to each image instantly.
✨ 8K Optimization
Be default html360 uses Sharp to compress high-resolution panoramas while preserving 8K quality (8192×4096).
- Before: ~50 MB (Raw JPEG)
- After: ~8 MB (Optimized WebP inside HTML)
This results in a ~80% reduction in file size, making your interactive 360° scenes incredibly fast to load and easy to share.
✨ Raw Original Mode
For archival purposes or high-end desktop viewing, use the Raw Original mode (-r or --raw). This skips all compression and embeds your source file bit-for-bit into the HTML.
💡 Tip
Use 8K mode for sharing on mobile and web, and Raw Original for your personal high-quality collection where every pixel matters.
8K mode is so precise that visual differences are virtually indistinguishable on 12K (12000×6000) panoramas, even with moderate zooming. Significant visual improvements with Raw Original only become noticeable on ultra-high-resolution sources, such as 21K (21456×10728) or higher, particularly when preserving fine textures and original color depth.
✨ Viewport Persistence
You can now define exactly what your audience sees first.
Rotate -> Right-click -> Save
How it works
- Open your generated
.htmlpanorama in any browser. - Pan and tilt to find the perfect starting angle.
- Right-click (Desktop) or Long Press (Mobile) to open the new context menu.
- Select Save. Done! A new standalone .html file is downloaded, with your chosen coordinates baked into the code as the new default starting point.
✨ Create Interactive 3D Tours Right in Your Browser

Transform a collection of panoramas into a connected 3D experience without leaving your browser:
- Visual Editor: Add transition points and info-spots with a few clicks.
- Smart Autocomplete: Linked panoramas are automatically indexed, making it easy to connect scenes via relative URLs.
- Rich Info-Spots: Embed text descriptions and external web links directly into your 360° space.
🛠 How to build your tour:
- Batch Process: Run
html360 *.jpgto generate HTML files for all your rooms. - Enter Edit Mode: Open any panorama and toggle the Editor (Right-click).
- Aim & Add Panorama: Use the new precision crosshair to point at a door, select "Add Panorama", and pick the next room from the smart autocomplete list.
- Add Context: Drop info-spots with text to make the tour informative.
- Baked-in Result: Click Save. A new standalone HTML file is generated with all your hotspots and transitions baked inside.
💻 Requirements
To use html360, you need to have the following installed:
- Node.js:
v20.10.0or higher (LTS recommended) - Windows (optional): Only required for the
install-menufeature
🤝 Built With
Big thanks to these amazing projects that power html360:
- Pannellum — the core 360° viewer engine.
- Sharp — for high-speed image optimization.
- Google Gemini — for co-authoring the entire project.
- The Open Source Community — and all the amazing dependencies that make this tool possible.
