JavaScript playground

A JavaScript playground for browser experiments

Test DOM code, browser APIs, layout behavior, and small UI ideas in a focused JavaScript workspace with preview and console output.

Built for the in-between work

Write TypeScript, JavaScript, HTML, and CSS, preview changes quickly, and export the files when you need them.

01

A playground that stays close to the browser

Write JavaScript with the page structure and styles it needs, then inspect the result in the preview and console without a build setup.

02

Useful for small UI and API tests

TSBin fits the moments before a full app: trying event handlers, checking browser behavior, or reducing a snippet for a teammate.

03

Private drafts stay local

Saved projects live in browser storage, so you can keep rough ideas and reusable snippets without creating an account.

What TSBin gives you

Concrete browser-editor features, not a social feed or a heavy project scaffold.

preview renders under 50ms
1Live

Sub-50ms previews

Run JavaScript with live DOM output and under-50ms refreshes on the warm preview path.

2Live

Console built in

Inspect logs, clear output with clear(), and keep the console beside the preview.

3Live

HTML and CSS context

Keep markup, styling, and JavaScript in the same browser workspace.

4Live

Keyboard shortcuts

Use the shortcuts dialog for editor commands, theme switching, and faster navigation.

Frequently Asked Questions

1Is my code saved anywhere?

Your projects are saved in your browser's local IndexedDB storage once you save or run them. Existing saved projects autosave after edits, and TSBin does not upload your code to an account.

2Do you have plugins?

Emmet support is available today for HTML and CSS editing. More editor helpers are planned.

3Do you have Markdown support?

Markdown support is coming soon. Today, TSBin supports HTML, CSS, JavaScript, TypeScript, and JSON project files.

4Can I keep working offline?

Yes. TSBin is designed around local-first browser storage, so saved projects can reopen without account setup or a server round trip.

5What file formats can I save or export?

TSBin supports HTML, CSS, JavaScript, TypeScript, and JSON project files. Export keeps those document formats in a zip file.

6Can I download my code?

Yes. Use File > Export Project to download the current workspace as a zip file.

7How can I clear the console?

Type clear() in the console and press Enter. The shorter clear command also clears the console.

8Does TSBin support dark mode and light mode?

Yes. Use the theme button or Settings to switch themes, or press ModShiftS to toggle between light and dark mode.

9Does TSBin support keyboard shortcuts?

Yes. Open the keyboard shortcuts dialog from the header or press Mod/ to see the available shortcuts.

10Do I have to create an account?

No. There is no account setup, and TSBin does not create an account for you automatically.

11How do I request features or report bugs?

Open the File menu and choose Send Feedback. The form supports bug reports, feature requests, and privacy requests.

12Can I use TSBin for plain JavaScript?

Yes. TSBin supports JavaScript projects directly, with HTML and CSS files available when the snippet needs a page.

13Does the playground include a console?

Yes. The console panel shows browser logs and can be cleared with clear() or clear.