[ LANGUAGE — STRICT MODE ]
Run TypeScript online. No install.
Compile and run TypeScript online. Check types and logic instantly in your browser.
Sample — copy into the compiler
function greet(name: string): string {
return `Hello, ${name}!`;
}
console.log(greet("CodeLab"));1. Open the TypeScript runtime
Go to the compiler and select TypeScript. Your code persists per language.
2. Paste and add input
Copy the sample or type your own. Fill stdin if the program reads input.
3. Run and share
Press Run in the editor, then copy the page URL to share your exact state.
TypeScript FAQ
Do I need to install TypeScript to use this?
No. The Strict mode runtime runs in your browser via CodeLab's embedded editor. Open the compiler, pick TypeScript, and press Run.
Is running TypeScript online free?
Yes. The CodeLab Playground is free with no account. Optional paid plans add privacy and larger limits — see the pricing page.
How do I handle input in TypeScript?
Use the stdin panel inside the editor for piped input, then press Run. The sample below reads a name from stdin.