TypeScript Playground
Write TypeScript, see the compiled JavaScript, and run it — all in your browser.
Loading TypeScript compiler (~3 MB)...
Frequently Asked Questions
Does the TypeScript compiler run in my browser or on a server?▼
The full TypeScript compiler runs entirely in your browser. The compiler is loaded from a CDN (~3MB) on first visit and cached by your browser. No code is sent to any server, so your work stays completely private.
What TypeScript compiler options can I configure?▼
You can configure the compilation target (ES5, ES2015, ES2020, ESNext), the module system (CommonJS, ESNext), and toggle strict mode on or off. These match the most commonly used tsconfig.json options.
Can I run the compiled JavaScript output directly?▼
Yes. Click the Run button or press Ctrl+Enter to compile and execute. Console output from console.log, console.warn, and console.error is captured and displayed in the console panel below the editors.