TryJS is a free JavaScript and TypeScript playground that runs entirely in your browser. Write code and see results instantly — no signup, no backend, no installation required. Whether you want to learn JavaScript, experiment with TypeScript, test a quick idea, or share a runnable code example, TryJS gives you a fast and distraction-free environment to do it.
Switch between JavaScript and TypeScript with one click. TypeScript is transpiled in-browser using Sucrase, so there is zero server round-trip. The editor auto-runs your code as you type with a smart debounce, and you can trigger immediate execution with Cmd+Enter. The built-in console displays logs, warnings, errors, tables, timing output, and REPL-style expression results — just like Chrome DevTools.
Import any npm package by writing a standard import statement such as
import confetti from "canvas-confetti". TryJS rewrites bare
specifiers to
esm.sh and loads
modules on the fly. No node_modules, no bundler
configuration — just import and use. See it in action on the
features page.
Switch to Web Playground mode to write HTML, CSS, and JavaScript in a tabbed editor with live preview. Build and prototype web pages directly in the browser without any extra setup. The preview updates as you type, and a built-in console captures script output and errors.
Browse a curated snippet gallery covering JS fundamentals, async patterns, and TypeScript essentials. Share your code as a compact URL that preserves editor state, or embed the playground as an iframe in blog posts and documentation. You can also export your code as a styled PNG image with syntax-highlighted themes, window frames, adjustable padding, and gradient backgrounds — perfect for social media and presentations.
Choose from six syntax themes including One Dark, Dracula, GitHub Light, Monokai, and Solarized Dark. Pick your preferred editor font from Geist Mono, Fira Code, or JetBrains Mono. The resizable split pane lets you control how much space the editor and console each occupy. Code is saved to localStorage per language so you never lose your work.
All code execution happens inside a sandboxed iframe with a five-second timeout to prevent runaway scripts. No code is ever sent to a server. TryJS works on desktop and mobile with a responsive, streamlined interface optimized for speed.
TryJS is open source under the MIT license. View the source code on GitHub, explore all capabilities on the features page, or start coding now at tryjs.app.