onlinecompiler.io

VS Code extension

Run the file you are editing in any of 46 languages without installing a compiler. The OnlineCompiler.io extension sends it to the API and shows the output, errors, exit code, time and memory in VS Code.

Install it from the Visual Studio Marketplace, or press Ctrl+P (Cmd+P on macOS) in VS Code and paste:

VS Code Quick Open
ext install onlinecompiler.onlinecompiler

On the first run it asks for an API key: get a free one from the dashboard (key type API) and paste it in. Then open a file and press Ctrl+Alt+R (Cmd+Alt+R on macOS), or the run button in the editor's title bar. The output appears in the OnlineCompiler.io panel:

Output
[Running] main.py with python-3.14, stdin from main.py.in
Hello, World!

[Done] exit code 0, time 0.025 s, memory 8.0 MB

How it works

  • It picks the compiler from the file's extension (python-3.14 for .py, g++-15 for .cpp, openjdk-25 for .java and so on); OnlineCompiler: Choose Language picks another for the file.
  • Input comes from main.py.in or input.txt beside the file.
  • With text selected, it runs only the selection.
  • OnlineCompiler: Set API Key changes the key, and the stop button ends a run.

Source and issues: github.com/onlinecompiler-io/onlinecompiler-vscode. In the browser, the online compiler does the same with no install at all.

Questions

Do I need to install Python, Java or a C++ compiler?
No. The extension sends the file to OnlineCompiler.io, which runs it in a sandbox with the compiler already installed, so 46 languages work on any computer that has VS Code.
Is it free?
Yes, with a free API key: the Free plan has 100,000 runs a month and needs no card.
How does my program read input?
From a file named after the source file plus .in (main.py.in for main.py), or input.txt in the same folder. With the onlinecompiler.askForInput setting on, it asks for a line before each run instead. A program cannot ask for more input while it runs.
What is sent, and where does it run?
The file's text (or the selection) and its input go to OnlineCompiler.io, which runs them in a fresh sandbox with no network, for up to 30 seconds and 512 MB, and keeps the run in your account's history. The extension sends nothing else and has no telemetry. Your key stays in VS Code's secret storage.