Online Python Editor
An online Python editor with syntax highlighting, autocompletion, automatic indentation and Vim, Emacs or VS Code key bindings. Write your script, press Run to execute it on Python 3.12, and keep working: your code is saved in the browser as you type.
How to run Python code online
- This page opens with Python selected, so you can start typing straight away.
- Write your code in the editor, or open files from your computer: single files, or a whole project as a .zip.
- Press Run, or Ctrl+Enter. The output appears in the panel beside the editor, and when the program asks for input you type it there and press Enter.
- Share a copy with a link, or save your files to your computer.
Python 3.12 on Online IDE
- NumPy and pandas are installed, alongside the full standard library.
- input() works: when your script asks a question, type the answer in the output panel and press Enter.
- Split a script into several files and import them: the file in the active tab is the one that runs.
- Read command-line arguments from sys.argv after typing them in the arguments box above the output.
Example: a Python program that reads input
name = input("What is your name? ")
count = int(input("How many times? "))
for i in range(1, count + 1):
print(f"{i}. Hello, {name}!")
Features of this tool
- Simple and fastA clean, lightweight editor that opens instantly.
- Powered by AceThe Ace code editor, with syntax highlighting, autocompletion and bracket matching.
- Interactive programsType input into the terminal while your program runs.
- Several filesWork in tabs, open files or a .zip from your computer, and save the project back to disk.
- Made for learningHelpful for beginners to learn and practice programs.
- Light and dark themesPlus 39 editor themes, a choice of coding fonts, and Vim, Emacs or VS Code keys.
- Keep your outputCopy or download the program output in one click.
- Share by linkSave your code in the cloud and open it anywhere.
Frequently asked questions
Which Python version does Online IDE run?
Python 3.12, on Linux.
Can I use input() in the online Python compiler?
Yes. When your script calls input(), type your answer in the output panel and press Enter. It works like a terminal on your own computer.
Are NumPy and pandas available?
Yes. import numpy and import pandas work without any setup, together with the whole Python standard library.
How do I find syntax errors in my Python code?
Press Run. Python reports any syntax error with the file name, the line number and a marker under the problem, so you can jump straight to it.
More Python tools
Contact us
For any feedback, queries or issues, please feel free to contact us or write to . We value your input and are committed to providing the best possible experience for our users.