Load CSS and browse its rules
Paste code or load the example. Navigation updates without changing text and follows manual edits, Undo and Redo in the current editor.
HTML / CSS Dev Tools
Format, minify and check in one editor, with the original and undo history available.
Format and Minify process the current content; Check never rewrites code. Indentation applies to the next Format action. Rule navigation follows edits.
Ctrl/Cmd+Enter · Ctrl/Cmd+Z
Enter CSS and choose an action.
0 UTF-16 units
These rules belong to the current content. Editing, formatting or minifying refreshes their positions; select a rule to jump to its current line and column.
The current content has no selectors or at-rules to list.
Initial input: up to 200,000 UTF-16 units. Output and further processing of generated documents: up to 1,000,000 units. All inputs and outputs are limited to 1,000,000 UTF-8 bytes. CSS stays in this browser tab and is not uploaded. Undo history stays in this tab and is bounded for large documents.
A compressed stylesheet can hide a duplicate declaration or a media rule in one long line. If you need to format CSS online, this CSS formatter opens it up while keeping selector and declaration order intact, so you can inspect the cascade before changing it.
Use the CSS beautifier to read code, then minify CSS for a smaller handoff. This CSS formatter also serves as a structural CSS validator without rewriting code during checks. Every action uses the current content; Undo and the original view let you revisit earlier code.
Keep processing the current code while rule locations stay in sync.
The CSS formatter keeps declarations and repeated properties in order, and readable formatting retains comments. Open the original to compare, or use Undo to return to earlier content.
The rule list names selectors and at-rules in the current content. Formatting and minifying recalculate their positions, so selecting a rule or syntax error takes you to the current line and column.
Paste code or load the example. Navigation updates without changing text and follows manual edits, Undo and Redo in the current editor.
Format uses 2 spaces by default; choose 4 spaces or tabs if needed. Indentation changes apply only when you run Format. Minify and Check also read the current content.
Copy and Download export the full current content, including manual edits. The original is kept before the first transformation; editing, actions, examples and clearing share Undo and Redo.
Prettier lays out nested blocks and declarations while retaining comments and their source order, making a dense file easier to review.
The compact result removes optional spacing and ordinary comments without sorting declarations, merging rules or shortening values.
Selectors and at-rules come from the current CSS, with current line and column positions. Long lists appear in batches; copying and downloading always use the full current document.
Yes. Paste the compressed CSS and run Format. The result adds readable line breaks and indentation; comments already removed by earlier minification cannot be recovered.
The parser reports structural problems such as an unclosed block or malformed declaration with a source line and column. It does not run a cross-browser compatibility audit.
No version switch is required for standard CSS. A new or vendor-specific feature may still need testing in the browsers your project supports.
No. CSS comments use /* and */. A double slash is not a CSS comment and may be treated as invalid tokens or part of a value; replace it before relying on the result.
This page runs on pasted text when you choose an action. For automatic formatting of repository files, use a formatter in your editor or build workflow.
Still have a question?
Return to the CSS formatter to format and minify in one editor, inspect the current rules, and copy or download the current content.
Every action uses the current content. Open the original or use Undo to go back.