Free Tools (16) Pricing
0 credits
Add Credits
Dashboard Free Tools
Open Source — MIT Licensed

Fullscreen Images.
Zero Dependencies.

A fast, lightweight image lightbox built with vanilla JavaScript. Smooth zoom on desktop, pinch zoom on touch. One file, no jQuery, no frameworks, no bloat.

< 8KB gzipped 0 dependencies MIT license ES6+ vanilla JS
Sunset

Everything a lightbox needs. Nothing it doesn't.

Fullscreen Viewer

Click any image to open it fullscreen with a smooth fade transition. Keyboard navigation with Escape to close and arrow keys for galleries.

Smooth Zoom

Scroll to zoom on desktop with momentum. Pinch to zoom on touch devices with proper inertia. Double-tap to toggle zoom level. Pan with drag.

Zero Dependencies

Pure vanilla JavaScript. No jQuery, no React, no framework runtime. One JS file, one CSS file. Works everywhere JavaScript runs.

Touch & Desktop

First-class touch support with pinch, pan, and swipe gestures. Desktop users get scroll zoom, keyboard nav, and click-outside-to-close.

Two lines to get started

index.html
<!-- Include the files --> <link rel="stylesheet" href="nitrolitebox.css"> <script src="nitrolitebox.js"></script> <!-- Add the attribute to any image --> <img src="photo.jpg" data-litebox /> <!-- Or group images into a gallery --> <img src="photo-1.jpg" data-litebox="gallery" /> <img src="photo-2.jpg" data-litebox="gallery" /> <img src="photo-3.jpg" data-litebox="gallery" />

Add data-litebox to any image. That's it.

Open source. Use it anywhere.

MIT-licensed, free forever. Use it on client sites, personal projects, or commercial products. Star it on GitHub if it saves you time.