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.

  1. Write code or load an example.
  2. Press Run (Ctrl+Enter).
  3. Read the output and fix errors.
  4. 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.

Ratings & reviews

No ratings yet. Signed-in users can rate this app.