Code
Sandbox

The online code editor forĀ 
React

CodeSandbox is an online editor that helps you create web applications, from prototype to deployment.

Tailored for web applications

We know how overwhelming JavaScript development can be. With CodeSandbox we specifically focus on web application development to make the experience as smooth as possible. Just open your browser and start coding.

React

Supported Loaders

babel.js
html.html
css.css
image.png

CSS Scoping Support

Global

Share in a single click

Say goodbye to the days where you had to create a zip file just to share your code. Now you can copy the link and share away!

Dependency
Sandbox Count
Algolia

NPM Support

Think of any npm dependency you want to use, we probably support it! You can install a new dependency within seconds.
Learn how it works.

Search & Discovery

Want to know how a library works? You can easily browse through the 80,000+ created sandboxes on CodeSandbox. We want this to be a platform where everyone can easily learn and share.

Embedding

We built a lightweight version of CodeSandbox for embeds, this allows you to embed your sandbox anywhere. Viewers can even play with the code in the embed, without leaving the website. We offer many customization options to make sure you can show the embed exactly the way you want.

Browser

Be Productive, Anywhere

We aim to give you the tools to build a full blown web application. You can easily import projects from GitHub, make commits, and finally deploy. We support the whole cycle.

Import

Paste your GitHub URL. You get a sandbox that stays up to date with the latest changes automatically.

Build

Fork the sandbox and start building that long awaited feature!

Commit

Commit your changes or open a pull request with a user friendly UI.

Deploy

Deploy a production version of your sandbox using ZEIT Now.

There's more

This was just the tip of the iceberg. There are many more things to explore, if you are missing anything you can always open an issue on GitHub.

Export to GitHub
new
All sandboxes can easily be exported to a GitHub repository.
Static File Hosting
new
The development server will serve all files statically from the public folder, depending on the template.
Integrated DevTools
new
The preview window has integrated DevTools, like a console. There are more DevTools underway.
Private/Unlisted Sandboxes
patron
You can set a sandbox to private or unlisted to make sure others cannot see or find it.
Externally Hosted Previews
You can open your sandbox preview with a separate URL, while still keeping Hot Module Reloading.
Monaco Editor
We use the same editor as VSCode, which gives us "Go to Definition", "Replace Occurences" and more!
Hot Module Reloading
Hot Module Reloading is built in, so you won't have to press refresh for every change.
Error Overlay
We show a user friendly error overlay for every error, sometimes with suggestions on how to solve it.
Automatic Type Acquisition
Typings are automatically downloaded for every dependency, so you always have autocompletions.
TypeScript
Thanks to Monaco we show TypeScript autocompletions and diagnostics for TS sandboxes.
Prettier
Code automatically gets prettified on save according to your own Prettier preferences.
ESLint
All code is linted automatically using latest version of ESLint, with full ES6 support.
;
Emmet.io
You can easily expand abbreviations with Emmet.io in all JS, HTML and CSS files.
Open Source
We're almost fully open source! Our most active repository can be found here.
Import with CLI
You can export a local project to CodeSandbox easily using codesandbox-cli.
Export To Zip
You can always download a zip from your sandbox for if you want to continue locally.

Become a Patron

You can support our development by becoming a Patron and paying a monthly amount of your choice. As a Patron you get less limits and extra features, like private sandboxes. There are more patron features coming.