The CodeHS Sandbox is a place where you can write programs outside of the bounds of an exercise. In the Sandbox, you can start a program from scratch in any of our programming languages and create anything that you can imagine.

Creating Programs in the Sandbox

  • Go to codehs.com/sandbox or click on the Sandbox link in the top left corner of any page. Make sure you are logged in so that you can save the program to your account.

Screenshot highlighting the Sandbox tab in the top-left
  • Name your program and then click Create Program

  • Select any one of the programming languages from the CodeHS curriculum, or additional languages such as Elm, SQL, C, and C++.

Available Program types

You can also create and edit your very own website, that is hosted by CodeHS, by clicking on Edit Homepage. You can access and share your personalized web page by going to your username followed by .codehs.me.

Managing Programs

You can create folders to help organize your programs. To create folders, click the blue plus sign, enter a name for your new folder, and click Add Folder

Animated .gif showing the process of creating a folder in the Sandbox

You can easily organize, rename, and delete programs. Click on the '...' to the far right in the program list to modify a program:

Options Include:

  • Rename: Rename the Sandbox Program

  • Copy: Make a duplicate of the program inside your own Sandbox

  • Move to Folder: Move program into one of your folders

  • Share: Create a share link for program

  • Delete

To recover deleted programs, visit your Account Settings, open the Code History tab, and choose Sandbox Trash.

Sharing Programs

Sharing and Embedding Sandbox Programs

There are many ways to share a Sandbox program, including sharing a link and embedding it in another webpage. Click Share to get a URL to share with others and choose to show or hide your code.

Forking Sandbox Programs

Forking is the ability to copy a program to your own sandbox, essentially taking a snapshot of it and making it your own. When viewing a shared Sandbox, click the fork button to create a separate copy of the program.

Collaborate on Programs With Others

With Collaboration, you and your classmates can use the CodeHS IDE to work together on the same coding activity live and in real time!

Gif showing multiple students editing a Sandbox program together

To start a collaboration:

  1. Go to the Sandbox program you'd like to collaborate on

  2. Click Share, then choose Collaborate

  3. Copy the link and send to to anyone who you'd like to collaborate with

  4. Remember to save as you work!

See For Students: Real Time Collaboration to learn more about collaborating on CodeHS!

Learn More

See Tutorials to level up your coding skills with our interactive Tutorials!

Did this answer your question?