TypeScript Playground

TypeScript Playground

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).

TypeScript Playground

Compile TypeScript to JavaScript in-browser using the TS compiler loaded from CDN. Supports generics, classes, decorators, utility types; configurable target and module format.

Common uses

  • Compile a generic utility type to see the output JS
  • Test decorator syntax and view transpiled output

Frequently asked questions

Is my data uploaded to a server?

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."