The most popular open-source alternative to YouTube is Invidious, with 26.2k GitHub stars.
Other open-source alternatives to YouTube are PeerTube, LibreTube and AlphaBiz.
Most YouTube alternatives here are Media & Streaming tools, some are Social Networking.
Every project below says in its own README or website that it can replace YouTube; the quote is shown under each one.
Stars and activity updated 27 November 2026.
Questions about YouTube alternatives
Is there an open-source alternative to YouTube?
Yes. 4 open-source projects say in their own documentation that they can replace YouTube, for example Invidious, PeerTube and LibreTube.
What is the best open-source alternative to YouTube?
Invidious (26.2k GitHub stars) is the most popular open-source alternative to YouTube on GitHub. LibreTube has the most recent code changes. To run it on your own server, look at PeerTube (self-hostable). The best choice depends on your needs: compare them side by side, for example Invidious vs PeerTube.
Are the open-source alternatives to YouTube free?
All of the 4 projects listed here are free to use under an open-source license, with no license fee: all copyleft (such as AGPL-3.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.