HTML/CSS/JS Playground
A mini VS Code in your browser: write or open HTML, CSS and JavaScript and see it live.
Runs on your device · no upload
Loading tool…
About HTML/CSS/JS Playground
HTML/CSS/JS Playground is a small code editor with syntax colours, line numbers, auto-complete and a live preview. Write your page in three tabs, or open an existing .html file and it is split into HTML, CSS and JavaScript for you. Check console messages, test phone and tablet widths, then download the finished page. Your code runs in a sandbox and never leaves your device.
When to use it
- Try HTML, CSS and JS without installing anything.
- Practise web basics on a phone.
- Share a quick demo.
Tips for a good result
- Turn on Auto-run for live preview.
- Console output shows below the preview.
Frequently asked questions
Can I open an existing HTML file?
Yes. Press Open file and choose an .html file. Its styles and scripts are moved to the CSS and JS tabs. You can also open a single .css or .js file.
Is my code saved?
It is saved in your browser automatically, so it is still there when you return. Use Download .html to keep a copy.
Can I use libraries like Bootstrap or Tailwind?
Yes, add the CDN link tag in the HTML tab. This needs an internet connection.
Is it safe to run any code?
The preview runs in a sandboxed frame that cannot reach this site or your other tabs.