Format CSS Rule
Input
.btn{color:#fff;background:blue;}Example output
.btn {
color: #fff;
background: blue;
}
Format messy CSS stylesheets into structured, readable code or minify CSS to reduce bundle size directly in your browser without sending code to a server.
| Formatter Engine | Prettier PostCSS parser running in a Web Worker |
|---|---|
| Supported Operations | Beautify (format) and Minify |
| Privacy & Security | 100% Client-side execution; styles are never uploaded |
| Maximum Input | 5 MB |
Input
.btn{color:#fff;background:blue;}Example output
.btn {
color: #fff;
background: blue;
}
Input
/* Button */
.btn {
color: #fff;
background: blue;
}
Example output
.btn{color:#fff;background:blue}At-rules such as @media, @supports, and @keyframes are indented consistently with nested declaration blocks preserved.
Modern CSS variables (--primary-color: #000;) and complex calc() expressions are formatted without altering token spacing or semantics.
Browser vendor prefixes (-webkit-, -moz-, -ms-) and standard pseudo-elements (::before, ::after) are parsed safely and kept intact.
HTML Formatter
Format, beautify, and minify HTML markup locally in your browser.
Code Snapshot
Render pasted code as a styled SVG snapshot with syntax highlighting, themes, window frames, and gradient backgrounds for blogs and docs.
Case Converter
Convert text, identifiers, and variables between camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, Title Case, dot.case, and path/case.
No. All parsing, formatting, and minification runs locally within your browser using an isolated Web Worker.
Yes. Modern CSS3 specifications, CSS Grid, Flexbox, custom properties, container queries, and keyframe animations are fully supported.
Standard SCSS/Less syntax that follows standard CSS block formatting generally works, though pure CSS is the formally verified target format.