About this tool
Paste a bit of markup, write styles beside it and watch the preview restyle itself as you type. It is a quick place to try out grid and flexbox layouts, transitions, selectors or a new property before moving it into a real project. The preview runs in an isolated frame with network access blocked, and your work stays in this browser.
How to use CSS Playground
- Put your markup in the HTML tab.
- Write styles in the CSS tab.
- Watch the preview update as you type.
- Download everything as one HTML file to keep it.
Frequently asked questions
Can I load Google Fonts or external stylesheets?
No. The sandbox blocks network requests, so use system fonts or fonts embedded as data URLs.
Does the preview support new CSS features?
It renders with your own browser's engine, so a feature works here exactly when your browser supports it.