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
You’re in control

Your classroom, your rules.

Blocks, copy/paste prevention, editor engine: the IDE settings for each class are yours to set. 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 Choose the code editor students see
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.

Sharing & Embedding

Share programs and generate embed code for your LMS, website, or classroom slides.

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.

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++, and SQL, plus Karel and Turtle for beginners. New languages are added regularly.

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.

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.

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.