RevealTheme logo

CSS-Formatierer und -Verschönerer

Formatieren Sie minifiziertes CSS mit korrekter Einrückung, Zeilenumbrüchen und Abständen.

So verwenden Sie dieses Tool

  1. 1

    Paste your minified or unformatted CSS into the text box.

  2. 2

    Read the formatted result that appears instantly in the output panel below.

  3. 3

    Select the output text and copy it (Ctrl/Cmd+C) into your stylesheet or editor.

  4. 4

    Tweak the input and the output re-formats live as you type.

Was ist der CSS-Formatierer und -Verschönerer?

Minifiziertes CSS ist eine einzige Zeile, aus der sämtliche Leerzeichen entfernt wurden. Dieses Tool stellt die Lesbarkeit wieder her: jede Eigenschaft in einer eigenen Zeile, mit Einrückung innerhalb der geschweiften Klammer und einer Leerzeile zwischen den Regeln. Die Ausgabe ist funktional identisch, nur leichter zu lesen oder zu bearbeiten.

Häufige Anwendungsfälle

  • Un-minifying a production .css file you pulled from a CDN so you can read what a rule actually does.

  • Cleaning up CSS that was pasted as a single line out of browser DevTools or a build artifact.

  • Tidying inconsistent indentation in a hand-edited stylesheet before committing it to version control.

  • Making a vendor or third-party widget stylesheet legible enough to override specific properties.

  • Preparing a readable CSS snippet to paste into a blog post, tutorial, or Stack Overflow answer.

  • Quickly inspecting the structure of an unfamiliar stylesheet to find where a selector is defined.

Häufig gestellte Fragen

Bleiben Kommentare erhalten?
Blockkommentare (/* ... */) werden unverändert an ihrer ursprünglichen Position beibehalten.

Verwandte Tools