Choose a high-performance starter template to kickstart your next idea.
Toggle popular libraries to automatically inject them into your live preview and exports.
| Execute / Run Code | Ctrl + Enter or ⌘ + Enter |
| Save Project JSON | Ctrl + S or ⌘ + S |
| Format Active Code | Alt + Shift + F |
| Open Project / File | Ctrl + O |
| Switch to HTML Tab | Ctrl + 1 |
| Switch to CSS Tab | Ctrl + 2 |
| Switch to JavaScript Tab | Ctrl + 3 |
| Toggle Console | Ctrl + ` |
| Show Shortcuts | Ctrl + / |
| Close Dialogs | Esc |
.json project backup or .html file onto the window to instantly load it.>) to test JavaScript directly inside your preview page.
The HTML, CSS & JavaScript Playground lets you write or paste code and view the resulting web page in a live preview. HTML defines the content, CSS controls its appearance, and JavaScript adds interaction.
Edit each language in its own panel, then run the code to see how they work together. Check console messages, adjust preview widths, and save your project or export the combined HTML page.
The HTML editor accepts a complete HTML document or a fragment. Enter plain CSS in the CSS editor without style tags, and plain JavaScript in the JavaScript editor without script tags. The separate CSS is added to the document head, and the separate JavaScript runs at the end of the body.
Automatic draft saving depends on browser storage being available. Clearing browser data or switching browsers can make that draft unavailable. Use Save project to download a JSON backup that preserves the three editors separately. Use Export HTML when you want a combined web page.
Yes. The HTML editor accepts a complete HTML document or an HTML fragment. You can also add plain CSS and JavaScript in their separate editors without wrapping them in style or script tags.
Auto-run refreshes the preview shortly after you stop typing. Turn it off if you prefer to make several changes before clicking Run. You can also press Ctrl+Enter on Windows or Command+Enter on Mac.
Click Save project to download a JSON file containing your HTML, CSS, and JavaScript. Use Open project to load it later. The app also saves a draft in browser storage when available, but downloading a project provides a more reliable backup.
Export HTML combines the code from all three editors into one HTML file that you can open in a browser or upload to your website. External images, libraries, and other linked resources remain external dependencies.
You can reference external resources using absolute URLs, but they require a network connection. Some resources and API requests may fail because of cross-origin rules or restrictions in the isolated preview.
The console below the preview displays messages from console.log() and other supported console methods, along with JavaScript errors and unhandled promise rejections. Click Clear to remove the displayed messages.