Skip to content
Tool Dock

CSS Formatter

Beautify minified CSS into readable rules.

Options

Input

Waiting for input

Output

or press ⌘/Ctrl + Enter
  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

How to use it

  1. Paste HTML (or switch the language to CSS or JavaScript).
  2. Choose the indentation and, optionally, a maximum line length.
  3. Copy the formatted code.

Why Tool Dock

  • FastEverything runs on your own device, so there is no queue and no waiting for uploads.
  • PrivateYour files and text never leave the browser. Close the tab and they are gone.
  • Batch friendlyDrop several files at once and download each result, or all of them together.

Questions

Will formatting break my page?

Whitespace inside <pre>, <textarea> and inline elements is preserved, so the rendered page stays the same. Scripts and styles embedded in the HTML are formatted too.

What does the line length option do?

0 means never wrap. Any other number wraps long lines of text and attributes at about that column.

Does it minify as well?

Not here. This tool only beautifies; a minifier for production builds belongs in your build tool (for example esbuild, Vite or html-minifier).

All tools