---
title: "Lightbox2"
description: "A script that opens images in an overlay."
pagination: false
---

{/* Generated from content/. Edit the catalog, not this page. */}

<PurposeNote title="Good for">Adding a straightforward enlarged-image viewer to a webpage.</PurposeNote>

## What it does

A script that opens images in an overlay.

## When it fits

Adding a straightforward enlarged-image viewer to a webpage.

## Other options in this category

<div data-pagefind-ignore>

- [Embla Carousel](/media/embla-carousel) — Building a custom swipeable carousel while controlling its visual design.
- [Flickity](/media/flickity) — Displaying swipeable image galleries and horizontally browsable content.
- [html-to-image](/media/html-to-image) — Exporting interface fragments, cards, or diagrams as downloadable graphics.
- [IMG.LY Background Removal](/media/img-ly-background-removal) — Creating subject cutouts without sending every image to an application server.
- [lightGallery React](/media/lightgallery-react) — Presenting media in an interactive gallery with overlay viewing.

</div>

## Source

[Project source for Lightbox2 ↗](https://lokeshdhakar.com/projects/lightbox2/)

Editorial overview reviewed on October 24, 2026. Follow the source for current setup, compatibility, and licensing.

[Present interactive media →](/tasks/present-interactive-media)

[All images, audio &amp; video options →](/media)
