main.ts
Loading editor…
ReadyLn 1, Col 1TypeScript

TypeScript

TypeScript online compiler

Compile and run TypeScript online on Node with console output, or switch to Preview to run it in a web page. Free, no sign-up.

About this TypeScript compiler

TypeScript adds types on top of JavaScript. This compiler accepts a single TypeScript file, runs it through the sandbox toolchain, and returns the programme output.

Questions and answers

Do I need a tsconfig?
No. Paste a self-contained file. It is checked in strict mode by TypeScript 7.0 and run on Node.js 26.13.