Welcome! This page contains the links to start using p5.js in the way that suits you best. Open the p5.js Editor in your web browser, or download the library to your own computer. We’ve tried to order the links to reflect what a beginner might want first, then what a more experienced programmer may be looking for.
Start Coding Online
This link redirects you to the p5.js Editor online so you can begin using p5.js immediately.
p5.js EditorDownload the Complete Library
This is a download containing the p5.js library file, the p5.sound addon, and an example project. It does not contain an editor. Visit Get Started to learn how to setup a p5.js project.
Complete LibraryDownload Single Files
These are downloads or links to the p5.js library file. No additional contents are included.
Use p5.js from CDN
All versions of p5.js are hosted on a content delivery network (CDN), a geographically distributed group of servers. There are a couple different ways to access the JavaScript library from your code editor.
Current Version of p5.js (recommended)
Use the following URL if you’d like to access the current version of p5.js.
https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js
Latest Version of p5.js
Use the following URL if you’d like to ensure that you’re always accessing the latest version of p5.js 1.x.
https://cdn.jsdelivr.net/npm/p5@1/lib/p5.min.js
Other Versions of p5.js
If you’d like to access an earlier version of p5.js, you can look up the corresponding URL on p5.js’ jsDelivr webpage.