Contact
Free PHP photo gallery script · Content & Community

LiteGallery.

Show your photos in beautiful albums with masonry or grid layout and a keyboard-friendly lightbox. Bulk upload with automatic thumbnails.

Free for personal and commercial usev1.0PHP 7.4+ no database
LiteGallery album overview with cover collages
Free download

One ZIP file, 156 KB, with the full PHP source code and a README.

No database

Data is stored in protected files. Works on any PHP hosting.

Admin panel included

Modern, responsive admin with light and dark mode.

Combine with other Lite scripts

Same design, same admin and same core in every script.

What is LiteGallery?

Free PHP photo gallery script with albums, bulk upload and lightbox.

LiteGallery is a free PHP photo gallery. Create albums, select dozens of photos at once and upload them in one go: LiteGallery shrinks large pictures, rotates them using EXIF data and generates fast thumbnails. Visitors browse a clean album overview, then view photos in a masonry or square grid and open them in a full-screen lightbox with keyboard and swipe-friendly navigation.

LiteGallery features

  • Albums with cover collage, descriptions and custom order
  • Bulk upload: select many photos at once, they are resized and thumbnailed automatically
  • Masonry (natural proportions) or square grid layout
  • Full-screen lightbox with arrow-key navigation and captions
  • Captions editable in the admin, optional display
  • Automatic EXIF rotation, 2000 px size limit and cached thumbnails for fast pages
  • Lazy loading and responsive images
  • Light and dark mode, accent color picker; embeddable in an iframe
  • Flat-file storage: no MySQL, one-click data backup

LiteGallery screenshots

Real screenshots of LiteGallery: the public pages your visitors see and the admin panel you use to manage them.

LiteGallery album overview with cover collages
Album overview
LiteGallery masonry photo grid
Photo grid
LiteGallery admin dashboard
Admin dashboard
LiteGallery bulk photo upload and caption editor
Bulk upload and captions

How LiteGallery works

  1. Create albums in Admin > Albums (the order number controls the sequence).
  2. Open Admin > Photos, choose an album, select many images and click Upload.
  3. Edit captions directly under each thumbnail, or delete photos you do not want.
  4. Choose masonry or grid layout and whether to show captions in Settings.
  5. Make sure the PHP gd extension is enabled (it is on nearly all hosts) for thumbnails and resizing.

Install LiteGallery in 5 minutes

  1. Download LiteGallery.zip and unzip it.
  2. Upload the LiteGallery folder to your web hosting (FTP or file manager).
  3. Make the data and uploads folders writable.
  4. Open /admin/ in your browser and create your admin account.
  5. Click Add sample content in Settings, or start adding your own.

Requirements

  • PHP 7.4 or newer (PHP 8.x recommended)
  • Apache or nginx, any shared hosting
  • No MySQL: files in the data folder
  • README with full instructions is inside the ZIP

LiteGallery questions

How large can uploads be?

Each image may be up to 8 MB (and is shrunk to 2000 px). The real limit is your hosting's upload_max_filesize and post_max_size in php.ini.

Need more than LiteGallery?

LiteGallery covers photos. To build and manage a complete website with pages, menus, blog, galleries and forms from one admin panel, see Website Creator:

Explore Website Creator →

More free PHP scripts

Content & Community

LiteFAQ

A beautiful FAQ page with instant search, topic filters, smooth accordions and 'Was this helpful?' votes. Adds FAQ structured data for Google.

Content & Community

LiteGuestBook

A friendly, modern guestbook: visitors leave messages, you approve and reply from the admin panel. No database, no CAPTCHA.

Content & Community

LiteNews

Publish articles with cover images, categories, search, scheduling, RSS and a sitemap. SEO friendly, no database.

Browse all 20 free PHP scripts or see our professional PHP scripts.