What CodePen is
CodePen is a browser-based environment for creating, testing, deploying, sharing, and discovering front-end code. Pens let you write HTML, CSS, and JavaScript with a live preview. The service supports HTML preprocessors such as Markdown, Haml, Slim, and Pug, and CSS preprocessors such as Sass, Less, Stylus, and PostCSS. You can add external resources, reuse other Pens, find libraries through CDNjs, and process bare npm package imports. CodePen 2.0 includes automatic preprocessing, file systems, version history, collaboration, and one-click Pen deployment. Pens can be embedded on other sites, and CodePen documents a REST API and embed options. Content is public by default; PRO privacy controls hide private Pens and Collections from search and profiles, but anyone with the shared URL can view them without logging in. The free plan includes unlimited public Pens and three files per Pen. Starter is $8 a month. CodePen runs on the web and offers an API, but no self-hosted version.
Who it suits
CodePen suits front-end developers and designers, including people learning to code. It can also support prototyping, debugging, client review, hiring, and portfolios.
Good to know, and what to watch
- Live browser previews for HTML, CSS, and JavaScript.
- Supports several HTML and CSS preprocessors.
- Pens can be embedded on other websites.
- Free plan includes unlimited public Pens.
- Pens and Projects are public by default.
- Anyone with a private link can view the content.
- No self-hosted version is offered.
Plans
Every plan and priceFree
Starter
Developer
Super
Free plan
Getting started
- Open https://codepen.io/ in a supported web browser
- Create a Pen in the browser editor
- Write HTML, CSS, and JavaScript and view the live preview
- Add preprocessors or external resources when needed
- Share, embed, or deploy the Pen
Limits to check
The Free plan costs nothing and allows unlimited public Pens with 3 files per Pen. Starter costs $8 a month, billed at $96/year, and raises the limit to 50 files per Pen with 5 MB media files, 2 GB asset hosting, and 5 collaborators; higher plans provide larger limits.
The verdict
CodePen combines an in-browser front-end editor with sharing, embeds, and collaboration. Its free plan is limited to public Pens, while private content remains accessible to anyone with its shared URL.
Questions people ask
Is CodePen free?
Yes. The Free plan is free and includes unlimited public Pens with 3 files per Pen.
What platforms does CodePen support?
CodePen is available on the web and through an API.
Can projects be private?
PRO private Pens and Collections are hidden from public search and profiles, but anyone with the shared URL can view them without logging in.
Does CodePen support collaboration?
Teams can share Pens, Collections, Assets, and billing, and members can edit Team Pens together.
Is CodePen self-hosted?
No. CodePen states that it does not offer a self-hosted version.
What are the paid plans?
Starter is $8 a month billed at $96/year, Developer is $12 a month billed at $144/year, and Super is $26 a month billed at $312/year.
What the maker publishes
- Browser editor
- Pens let users write HTML, CSS, and JavaScript with a real-time preview in the browser. source
- CodePen 2.0
- The CodePen 2.0 editor supports automatic preprocessing, live previews, file systems, version history, collaboration, and one-click Pen deployment. source
- Embeds and API
- Pens can be embedded on other websites, and CodePen documents a basic REST API, POST-to-prefill, oEmbed, and prefill embeds. source
- Founded
- 2012 source
- Free plan
- Yes source
- Headquarters
- Bend, Oregon, United States source
- Integrations
- Users can add external CSS and JavaScript resources, use other Pens as resources, and search for JavaScript and CSS libraries from CDNjs. source
- Intended users
- CodePen describes itself as useful for developers of any skill and particularly empowering for people learning to code, as well as for prototyping, debugging, client review, hiring, and portfolios. source
- npm packages
- CodePen's compiler can process bare npm package imports with import maps, and package search is powered by the jsDelivr API. source
- Preprocessors
- CodePen supports HTML preprocessors including Markdown, Haml, Slim, and Pug, and CSS preprocessors including Sass, Less, Stylus, and PostCSS. source
- Private content
- PRO private Pens and Collections are hidden from public search and profiles, but anyone with the unguessable shared URL can view them without logging in; CodePen says this is not enterprise-level security. source
- Private projects
- Yes source
- Public content
- Pens and Projects are public by default, and the privacy policy says public Pens and Projects are automatically licensed under MIT. source
- Purpose
- CodePen is a social development environment for front-end designers and developers to build, test, deploy, share, and discover front-end code. source
- Security
- CodePen says it uses security processes, firewalls, and generally available security technologies, and states that it cannot guarantee data security from intrusion or unauthorized release. source
- Self-hosting limit
- CodePen states that it does not offer a self-hosted version. source
- Support
- CodePen directs users to its documentation and an online support form, and lists [email protected] as a contact address. source
- Team collaboration
- Teams share Pens, Collections, Assets, and billing, and team members get PRO features and can edit Team Pens together. source
Checked against the maker's pages on 30 Sept 2026.