Javascript Minifier
Online Javascript Minifier or JS minifier is a free tool to minify your javascript code.
Reindent messy or minified SCSS and Sass into clean, nested, readable code with Prettier — free, fast, and entirely in your browser.
The SCSS Beautifier is a free online tool that reformats messy or minified SCSS into clean, properly nested, readable stylesheets. Paste your code into the input panel, pick your indentation, and it re-indents every rule, variable, and nested block in an instant.
It is powered by Prettier, the same opinionated formatter used across professional front-end teams, running entirely in your browser. Your styles never leave your machine.
An SCSS beautifier takes Sass source that has been collapsed onto one line or indented inconsistently and rebuilds it with a predictable structure.
It gives each declaration its own line, indents nested selectors under their parents, and normalizes the spacing around braces, colons, and commas.
The result is code that maps cleanly to the nesting you actually wrote, so you can read, review, and edit it with far less friction.
.scss file.SCSS earns its power from nesting, and nesting only helps if the indentation makes the hierarchy obvious at a glance.
When a build tool, a copy-paste, or a minifier flattens that structure, a stylesheet becomes a wall of braces where you can no longer tell which selector belongs to which parent.
Consistent two-, four-, or tab-based indentation restores that visual tree, so scoping bugs and stray declarations jump out instead of hiding.
Prettier does more than add line breaks. It rewrites your styles to a single consistent standard.
It normalizes indentation, collapses or expands whitespace around braces and colons, and enforces one declaration per line.
It also standardizes quote style and trims redundant spacing, so two files formatted by the tool look identical in structure even if they started out wildly different.
The beautifier understands the full SCSS feature set, not just plain CSS rules.
$primary and $spacing are aligned with clean spacing after the colon.& reference, like &:hover or &.is-active, keep their place in the tree.@mixin and @include are formatted with consistent argument spacing.@if, @else, and @each loops is indented as readable blocks.#{$name} inside selectors and values is preserved exactly.It keeps both // single-line comments and /* */ block comments intact, so your notes survive formatting untouched.
Yes. Because the tool uses Prettier's PostCSS-based engine, it also tidies LESS-style nesting and variables.
If you paste LESS with nested rules and & parent references, the beautifier reindents it the same way it handles SCSS, giving you clean, consistent output either way.
Beautifying and minifying are opposite ends of the same workflow.
You beautify while you are reading, reviewing, or editing source, because the whitespace makes the nesting obvious and keeps diffs clean.
You minify the compiled CSS right before you ship, when smaller payloads matter more than readability. If you want to compress the final stylesheet, the CSS Minifier strips it down for production once your Sass is compiled.
All formatting happens locally in your browser through Prettier. Nothing is uploaded, logged, or stored on any server.
That makes the tool safe for proprietary design systems and private component libraries, since your source never leaves the tab.
The one requirement is valid SCSS. If the input has an unclosed brace or broken syntax, Prettier cannot parse it and the tool shows a clear error pointing you to the problem instead of producing mangled output.
Reach for it whenever you inherit a stylesheet that was flattened, exported on one line, or formatted by three different people.
It is ideal for auditing a theme's Sass partials, cleaning up a snippet pasted from a build artifact, or normalizing a file before you commit it so the diff stays meaningful.
If your workflow spans more of the front end, the JS & CSS Beautifier tidies plain stylesheets and scripts, the SVG to CSS tool turns vector icons into embeddable background styles, and the Remove Comments utility strips annotations once you are ready to hand off a lean file.
No. All formatting happens locally in your browser using client-side JavaScript. Your SCSS is never sent to, stored on, or seen by any server, which makes the tool safe for proprietary design systems and private stylesheets.
The tool uses Prettier, the widely adopted opinionated code formatter, self-hosted and run directly in your browser. Prettier reindents your styles and normalizes spacing, quotes, and one declaration per line to a single consistent standard.
Yes. It formats SCSS and Sass, and because it uses Prettier's PostCSS-based engine it also tidies LESS-style nesting and variables. Nested rules and parent-selector references are reindented cleanly whichever syntax you paste.
No. Beautifying only adds or normalizes insignificant whitespace, indentation, and quote style in your source. It does not alter selectors, values, variables, or logic, so the CSS your Sass compiles to stays exactly the same.
Yes. You can format with 2-space, 4-space, or tab indentation to match your project's coding style, and you can set a print width of 80, 100, or 120 characters or disable wrapping entirely.
Yes. Both single-line comments written with two slashes and block comments wrapped in slash-star are preserved through formatting, so your notes and section headers survive untouched in the output.