What is the indented Sass syntax?
Indented Sass — files with the .sass extension — is the original Sass syntax. It uses indentation alone to express nesting; there are no braces, no semicolons, and a newline ends every declaration. It predates SCSS, which Sass introduced later as a CSS-superset alternative. Both compile to identical CSS, but most projects in 2025 prefer SCSS for its CSS-like familiarity.
How is .sass different from .scss?
Syntax only. .sass uses Python-like indentation: a child rule lives at a deeper indentation level than its parent, and properties end at a newline. .scss uses CSS-like braces and semicolons. Variables, mixins, functions, and the rest of the feature set are identical. The Dart Sass compiler reads both and emits the same CSS.
Why would I compile .sass to CSS in the browser?
To preview an indented-syntax snippet without installing dart-sass, configuring webpack, or setting up a build watcher — useful when reading legacy documentation, debugging an inherited stylesheet, or extracting plain CSS for a one-off email template. The compiler runs in JavaScript on your machine, so internal styles stay private.
How does the compiler handle inconsistent indentation?
The Sass spec requires consistent indentation throughout a file — pick 2 spaces, 4 spaces, or tabs and stick to it. The compiler treats each increase in indent as a deeper nesting level. Mixed tabs and spaces produce ambiguous output; clean up indentation in your editor before running the converter for predictable results.
Does it support indented-syntax @import and @use?
External imports and @use require a real file system to resolve module paths, so they are not supported in the browser. Inline .sass — variables, mixins, nested rules — compiles correctly. For full @import / @use resolution use the dart-sass CLI: sass --indented input.sass output.css.
Are tabs or spaces preferred in indented Sass?
Either works, but they cannot be mixed within a file. Most .sass codebases use 2 spaces, matching the dominant SCSS convention. If you inherit a file with tabs, keep the tabs throughout that file rather than mixing styles. Editors with EditorConfig support enforce consistency automatically.
Is my .sass uploaded to your servers?
No. Compilation runs entirely in your browser using JavaScript. .sass containing internal design tokens, brand colours, or licensed component code never leaves the device. Verify in DevTools → Network — no requests fire when you click Convert.
Should I still write new code in indented Sass?
Generally no — SCSS is the dominant Sass dialect in 2025, with broader tooling support, more familiar syntax for CSS authors, and clearer error messages on syntax mistakes. Use indented .sass when maintaining a legacy codebase that already uses it; for new files, prefer SCSS or native CSS variables with CSS Nesting.