We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Online TypeScript Playground – Compiler, Interpreter and Editor

Edit, run, and debug TypeScript code online for free! Powered by TypeScript that runs in your browser.

Edit the TypeScript project above and press Run. The playground checks the types, transpiles the source to JavaScript, and executes the result in a browser worker.

Use it to test type definitions, strict compiler settings, and small multi-file modules without installing TypeScript or Node.js.

How to use the online TypeScript playground

  1. Edit main.ts and text.ts, or add another .ts module.
  2. Adjust tsconfig.json when you want to experiment with compiler options.
  3. Press Run to check the project, transpile it, and inspect its output or type errors.

What this TypeScript playground supports

  • Type checking. Catch project-wide TypeScript errors before execution.
  • Compiler options. Experiment with the included tsconfig.json file.
  • Local modules. Split a small project across multiple .ts files.
  • Browser execution. Transpile valid TypeScript and run the resulting JavaScript in a worker.

Learn TypeScript by writing code

Practice TypeScript in a structured course that moves from types and functions into generics, modules, and real programming exercises.

Learn TypeScript course

(it takes 2 minutes)

Online TypeScript playground FAQ

Yes. You can check and run TypeScript without installing anything or creating an account. An account is only required to create a share link.