Online CSS Editor with Live Preview
Edit HTML and CSS side by side and watch the styles apply live. Format the CSS, then copy or download it.
How to use CSS Editor
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.
Features and benefits
What you get
Live preview
Your page is shown in a sandboxed frame.
Sandboxed
The preview cannot read this site or your files; it runs in an isolated frame.
Format with one click
Tidy your code using the built-in formatter.
No sign-up
Open the page and start.
Supported formats and limitations
What to expect
Supported formats
HTML and CSS
Size limits
Limited by browser memory
Limitations
The preview is sandboxed and has a fixed frame width.
Frequently asked questions
Quick answers
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.
Related tools
More from Developer Tools
JSON Formatter
Format, indent, sort and minify JSON. Invalid JSON is reported with the line and column of the problem.
JSON Validator
Check whether your JSON is valid. If it is not, see the exact line and column and a plain-English reason.
HTML Formatter
Indent and tidy HTML. Inline tags stay on the line, and embedded CSS and JavaScript are formatted too.
Related guides
Read more about this tool