Runs in your browser — nothing is uploaded
Ctrl+Enter runs · Tab indents · Ctrl+/ comments · Esc then Tab leaves the editor
Console
How to use TypeScript Playground
Strict type-checking with the official TypeScript compiler, then run the output — all in your browser.
- Write code or load an example.
- Press Run (Ctrl+Enter).
- Read the output and fix errors.
- Share a link, download the file or keep the draft in this browser.
Questions
Which TypeScript version?
The TypeScript 6 compiler in strict mode with ES2022 and Web Worker library types.
Can I run code with type errors?
Tick “Run even with type errors” — TypeScript still emits JavaScript, just like tsc without noEmitOnError.
Is my code uploaded?
No. It runs in your browser and drafts are saved only in this browser. Share links keep the code in the part of the URL after #, which browsers never send to a server.