How to use the online CSS editor
Experiment with styles without setting up a project. Change a rule and the preview updates immediately.
Step by step
- Write your code. Type or paste it into the editor on the left.
- Watch the preview. The page on the right updates as you type, in a sandbox.
- Copy or download. Copy the code or save it as a file.
Tips for better results
- Edit the HTML to try selectors on your own markup.
- Use Format code to tidy the CSS.
- Download gives you the CSS file; copy the HTML separately if you need it.
Limits to know
- Formats: HTML and CSS
- Size: Limited by browser memory
- Notes: The preview is sandboxed and has a fixed frame width.
At a glance
| Tool | CSS Editor |
|---|---|
| Category | Developer Tools |
| Works with | HTML and CSS |
| Size limit | Limited by browser memory |
| Where it runs | In your browser tab; your input is not uploaded |
| Cost | Free, no sign-up |
Frequently asked questions
Does it support media queries?
Yes, but the preview frame has a fixed width, so resize the browser window to test.
Is my code saved?
No. Copy or download it before closing the page.
If something does not work
- The result is empty. Check that you typed or pasted text into the input box and that the options are not hiding everything.
- The page feels slow. Very large text slows any browser tool. Work on smaller parts.
- Characters look wrong. Make sure the text is saved as UTF-8 in the program you copied it from.
- Copy does not work. Some browsers block automatic copying; select the result and copy it yourself.
Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.
Related tools and guides
- JSON Formatter: Format, indent, sort and minify JSON. Invalid JSON is reported with the line and column of the problem. Read the guide
- JSON Validator: Check whether your JSON is valid. If it is not, see the exact line and column and a plain-English reason. Read the guide
- HTML Formatter: Indent and tidy HTML. Inline tags stay on the line, and embedded CSS and JavaScript are formatted too. Read the guide
More tools like this are in Developer Tools, or browse all tools.