Create. Experiment. Learn.

Code Playground

Bring your ideas to life with HTML, CSS and JavaScript. Write code, see the result instantly, and build something you can share.

Free to use No setup or sign-up needed

Your next idea starts here
HTMLBuild the structure
CSSMake it your own
JavaScriptBring it to life
One workspace. Instant feedback.
Your workspaceBuild something great

Code editorHTML · CSS · JS
Live resultReady to run

The result appears here when you press Run.

Sandboxed previewRun your code with Ctrl / ⌘ + Enter

FROM IDEA TO INTERACTIVE

Make yourself at home.

Everything you need to experiment, learn, and build your next idea.

01

Start with a spark

Pick a starter template or start with a blank page. Add, rename, and switch between HTML, CSS and JavaScript files.

02

See it come to life

Edit your code and watch the preview update. Try different screen widths and use the Console to inspect messages and errors.

03

Take your work further

Download your files as a ZIP, share a link to your code, or sign in to save private projects and pick up where you left off.

GOOD TO KNOW

A few questions,
answered.

Get comfortable with your workspace. Here’s how your files, previews and privacy work.

Back to the playground
How are my files combined?

Your HTML, CSS and JavaScript files are combined into one preview. Stylesheets and scripts that your HTML does not link are included automatically. You can use up to 20 files, each up to 200 KB.

Is my code private?

Nothing is stored unless you press Share or Save. Saved projects are private to your account. Shared links can be opened by anyone with the link, are not indexed, and expire after 180 days when shared without signing in. Never share passwords or API keys.

How does the preview stay isolated?

Your code runs in a sandbox that cannot access your account or cookies, send data to other websites, or open pop-ups. External libraries can load from cdnjs, jsDelivr and unpkg only.

Can I run my code manually?

Yes. Switch off Auto-run and press Run code whenever you are ready. You can also use Ctrl+Enter on Windows and Linux, or Cmd+Enter on a Mac, while editing.