Tools / Code
Code playground
Write or paste Python, JavaScript or SQL and run it right in your browser — nothing to install. If you hit an error, one button explains it and gives you the fixed code. Share code with a link.
Your code runs in your browser — only «Explain» sends it to an AI model
Output
How to use it
- Pick the language and write code (or pick a ready example).
- Press Run (or Ctrl+Enter) — output shows below.
- Got an error? «Explain the error» explains and fixes it. Want to understand code? «Explain the code».
Questions
Where does the code run?
In your own browser (Python via Pyodide, SQL via SQLite) — nothing is uploaded. The first Python run downloads the engine (about 10 MB) once.
Can I use libraries?
Yes — numpy, pandas and many other Pyodide packages load automatically when you import them.
Does input() work?
Yes — type the inputs in the Input box, one value per line, and each input() takes the next line.
Does explaining send my code?
Only when you press it: the code and error go to Gemini for the explanation and aren't kept.