Formateador y embellecedor de SCSS / Sass
Guía
Formateador y embellecedor de SCSS / Sass
Format and beautify your SCSS code instantly. Paste messy or compressed stylesheets and get clean, properly indented output with correct nesting, consistent spacing, and organized at-rules. Supports expanded, compact, and minified output modes.
Cómo utilizar
Paste your SCSS code into the input area. Choose your preferred indent size, output format, and brace style. The formatted code updates instantly in the output panel — copy it with one click. Switch between expanded, compact, and minified modes depending on whether you need readable or production-ready output.
Características
- SCSS Nesting Support – Correctly formats deeply nested selectors, parent selectors (
&), and nested at-rules like@mediay@supports. - Variable & Mixin Handling – Properly formats SCSS variables (
$variable),@mixin,@include,@extend,@use, y@forwarddirectives. - Three Output Modes – Expanded (one declaration per line, fully readable), Compact (one rule per line), and Minified (all whitespace stripped for production).
- Indentación Configurable – Choose between 2 spaces, 4 spaces, or tabs.
- Brace Style Options – Same-line or next-line opening brace placement.
- Whitespace Normalization – Consistent spacing after colons, before braces, and between rule blocks.
- Formato en tiempo real – Output updates instantly as you type or change any option.
Cuándo utilizar esta herramienta
Use this tool when cleaning up SCSS stylesheets for code review, reformatting minified CSS back into readable SCSS, or standardizing indentation across a project’s style files. It’s especially useful for converting between expanded and minified formats, or for quickly beautifying SCSS snippets for documentation and tutorials.
Preguntas frecuentes
-
What is the difference between SCSS and Sass?
SCSS (Sassy CSS) and Sass are two syntaxes for the same preprocessor. SCSS uses curly braces and semicolons like regular CSS — any valid CSS is also valid SCSS. The indented Sass syntax uses indentation instead of braces and newlines instead of semicolons. SCSS is far more popular because it's familiar to CSS developers and easier to adopt incrementally. Most modern projects use the .scss file extension.
-
What are SCSS variables and why use them?
SCSS variables (declared with $) store reusable values like colors, font sizes, spacing, and breakpoints. For example, $primary-color: #3498db; lets you reference the same color throughout your stylesheet and change it in one place. While CSS custom properties (--variable) now offer similar functionality natively, SCSS variables are compile-time values that enable more powerful features like interpolation in selectors and math operations.
-
What is SCSS nesting and when should I use it?
SCSS nesting lets you write child selectors inside parent selectors, mirroring your HTML structure. For example, .nav { .item { color: blue; } } compiles to .nav .item { color: blue; }. Nesting improves readability for related styles, but over-nesting (more than 3-4 levels deep) creates overly specific selectors that are hard to override. The general rule: nest for structure, not for every parent-child relationship.
-
What is the difference between @mixin and @extend in SCSS?
@mixin creates reusable blocks of CSS that are copied wherever you @include them — like a function that outputs CSS. @extend shares a selector's styles by adding the extending selector to the original rule — it groups selectors rather than duplicating code. Use @mixin when you need parameters or when the styles vary between uses. Use @extend for simple style inheritance where you want minimal CSS output. Overusing @extend can create unexpected selector chains.
Instalar extensiones
Agregue herramientas IO a su navegador favorito para obtener acceso instantáneo y búsquedas más rápidas
恵 ¡El marcador ha llegado!
Marcador es una forma divertida de llevar un registro de tus juegos, todos los datos se almacenan en tu navegador. ¡Próximamente habrá más funciones!
Herramientas clave
Ver todo Los recién llegados
Ver todoActualizar: Nuestro última herramienta fue agregado el 24 de mar de 2026
