woori.today
Family Sites

CSS Formatter

Format CSS code for easier reading.

CSS Formatter: Input / Result

Input

h1{color:red}

Result

h1 {
  color: red;
}

How it works

Parses CSS with Prettier's PostCSS plugin and arranges whitespace, indentation, and line breaks.

A practical use

To review compressed rules, paste CSS and run the formatter to expand selectors and declarations onto readable lines.

When something goes wrong

The print width is 100 columns. There is no style preview or CSS validation. For errors, inspect braces, colons, semicolons, and declaration values.

Tool-specific question

Can I see the styles applied to a page?

No. It formats CSS text but does not apply it to a webpage.

How to use

  1. Enter an input or choose settings; you can start with h1{color:red}.
  2. Enter code or structured data, then set the format, pattern, or conversion direction.
  3. Run CSS Formatter, then compare the result with the example formatted CSS before copying or downloading it.

Options

The input area shows the accepted format and available controls for this tool.

Privacy

No. Your input is handled in the browser you are using. Privacy

Related tools