OneCompiler

Code online with One Compiler.

One Compiler helps over 12.8 million users worldwide write code online.




Users from world's top companies and schools
Microsoft
Meta
Nvidia
Stripe
Perplexity
Samsung
Amazon
Google
IBM
WalMart
Intel
Paypal
Harvard
Princeton
MIT
Yale
Stanford
cam
+ thousands of other companies and schools

APIs, Editor embedding & more

Embed Editor & Challenges

Embed our Editor & Challenges as an iFrame into your website to get the code execution capabilities in minutes.

APIs to run code

Build more complex use-cases by calling our APIs from your backend applications to run code, read reports etc.,

Custom workflows

Reach out to us to build custom workflows that are not covered by APIs, to solve your use-cases

Read API Documentation


100+ customers across the globe trust us

State-of-the-art coding agents
in your browser.

The agent inside the editor reads your workspace, edits files in place, creates new ones and cleans up after itself, step by step, while you watch. Every change lands behind a checkpoint you can roll back. Nothing to install.

Open the editor Free to use, in 110+ languages
index.htmlstyles.cssscript.js RunAI Agent
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <title>My site</title>
6 <link rel="stylesheet" href="styles.css" />
7 </head>
8 <body>
9 <header>
10 <h1>My site</h1>
11 <button id="theme-toggle" aria-label="Toggle dark mode">🌙</button>
12 </header>
13 <main>…</main>
14 <script src="script.js"></script>
15 </body>
16</html>
1 of 3 · index.htmlRejectApply
Add a dark mode toggle to the header and remember the choice.
  1. Checking the header markup and the existing styles.
  2. Readstyles.css
  3. Editedindex.html
  4. Editedstyles.css
  5. Createdscript.js

The header has a toggle button now. styles.css switches colours on a dark class, and script.js saves the choice in localStorage so it sticks on refresh. Run it and try the button.

4 steps · Edited index.html, styles.css · Created script.js2.8k tokens · 5.4s Restore
3 files changed+41 −6RejectApply
Ask anything, or describe a change. Type / for commands
Model â–¾
Edits land in your files

Changes stream straight into the editor with every changed line marked.

Multi-step turns

Reads, edits, creates and deletes files across your workspace to finish one instruction.

Every turn is a checkpoint

Restore it, re-apply it, or go file by file with Apply and Reject before you move on.

It sees what you see

Your files, input, the last run's output and the code you've selected.

Talk, paste, attach

Dictate with the mic, paste a screenshot, or attach files to a turn.

Your model, your call

Models from OpenAI, Anthropic, Google, DeepSeek, xAI and more. Free ones included.

OpenAIAnthropicGoogleDeepSeekxAIMoonshot AIQwenMeta