Guides: Plex Export

Plex Export scans your Plex server and saves all of the pictures into a folder that can be uploaded to a website. It's useful for showing users who don't have access to your plex server what is actually inside it. Click here to view mine.

Installation on Windows 10/7

    • Download from github and extract the zip to C drive. (I did C:\PlexExport)
    • You now have 2 options for PHP:

      1) Make sure apache/sql/php is installed and running on the same computer that you installed Plex Export on. I used xampp as an all-in-one that I downloaded from

        • In Windows Settings edit the environment variables. Add these 2: C:\xampp\mysql\bin & C:\xampp\php

      Or, what I did later and liked better I think:

      2) you can download PHP and extract it to C:\. Ex: C:\PHP7

        • You'll need to add the file path. Go to Control Panel (Win+X -> Y), find "Advanced system settings", then click "Environment Variables". That launches a window you can edit. Add a new line for the filepath above. Ex: C:\PHP7
    • Then, on the same Windows PC that is running the Plex server, run these commands in PowerShell as administrator:
    • cd C:\PlexExport

      php cli.php -token=INSERTPLEXTOKEN

    After it generates all of the thumbnails in plex-data, copy that folder and the index.html and anything else in Plex Export folder to your website using FTP.

    To make it easier, if you're using FTP for your website, in Windows you can assign it as a network place and can drag and drop the Plex Export generated files into a folder on your webserver. To add it in Windows, right click "My PC" in Windows Explorer and select "Map A Drive". Then do something like: and enter the correct username and password. If it works you should see your website pop up as a new folder in Windows.



    I find it's best to reinstall Plex Export new every time I want to use it. So unzip the rar to C:\PlexExport or something. Then run PowerShell in that folder.

    You can exclude libraries by including only the libraries you want to include. To do this, first find out the section ID numbers for your libraries by entering this in command prompt:

    "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --list

    If you installed Plex to any folder other than the default path listed above, you'll obviously need to modify the filepath to whatever you've done.

    In my case, my sections are: 14 Audiobooks, 8 Documentaries (Movies), 9 Documentaries (TV), 7 Kids Shows, 5 Family Album, 6 Home Videos, 1 Movies, 13 Music FLAC, 3 Music mp3, 15 Music Videos, 11 Pre-Rolls, 2 TV Shows.

    So I could do:


    After you've done that, in PowerShell, rather than doing:

    php cli.php -token=INSERTPLEXTOKEN
    add on this with your specific library numbers: *Note I never got the sections to work so I'm stuck doing the one above
    php cli.php -token=INSERTPLEXTOKEN -sections=14,8,9,7,1,13,3,15,11,2


    Let PowerShell do it's thing. When it's done it'll say something like "finished in XXXX seconds".

    Then add the folders Plex Export created to your public_html directory. If you don't want index.html to be the name of your library you can change it. I made mine library.html

    To add your custom logo and background to the page find the assets folder, then images, and replace 'logo' and 'background' with your own images.

Other Peoples Plex Exports

Once your movie library is pretty big it gets hardder to think of ones add to your collection. I find that viewing libraries of others can lead to finding several movies that I hadn't thought about. Here are ones I've encountered and drawn inspiration from:



Arc Browser | Blue Iris | DreamWeaver | EventGhost | FileBot | Home Assistant | KLWP | Node Red | Ombi | Plex | Plex Export | Spotify | Tasker | Tautulli | Trakt | Wansview | Wink


Copyright © 2018 All Rights Reserved.