Compile TypeScript to JavaScript in-browser using the TS compiler loaded from CDN. Supports generics, classes, decorators, utility types; configurable target and module format.
Click Compile to load the TypeScript compiler and transpile your code.
~5MB download on first use — cached in your browser after that.
Compile TypeScript to JavaScript in-browser with full semantic type-checking, then run the output in a sandboxed iframe. TypeScript compiler loaded from CDN on first use (~5 MB, cached).
Compile TypeScript to JavaScript in-browser using the TS compiler loaded from CDN. Supports generics, classes, decorators, utility types; configurable target and module format.
No — your code compiles and runs entirely in a sandboxed iframe in your browser. The TypeScript compiler itself is loaded from a CDN (unpkg.com) on first use, but your code is never sent anywhere unless you explicitly click "Open in TS Playground."
Type your code in the Compiler tab and the transpiled JavaScript appears, with a selectable target (ES5, ES2015, ES2022) and module format (ESNext, CommonJS, AMD).
Yes, the AST Explorer tab shows the syntax tree.
Yes, the compiler reports syntax and type diagnostics, and you can toggle strict mode.
The TypeScript compiler is loaded from a CDN and runs in your browser.