CSS Editor
runs in your browserno sign-upfree
Edit CSS in a full-page editor with syntax checking, one-click formatting and minifying.
Checking…
About this tool
This CSS editor gives you one large editor with syntax highlighting to read and change stylesheets. It checks your CSS as you type and shows the first syntax error, such as a missing brace. One click formats the CSS with Prettier or minifies it with CSSO, and the number of rules, size and lines are shown under the editor. Everything runs in your browser.
How to use
- Paste or type CSS into the editor, or open a .css file from your computer.
- Watch the status line under the editor: it shows the first syntax error with its line and column, and marks it in the code.
- Press Format to tidy the code or Minify to make it as small as possible.
- Use Full screen for more space, and fold or unfold blocks to focus on one part.
- Copy the code or download it as a .css file.
FAQ
How is this different from the CSS Formatter?
The CSS Formatter shows your input and the result side by side. The CSS Editor has a single, larger editor, and Format and Minify change the code in place, so it is better for reading and editing one stylesheet.
Can I undo Format or Minify?
Yes. Press Ctrl + Z (⌘ + Z on Mac) in the editor to undo it, just like a normal edit.
Are there keyboard shortcuts?
Ctrl/⌘ + Enter formats the code, Ctrl/⌘ + F opens search inside the editor, and Esc leaves full screen.
Is my code sent to a server?
No. Editing, checking, formatting and minifying all run in your browser. Your last code is only saved in this browser so it is still there when you come back. Press Clear to remove it.