CodePen Logo
CodePen Icon

The best place to build, test, and discover front-end code.

CodePen is a social development environment for front-end designers and developers. Build and deploy a website, show off your work, build test cases to learn and debug, and find inspiration.

Google Cloud Future of AI 2025

Google Cloud

Google Cloud's Future of AI: Perspectives for Startups report shares insights from AI experts.

SPONSOR

HTML

<div class="rect"></div>

SCSS

.rect {
  background: linear-gradient(-119deg, $gray 0%, $dark-gray 100%);
}

JS

var colors = ["#748087", "#DE7300", "#748087"];
function animate() {}

A front-end environment made for testing and sharing

Explore the Editor
Support For the Way You Code
Keep Your Pens Private

Nobody can see your private stuff until you want them to, because they are at secret unguessable, non-searchable, non-indexable URLs.

Embed Pens
Asset Hosting
Build Entire Projects
Collab Mode
Screenshot of a code editor with various settings and options