Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

PRO members can see and edit the Pen thumbnail here after the Pen has been saved.

HTML

HTML

HTML

3 unsaved changes

CSS

CSS

CSS

JS

JS

JS

Console

Assets

Asset uploading is a feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, CSS frameworks JavaScript libraries, 3D models, JSON data... anything you want! You can even edit them anytime, like any other code on CodePen.

Choose a Plan

What do you get for being PRO? A lot!

See PRO Features

Individual Plans
Team Plans

Free

Annual Starter

Annual Developer

Annual Super

$0/month

Forever

$8/month

Billed at $96/year.

You’re saving $48
by billing annually.
$12/month

Billed at $144/year.

You’re saving $84
by billing annually.
$26/month

Billed at $312/year.

You’re saving $156
by billing annually.
Sign UpSign UpSign UpSign Up
  • Unlimited public Pens and Collections
  • Unlimited templates
  • Asset hosting
    2 GB total storage
    5 MB per file
  • 10 Projects
    50 files/Project
    1 deployed
  • 2 person Collab Mode
    10 person Professor Mode
    (Pens only)
  • Unlimited Private Pens, Collections, and Projects.
  • Unlimited embed themes with custom CSS
  • No ads
  • No-Login Pen Debug View
  • Live View
  • Asset hosting
    10 GB total storage
    10 MB per file
  • 25 Projects
    150 files/Project
    5 deployed
  • 6 person Collab Mode
    35 person Professor Mode
    (Pens only)
  • Use your own domain for Projects
  • Asset hosting
    20 GB total storage
    15 MB per file
  • 50 Projects
    300 files/Project
    20 deployed
  • 10 person Collab Mode
    100 person Professor Mode
    (Pens only)