Run JavaScript online

Run JavaScript online with a fast browser preview

Paste a snippet, edit supporting HTML and CSS, and run the result in a browser preview built for quick feedback.

Built for the in-between work

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

01

Run code where it will actually behave

TSBin runs JavaScript in a browser preview, so DOM, timers, events, canvas, and layout code can be tested in their natural context.

02

Keep the feedback loop short

The editor is meant for quick changes and repeated runs, with keyboard shortcuts and console output close enough for focused debugging.

03

Move snippets when they grow up

When a small experiment becomes useful, export the workspace as project files and continue in the toolchain of your choice.

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 run JavaScript without creating a project?

Yes. Open the editor and start from the default project. You can save the workspace locally only when it becomes worth keeping.

13Can I add TypeScript later?

Yes. TSBin supports JavaScript and TypeScript in the same browser workspace, so you can switch as an example needs types.