TypeScript Playground
Type-check and run TypeScript instantly in your browser.
tsc loading…
Loading editor…
Console
0
Console is empty. Use console.log to print here.
About this playground
Authoritative TypeScript playground with real diagnostics, transpiled JS output and live execution. Perfect for prototyping types.
Related Playground Tools
Explore more free utilities in Playground
HTML / CSS / JS Playground
Live HTML, CSS and JavaScript editor with console capture and share-by-URL.
Open
JavaScript Playground
A focused JS-only REPL with console capture, async/await, fetch and share-by-URL.
Open
Markdown Playground
Live GitHub-flavored Markdown editor with preview, copy and download.
Open
React Playground
React 18 sandbox with JSX, hooks and live preview.
Open
Vue Playground
Vue 3 single-file-style playground with composition API.
Open
Svelte Playground
Compile and run Svelte components live in your browser.
Open