⚡ JavaScript Lightbox Libraries

JavaScript lightbox libraries enable the display of images, videos, and other media in a dimmed modal overlay that appears above the main page content, in a UI element commonly known as a lightbox.

They typically support responsive layouts, touch and swipe navigation, keyboard controls, animations, media galleries, and accessibility features for viewing media in an enlarged format without leaving the page.

⭐ Most Popular in 2026

The following chart shows the leading JavaScript lightbox libraries in 2026, based on market share.

The most popular is Fancyapps with a share of 6.8%, followed by Magnific Popup with 6.6% and Lightbox with 5.4%.

🚀 Country Highlights

Here is a list of lightbox libraries that are especially popular in certain countries.
Differences between global and country rankings are shown in parentheses.

✨ Best JavaScript Lightbox Libraries

Below is a more detailed list of 16 JavaScript lightbox libraries we detect, ranked by their market share.

Available filters: 2D-Graphics 3D-Graphics Animation Carousel CSS Data Grids DOM Editors Lightbox Scroll SPA State Utility UI
RankNameMarket share
1
Fancyapps

A commercial library of JavaScript UI components that includes lightbox, carousel, and pan/zoom components.

€29+
2
Magnific Popup

A responsive lightbox and dialog plugin for jQuery and Zepto.js.

FreeOpen sourceLegacy
3
Lightbox
San Francisco, California, United States

The original lightbox library used to overlay images on top of the current page.

FreeOpen source
4
PhotoSwipe

A modular JavaScript image gallery and lightbox.

FreeOpen source
5
jQuery Colorbox

A lightweight, customizable lightbox plugin for jQuery.

FreeOpen source
6
iLightBox

A commercial jQuery lightbox plugin.

$16+Legacy
7
LightGallery

A customizable, modular, responsive lightbox gallery plugin with no dependencies.

FreeOpen source
8
Lity

An ultra-lightweight, accessible and responsive lightbox plugin that supports images, iframes and inline content out of the box.

FreeOpen source
9
Featherlight

A lightweight jQuery lightbox plugin.

FreeOpen source
10
GLightbox

A pure JavaScript lightbox that can display images, iframes, inline content and videos.

FreeOpen source
11
VenoBox

Responsive vanilla JS lightbox plugin, suitable for images, videos, and iframes.

FreeOpen source
12
BaguetteBox.js

Simple and easy to use lightbox script written in pure JavaScript.

FreeOpen source
13
Shadowbox

A lightbox library for photos and videos, last released in 2014.

FreeOpen sourceLegacy
14
Lightbox for Bootstrap

A lightbox module for Bootstrap that supports images, YouTube videos and galleries - built around Bootstrap's Modal plugin.

FreeOpen sourceLegacy
15
Fullscreen Lightbox

A vanilla JavaScript plugin with no dependencies for displaying images and videos in a clean overlay box.

FreeOpen source$19.90+
16
Chocolat.js

A responsive and customizable lightbox library.

FreeOpen source
Data is based on the analysis of 3,319,477 websites.
Statistics were last calculated on .
For details, see our methodology and disclaimer.