4QueriesFree audit
← Blog

Fancybox Licence in 2026: Do You Have to Pay, and What Are the Free Alternatives?

Fancybox now needs a paid licence for every live site, from €29. We read the terms and compare free options: PhotoSwipe, GLightbox, baguetteBox and figlight.

By Dmitrii Dmitriev · November 6, 2026 · 6 min read
Bar chart of lightbox sizes in KB: Fancybox 43.2, lightGallery 34.6, PhotoSwipe 23.5, GLightbox 17.9, SimpleLightbox 10.6, VenoBox 8.8, baguetteBox 4.6, figlight 2.3.
Chart: 4Queries, from our own measurements for this article.

Short answer: do you have to pay for Fancybox?

Yes, for any live site running the current version. On 6 November 2026 the Fancybox licence agreement says "every installation", whatever the project type, needs a valid paid licence, and prices start at €29. You can try it free on development and staging servers.

The old advice, "it is free under GPLv3 unless your site is commercial", now fits only the 2019 jQuery package. If you want a free replacement today, PhotoSwipe and GLightbox are the established choices. If your pages only need photos with captions, there is also figlight, a 2.3 KB library I wrote. It does far less than Fancybox, and this article says where that matters.

What does the Fancybox licence actually say?

Three points decide most cases. I read them on the licence page and the pricing page on 6 November 2026.

  1. Every live installation needs a paid licence. The agreement does not make an exception for small or non-commercial sites.
  2. Development and staging are covered. You can run unpaid copies for development use when they support a licensed live site.
  3. Open source projects need permission. The restrictions list bars using the software in open source projects without the author's prior written consent. If you ship a theme or a template on GitHub, read this part first.
LicencePriceEnd products
Single€29, one payment1
Extended€99 a yearUnlimited, 1 end user each
Business€399 a yearUnlimited, unlimited end users

Those prices are fair for what you get. Fancybox handles images, video, iframes, Ajax content and PDF, with zoom, thumbnails and a configurable toolbar. If an expired subscription worries you, the pricing page says existing projects keep working. I am not a lawyer, so treat this as a reading of public pages, not legal advice.

Is the old GPL version of Fancybox still an option?

It exists, and people still install it. The package @fancyapps/fancybox is at version 3.5.7, published in March 2019. Its npm licence field says GPL-3.0, and it needs jQuery. It was downloaded 42,206 times in the week to 4 November 2026, against 123,215 for the current @fancyapps/ui.

I would not start a new project on it. It has had no release in over seven years, it brings jQuery with it, and the GPL has obligations of its own that you should read before you rely on it.

How do you check which Fancybox your site runs?

  1. Search your package.json for @fancyapps/ui or @fancyapps/fancybox. The first is the current line, the second is the old one.
  2. Run npm ls @fancyapps/ui to see the exact version, including copies pulled in by a theme.
  3. Open LICENSE.md inside node_modules/@fancyapps/ui. Terms can differ between versions, so read the one you actually ship.
  4. No npm? Search your templates for data-fancybox and look at the script address they load. CDN addresses usually carry the version number.
  5. Check who installed it. Themes and page builders often bundle it, and their licence may or may not cover you. Ask the vendor.

Which free lightbox libraries can replace it?

All of these except lightGallery are MIT, so a commercial site pays nothing. Size means the published JS plus CSS from npm, compressed with gzip -9, measured on 6 November 2026. Authors quote smaller numbers (GLightbox says 11 KB, baguetteBox says about 3.2 KB), so test the files you actually load.

Bar chart of lightbox size in KB, JS plus CSS: Fancybox 43.2, lightGallery 34.6, PhotoSwipe 23.5, GLightbox 17.9, SimpleLightbox 10.6, VenoBox 8.8, baguetteBox 4.6, figlight 2.3.
Size alone does not decide this: the bigger libraries also do more.
LicenceZoomVideoCaptionsnpm, week to 4 NovLatest release
Fancybox 6.1.15Paid for live sitesYesYesYes123,215Current
PhotoSwipe 5.4.4MITYesNot in its docsCode or plugin819,305May 2024
GLightbox 3.3.1MITYesYesTitle and description, HTML allowed80,367Jan 2025
baguetteBox 1.13.0MITNot in its docsNot in its docstitle or data-caption8,830Nov 2025
figlight 1.0.1MITNoNoReads figcaption, keeps HTMLNewNov 2026

