RevealTheme logo

Formateur et embellisseur de CSS

Formatez du CSS minifié avec une indentation, des sauts de ligne et un espacement appropriés.

Comment utiliser cet outil

  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.

Qu'est-ce que le formateur et embellisseur de CSS ?

Le CSS minifié tient sur une seule ligne, tous les espaces blancs supprimés. Cet outil en restaure la lisibilité : chaque propriété sur sa propre ligne, indentée à l'intérieur de l'accolade, avec une ligne vide entre les règles. La sortie est fonctionnellement identique, simplement plus facile à lire ou à modifier.

Cas d'usage courants

  • 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.

Questions fréquentes

Conserve-t-il les commentaires ?
Les commentaires de bloc (/* ... */) sont conservés littéralement à leur emplacement d'origine.

Outils connexes