html360
v2.12.0
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 power of html360 with these interactive examples:
Standard (8K Optimized): View 8K Demo
Perfect for messengers. Single 8MB HTML file, fast and portable.
Multiresolution (Gigapixel Panorama): View 23K Demo
The Milky Way (23,520 x 11,760 px). Infinite zoom, seamless tile loading.
Image Credit: P. Horálek & J. C. Casado / ESO
🚀 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.
✨ Create Interactive 3D Tours
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 it works:
- 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.
✨ Precision Tour Crafting
Take full control over your interactive 3D tours.

By default, a panorama has only one "home" position. With the Orientation Copy feature, you can define exactly what the user sees at every step. Now there are two ways to do this:
- Manual: Open a panorama in a new tab and copy coordinates manually.
- Automatic (v2.8.0): Open the destination panorama in the built-in preview window. Just find the perfect view — the coordinates will sync automatically as you rotate the camera.
✨ 8K Optimization
By 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.
✨ Multiresolution: Gigapixel Panoramas
Forget about browser RAM or GPU limits. html360 can now process extreme resolution images (NASA/ESO 40K+ scale) by slicing them into thousands of smart interactive tiles.
- Beyond 8K: Automatically bypasses the MAX_TEXTURE_SIZE limits of modern browsers.
- On-Demand Loading: The viewer only loads the specific tiles you are looking at. This makes exploring giant gigapixel scenes instant and fluid.
- Synchronous Pipeline: Slicing is performed sequentially to protect your CPU and RAM from overloading when handling massive source files.
html360 multires massive_pano_01.tif massive_pano_02.tif ...This mode supports the same parameters as the original generate.py (haov, vaov, voffset, horizon, etc.), but with optimized defaults for maximum out-of-the-box quality.
Professional Multires Mode
The Multiresolution mode is a "heavy artillery" feature and works differently from the standard html360 experience:
- Breaking the "One File" Rule: Instead of a single standalone HTML file, this mode generates a folder containing thousands of image fragments. This is technically required for browsers to "digest" gigapixel images piece by piece.
- Web Hosting Required: Due to browser security policies (CORS), you cannot simply double-click the index.html from your disk. The result must be uploaded to a website or run via a local web server to be viewable.
- Specific Use-Cases: Use this mode for professional web projects where extreme detail is more important than the ability to quickly send a single file via messenger.
Under the Hood
While html360 manages the CLI and templates, the heavy lifting is done by the battle-tested generate.py from the Pannellum project.
- Portability: We adapted the original script to run within the Node.js ecosystem and bundled it into ready-to-use binaries for Windows, Linux, and macOS.
- Zero Dependencies: You do not need to install Python. Everything is pre-compiled and shipped via our @html360/gen package.
- Smart Defaults: We’ve fine-tuned the core settings (e.g., default quality is set to 95%) to ensure your gigapixel tours look flawless without manual tweaking.
💡 Tip
To truly feel the power of Infinite Zoom, we recommend using high-end source images of 60K (60,000 x 30,000 px) or higher. While standard panoramas look good, it's only at the Gigapixel scale that you can zoom into distant horizons and discover microscopic details — like reading a street sign from a kilometer away — without any pixelation. Pannellum handles the heavy slicing, so don't be afraid to go big!
✨ Save
The Save action captures the entire current state of your panorama and bakes it into a html file.
What gets saved:
- Default Viewport: The exact starting camera position (pan, tilt, and zoom).
- Interactive 3D Tours: All scene transitions, links, and doorway connections.
- Information spot: Every info-spot, text description, and external web link.
- Custom Metadata: The panorama title, author name, and custom configurations.
How it works
- Open: Launch your generated
.htmlpanorama in any modern web browser. - Customize: Rotate to set the starting angle, drop info-spots, build tours, or edit titles and authors.
- Trigger: Right-click (Desktop) or Long press (Mobile) to open the context menu.
- Bake & Download: Click Save. A new standalone
.htmlfile is generated instantly with all changes hardcoded into the source.
✨ Save as Read-Only
Read-Only Mode is a built-in security feature in html360 designed for finalizing and protecting your 3D tours before sharing them with clients, stakeholders, or publishing them online.
By default, every HTML panorama generated by html360 includes a powerful embedded editor that allows anyone to add hotspots, adjust default camera angles, and modify points of interest. While this is perfect for development, you usually want to freeze the project before delivery.
How it works
- Clicking the
Save as Read-Onlybutton bakes all current views and hotspots into a finalized HTML file, completely stripping all editing controls, configuration panels, and menus from the recipient's viewer interface.
✨ Panorama Details
Inside the editor, you will find a new "Edit Details" button. This allows you to set metadata for your panorama:
- Tab Title — The name of browser tab.
- Panorama Title — The name of your panorama, displayed in the bottom-left corner.
- Author — Credit the photographer or company right next to the title.
- Author URL — Turn the author's name into a clickable hyperlink leading to a portfolio or website.
✨ Global Configuration
Save time by setting up your universal global profile. You can configure your custom author credentials once, and html360 will automatically bake them into all future generated panoramas.
html360 configConfiguration Settings
| Parameter | Type | Default Value | Description |
| :--- | :--- | :--- | :--- |
| author | string | "" | Name of the panorama author. |
| authorUrl | string | "" | Link to the author's profile or website. |
| useImageNameAsTitle | boolean | false | Automatically uses the image file name as panorama title. |
Config Location
The global configuration file is stored in your user profile directory:
- Windows:
%USERPROFILE%\.html360.json - macOS / Linux:
~/.html360.json
💻 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.
- Hugin — specifically the nona tool, providing the power for panorama transformations.
- Google Gemini — for co-authoring the entire project.
- The Open Source Community — and all the amazing dependencies that make this tool possible.
❤️ Support
If you like html360 and want to drop a tip, you can donate any amount here Boosty