lightGallery is not a free pass either: its npm licence field reads GPL-3.0 or commercial, so check its terms the way you would check Fancybox. On React, yet-another-react-lightbox is MIT and has 979,497 weekly downloads.

Which one fits which job?

Your jobStart withWhy
Everything Fancybox does, and you are happy to payFancyboxThe widest feature set here, and €29 is cheap against rebuilding it.
Images and video, freeGLightboxHandles images, video, iframes and inline content with zoom.
Large photos with smooth zoom, freePhotoSwipeThe most used here. Captions take extra work.
A small gallery with attribute captionsbaguetteBox4.6 KB, swipe support, simple setup.
Photos that already have a figcaptionfiglight2.3 KB, one script tag, no markup changes if you use figure.

What does figlight do, and where does it fall short?

I wrote figlight because our articles publish photos from Wikimedia Commons and Unsplash, and those credits have to stay visible. It takes the figcaption your page already has and shows it under the enlarged photo as HTML, so author names and licence links stay clickable. Installation is one line:

<script src="https://cdn.jsdelivr.net/gh/trendbender/[email protected]/dist/figlight.min.js"></script>

It also uses the largest srcset image, skips icons under 400 pixels, supports arrow keys and swipe, and returns focus on close.

It has clear limits. There is no zoom, so a reader cannot pinch into a detail on a phone. There are no thumbnails, video, iframes or themes. It is also new: the code is on GitHub, its tests run in jsdom rather than on real devices, and it has few users so far. If any of that matters for your site, choose GLightbox or PhotoSwipe.

How do you move a page from Fancybox to figlight?

  1. List what you use. If the page opens video, iframes or PDF, or readers need zoom, stop here and use GLightbox.
  2. Change the markup. Fancybox usually wraps images in <a data-fancybox href="big.jpg">. figlight treats an image inside a link as a link and leaves it alone, so use <figure><img><figcaption> and put the large file in srcset.
  3. Move the captions. Copy each data-caption value into the figcaption.
  4. Remove Fancybox. Delete its script, stylesheet and the Fancybox.bind call.
  5. Add figlight and test. Add the script tag, then try a phone and a keyboard before you ship.

FAQ

Is Fancybox free?

Not for live sites. On 6 November 2026 its licence requires a paid licence for every installation, from €29. Development and staging servers that support a licensed site are allowed.

Is Fancybox still GPL?

Only the old @fancyapps/fancybox package, version 3.5.7 from 2019, which needs jQuery, has a GPL-3.0 licence field. The current @fancyapps/ui package points to its own licence.

Does a non-commercial site need a Fancybox licence?

The agreement says every installation needs one, whatever the project type, and it names no exception for non-commercial sites. Ask the author if your case is unclear.

What is the best free alternative to Fancybox?

It depends on the job. GLightbox covers images and video, PhotoSwipe is the most used for photos, and figlight is the smallest option here for pages that already have figcaption.

Is figlight a full replacement for Fancybox?

No. It has no zoom, thumbnails, video or iframes. It shows photos with their captions and nothing else.

Sources

What to do this week

  1. Run the five checks above and write down which version each of your sites ships.
  2. If you run the current Fancybox on a live site without a licence, buy one or plan the move.
  3. Try the figlight demo if your pages are photos with captions.

More free utilities from us are on the tools page.

Comments

We review every comment before it appears. Your email is never shown. Privacy policy

See where you stand in all four places

Send us your website. We check Google Search, AI answers, maps and reviews, and Google Ads, then show you what to fix first.

Get a free 4Queries audit