Online JavaScript & TypeScript Compiler — Numio
Run JavaScript and TypeScript online with modern ES2020+ syntax. See console.log output instantly in an isolated sandbox. Free, no sign-up.
Runs in your browser · No sign-up
Ctrl/⌘ + Enter to run
Output
Code runs locally in your browser; it is not uploaded.
How to use
- Choose JavaScript or TypeScript.
- Write your code and print results with console.log.
- Press Run (or Ctrl/⌘ + Enter) to see the output.
Example
// JavaScript example
const nums = [3, 1, 4, 1, 5, 9];
const sorted = [...nums].sort((a, b) => a - b);
console.log("Sorted:", sorted.join(", "));
console.log("Max:", Math.max(...nums));
Details and limitations
Code runs in QuickJS, a separate JavaScript engine compiled to WebAssembly. It is isolated from the page: no DOM, network or browser APIs.
TypeScript type annotations are removed before running. Type errors are not checked; only syntax errors are reported.
FAQ
Can I use document or fetch?
No. The sandbox has no DOM, network or browser APIs. To work with web pages, use the online HTML editor.
Does it check TypeScript types?
No. Types are stripped and the code runs as JavaScript, so only syntax errors are shown.
Which syntax is supported?
Modern JavaScript, including let/const, arrow functions, classes, destructuring, template literals and optional chaining.
Related tools
Format references
Tool page updated: