Please enable JavaScript to use CodeHS

The classroom IDE

Powerful online IDE.
Built for students and teachers.

Autograders, code history, and school privacy compliance, all in the same IDE your students already use to write and run code. No downloads required.

Autograders
Instant feedback on every run
Messaging
Students and teachers message in-editor
Code History
Every version autosaved, always recoverable
Collaboration
Code together in a shared program
How it teaches

A full teaching layer,
right inside the editor.

The moment they Run

Autograders check student work instantly.

No more hand-grading 30 nearly-identical programs. CodeHS runs pre-written or custom test cases the moment a student clicks Run, flagging exactly what passed and what didn't.

Custom test cases Instant feedback Pass / fail detail
Test Cases
TestPassMessage
Functionality ✗ Output doesn’t match expected
Style: Indentation ✓ Looks good!
Style: Variable Names ✓ Descriptive names used
Style: Comments ✓ Header comment present
Style: Blank Lines ✓ Spacing is appropriate
Style: Line Length ✓ All lines under 80 chars
Help
Andy B 2 min ago

My loop runs but everything prints on one line. What am I missing?

Ms. Rivera just now

Good catch. Look at what your print adds between values by default, then tell it to start a new line each time.

Message your teacher…
When they get stuck

Students ask for help right on their code.

Stuck students message you from inside the editor, with the exact program attached. You reply in context, so there's no email thread and no guessing which line they mean.

In-editor messages Code in context Reply inline
AI, on your terms

AI helps students get unstuck, and speeds up your grading.

You decide whether to turn on an AI tutor that nudges students in the right direction on their own code, never handing over the answer. And AI grading drafts a score and feedback on rubric work for you to review, adjust, and post.

AI hints AI-suggested grades Optional Pro
Ask AI
Andy B just now

Stuck on the guessing game, it never says I win even when my number is right.

AI Hint just now

What type does the input come back as? A typed "7" and the number 7 aren’t equal yet, try converting before you compare them.

Code history · 4 versions today
Added newline to loop output
3:42 PM +3
24 lines appeared at once
3:30 PM Pasted
Wrote the loop by hand
3:11 PM +8
Initial file created
2:58 PM +1
Every step, on the record

Full code history, with pasted code flagged.

CodeHS saves every version as students work, so you can see how a program came together. Pasted code is flagged automatically, so a block that appears all at once stands out, giving you the context for an honest conversation.

Automatic versioning Paste detection Timeline view

Paste flagging, AI hints, and AI-suggested grades are part of CodeHS Pro.

Blocks to text

Start in blocks, graduate to code.

Beginners build real programs with drag-and-drop blocks, then flip the same project to text when they're ready. Same concepts, no syntax errors to fight on day one.

when run
pen down
repeat 4 times
move forward 50
turn left 90°
pen up
Teachers are in control

Your classroom, your rules.

You know your students best. Blocks, copy/paste prevention, editor engine: the IDE settings for each class are yours to set. Configure per section or even per student. Block-based coding isn’t a phase students age out of. It’s a switch you turn on when it helps and off when they’re ready for text.

▣ Class settings · Intro to JavaScript
Copy/Paste Prevention Block pasting into the editor to keep the work students’ own
Editor engine Monaco (VS Code’s editor) or Ace, your choice
Everything included

Other CodeHS IDE Essentials

One IDE with everything teachers need to run a great class. No plugins, no setup, no extra cost.

Debugging

Walk through programs line-by-line to find bugs in your code with the built-in debugger.

Works Anywhere

Code on any device. Chromebooks, iPads, tablets, or desktop. All you need is a browser.

Auto-Saving

CodeHS saves every keystroke to the cloud, so students never lose their work.

Documentation Tab

Reference syntax rules and language docs without leaving the IDE.

Export & Download

Download your code any time. It works in other IDEs too.

Compliant for Schools

The CodeHS IDE meets school and district privacy and data requirements, including COPPA and FERPA.

Autocomplete

Smart suggestions complete code and close brackets as students type, in both the Monaco and Ace editor engines.

Customize Your Theme

Switch the editor between light, dark, and high-contrast themes like Monokai, so every student codes comfortably.

Accessible to Every Learner

High-contrast themes, adjustable font sizes, and screen-reader-friendly settings make coding accessible to all students.

FAQ

Common Questions

Do students need to create an account to use the IDE?

No account is required to try the IDE. Students can start coding immediately for free. For classroom features like autograders, code history, and teacher messaging, a free CodeHS account is needed.

Does it work on Chromebooks?

Yes. The CodeHS IDE runs entirely in the browser with no downloads, installs, or plugins. It works on Chromebooks, Windows, Mac, iPad, and any device with a modern browser.

What programming languages are supported?

The CodeHS IDE supports 10+ languages including JavaScript, Python, Java, HTML/CSS, C++, SQL, Lua, C, C#, p5js, and bash, plus Karel, Turtle, and block coding for beginners. New languages are added regularly.

What is Karel the Dog?

Karel the Dog is how millions of students write their first program on CodeHS. Karel lives in a grid world and knows just four commands: move, turn left, put down a tennis ball, and pick one up. Students teach Karel new tricks with functions, loops, and conditions, learning core programming ideas before syntax gets in the way. Karel builds on Karel the Robot, created by Stanford professor Rich Pattis in 1981, and works in JavaScript, Python, and Java. Meet Karel the Dog.

What is Tracy the Turtle?

Tracy the Turtle is how CodeHS students learn Python by drawing. Students write real Python commands like forward(100) and right(90), press Run, and watch Tracy draw the result on a canvas, so every bug is visible and every loop becomes a pattern. Tracy is inspired by Seymour Papert's Logo turtle, and grows with students from a first square to recursive fractals and generative art. Meet Tracy the Turtle.

How do autograders work?

Autograders run a set of test cases against a student's program the moment they click Check Code. You can use CodeHS's pre-built tests or write your own. Results show which tests passed or failed with a message explaining why.

Is the CodeHS IDE free?

Yes. The CodeHS IDE is free to use: anyone can write, run, and save code in the browser, no account required. A free teacher account adds classes, assignments, student messaging, in-editor code history, and built-in autograders that give students instant feedback. CodeHS Pro adds AI grading, AI student hints, and academic-integrity tools.

Can students save and share the programs they build?

Yes. The CodeHS Sandbox lets students save their own programs in the cloud. Sharing is controlled by teachers and schools, who can enable or disable the feature. When sharing is enabled, students can share programs with a link or embed them on other websites.

Can students upload files or import an existing project?

Yes. Students can upload images and other files from their computer directly into a program, and uploading a .zip file unpacks the whole project into the editor's file tree. Code written in another IDE can be imported and picked up right where it left off.

Can students use real Python packages and Java libraries?

Yes. In Python, students list packages in a requirements.txt file and the CodeHS IDE installs them from PyPI automatically when the program runs. Java programs can run with .jar files, so classes can build on real libraries the way professional developers do.

Is CodeHS compliant with school privacy laws?

Yes. CodeHS is COPPA and FERPA compliant and has signed Student Data Privacy Consortium (SDPC) agreements with many districts. We never sell student data and provide data processing agreements for schools that require them. See our privacy center for details.

Start teaching in the CodeHS IDE.

Join thousands of CS teachers using CodeHS to autograde, give feedback, and track student progress, all without leaving the editor.

Free to start. Nothing to install.