Skip to content

CSS Formatter

Format CSS with consistent indentation using Prettier in your browser.

Input

68 chars1 lines

Result

Type or paste on the left — the result updates as you type.

Does not render CSS or fetch referenced assets. Invalid syntax is rejected; formatting is not a CSS compatibility check.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: