UTILSBOXโšกALL TOOLS54+
JSON.FORMATHub of five tools: format, validate, minify, convert to XML, and compare two JSON documents.//REGEX.TESTERReal-time regular expressions tester, cheatsheet, debugger and replacer.//PDF.SUITEMerge, split, extract text, rotate and convert PDF pages to images.//IMAGE.STUDIOIn-browser photo editor: crop, resize, filters, WebP/PNG and Base64 encoder.//HTML.BEAUTIFYHTML code beautifier, production minifier and entity encoder.//CSS.MINIFYCSS code formatter, production stylesheet minifier and CSS to SCSS converter.//SQL.FORMATTERSQL query beautifier, dialect translator (Postgres/MySQL) and minifier.//SVG.EXCALIDRAWInteractive vector visual editor powered by Excalidraw and SVG formatter.//TEXT.DIFFWord counter, reading time estimator and dual-text diff comparator.//YAML.CONVERTYAML & JSON bi-directional validator and formatter with syntax checking.//XML.PARSERXML document formatter, tree inspector and XML to JSON converter.//GRAPHQL.STUDIOGraphQL query & SDL formatter, minifier, AST field sorter and validator.//BASE64.CODECBase64 and URL-Safe encoder / decoder with full UTF-8 verification.//PASSWORD.GENCryptographically secure random password and entropy strength generator.//URL.STUDIO8-tool URL suite: encode, decode, validator, component parser and builder.//QR.STUDIOCustom QR code generator with embedded logos, colors, gradients and shapes.//ASCII.EXPLORERInteractive ASCII 0-255 table, Alt keyboard codes and CP437 symbols.//KEYCODES.LIVELive KeyboardEvent detector and JavaScript keycodes cheat sheet.//JWT.DEBUGGERJWT token decoder, claims inspector and Web Crypto signature verification.//BINARY.CODECBidirectional text to binary converter with digital rain and ASCII table.//CHARTS.STUDIOInteractive chart generator (bars, lines, pie, scatter) from CSV data.//UUID.V7Bulk generator for UUID v4, time-ordered v7, v1 and live UUID validator.//CSV.JSONBi-directional CSV to JSON converter with custom delimiters & table grid.//COLORS.STUDIOHEX/RGB/HSL/CMYK converter, palette harmonies and WCAG 2.1 contrast tester.//SEO.METASEO Meta Tags, Open Graph cards and real-time Google SERP card preview.//SCHEMA.JSONLDSchema.org JSON-LD structured data generator for Google Rich Snippets.//SITEMAP.XMLStandard XML Sitemap generator (Protocol 0.9) for Google Search Console.//ROBOTS.TXTRobots.txt generator, AI scraper blocking presets and live URL rule tester.//FAKE.DATASynthetic mock data generator: export records to JSON, CSV, SQL and TypeScript.//CLOCK.WORLDReal-time world clock with 3D holographic globe and 174 country timezones.//DATE.CALCDays between dates, exact age, business days, Unix timestamp and cron parser.//CALC.SUITESuite of 56+ online calculators: percentage, mortgage, loan, VAT, BMI & salary.//JSON.FORMATHub of five tools: format, validate, minify, convert to XML, and compare two JSON documents.//REGEX.TESTERReal-time regular expressions tester, cheatsheet, debugger and replacer.//PDF.SUITEMerge, split, extract text, rotate and convert PDF pages to images.//IMAGE.STUDIOIn-browser photo editor: crop, resize, filters, WebP/PNG and Base64 encoder.//HTML.BEAUTIFYHTML code beautifier, production minifier and entity encoder.//CSS.MINIFYCSS code formatter, production stylesheet minifier and CSS to SCSS converter.//SQL.FORMATTERSQL query beautifier, dialect translator (Postgres/MySQL) and minifier.//SVG.EXCALIDRAWInteractive vector visual editor powered by Excalidraw and SVG formatter.//TEXT.DIFFWord counter, reading time estimator and dual-text diff comparator.//YAML.CONVERTYAML & JSON bi-directional validator and formatter with syntax checking.//XML.PARSERXML document formatter, tree inspector and XML to JSON converter.//GRAPHQL.STUDIOGraphQL query & SDL formatter, minifier, AST field sorter and validator.//BASE64.CODECBase64 and URL-Safe encoder / decoder with full UTF-8 verification.//PASSWORD.GENCryptographically secure random password and entropy strength generator.//URL.STUDIO8-tool URL suite: encode, decode, validator, component parser and builder.//QR.STUDIOCustom QR code generator with embedded logos, colors, gradients and shapes.//ASCII.EXPLORERInteractive ASCII 0-255 table, Alt keyboard codes and CP437 symbols.//KEYCODES.LIVELive KeyboardEvent detector and JavaScript keycodes cheat sheet.//JWT.DEBUGGERJWT token decoder, claims inspector and Web Crypto signature verification.//BINARY.CODECBidirectional text to binary converter with digital rain and ASCII table.//CHARTS.STUDIOInteractive chart generator (bars, lines, pie, scatter) from CSV data.//UUID.V7Bulk generator for UUID v4, time-ordered v7, v1 and live UUID validator.//CSV.JSONBi-directional CSV to JSON converter with custom delimiters & table grid.//COLORS.STUDIOHEX/RGB/HSL/CMYK converter, palette harmonies and WCAG 2.1 contrast tester.//SEO.METASEO Meta Tags, Open Graph cards and real-time Google SERP card preview.//SCHEMA.JSONLDSchema.org JSON-LD structured data generator for Google Rich Snippets.//SITEMAP.XMLStandard XML Sitemap generator (Protocol 0.9) for Google Search Console.//ROBOTS.TXTRobots.txt generator, AI scraper blocking presets and live URL rule tester.//FAKE.DATASynthetic mock data generator: export records to JSON, CSV, SQL and TypeScript.//CLOCK.WORLDReal-time world clock with 3D holographic globe and 174 country timezones.//DATE.CALCDays between dates, exact age, business days, Unix timestamp and cron parser.//CALC.SUITESuite of 56+ online calculators: percentage, mortgage, loan, VAT, BMI & salary.//
MODULE 10 ยท STYLES

CSS Tools

Format, minify, and convert between CSS and SCSS.

Indentation
InputCSS / SCSS
Resultformat / minify / to-scss / from-scss
// click format, minify or convert
// Technical guide & specifications

Technical guide: CSS specificity arithmetic, what a minifier actually removes, and SCSS to native CSS

How the cascade resolves an (A,B,C) tuple, which compression transforms are safe, and which Sass constructs have no native counterpart.

1. Specificity is an (A,B,C) tuple, not a single number

CSS Cascade Level 5 computes specificity as three independent counters: A counts ID selectors, B counts classes, attribute selectors and pseudo-classes, and C counts element types and pseudo-elements. `#nav .item > a:hover` scores (1,2,1): one ID, one class plus one pseudo-class, and one type. Comparison is lexicographic, so (1,0,0) beats (0,10,0) no matter how many classes pile up. `:where()` always contributes (0,0,0), even when it wraps an ID selector, while `:is()` takes the specificity of its highest argument. An inline `style` attribute is not part of this count at all: it sits in a higher tier of the cascade.

2. Which transforms a minifier applies, and which it must not

A safe minifier strips whitespace, newlines and comments, drops the semicolon before `}`, trims leading zeros (`0.5em` becomes `.5em`), removes units from zero lengths (`margin: 0px` becomes `margin: 0`) and folds six-digit hex colors into three when the pairs repeat (`#ffffff` becomes `#fff`). What it cannot do safely is reorder colliding declarations, merge longhand properties into a shorthand when any of them uses `var()` (the value is unknown until runtime), or delete `/*! ... */` comments, which are reserved for license headers. Once the response is served with gzip or Brotli, the extra saving usually lands between 3% and 8%.

3. SCSS to native CSS: nesting, variables and @layer

Native nesting, custom properties and cascade layers now cover almost everything Sass was used for, but the differences matter. `$color: red` is a compile-time substitution that disappears from the output, whereas `--color: red` lives in the CSSOM, inherits down the tree, can be read with `getComputedStyle()` and reassigned from JavaScript. Functions, `@mixin`, `@extend` and `@each` loops have no native counterpart. A custom property also cannot drive a media query condition: `@media (width > var(--bp))` is invalid. Declaring `@layer base, components;` pins priority per layer, so a low-specificity component rule no longer depends on import order.

// Architecture & best practices

โ“ Frequently asked questions about CSS

Why is my `!important` rule still being ignored?

`!important` is not an absolute trump card. When two declarations from the same origin are both important, the higher specificity wins and, on a tie, the later one does. A running animation also overrides any important declaration while its keyframes play, and important declarations from user and user-agent stylesheets outrank important author declarations.

What happens to my `$` variables when SCSS is compiled to CSS?

They are resolved to literal values and vanish from the output. If you need runtime theming, rewrite them as custom properties: `--brand: #0af` on `:root` and `color: var(--brand, #08c)` at the usage site, where the second argument is the fallback applied when the variable is not set.

How much does minification save if the server already sends gzip?

Less than you would expect. Minification cuts the raw file by roughly 15% to 25%, but gzip and Brotli already compress repeated whitespace very efficiently, so the extra saving on the compressed response is around 3-8%. The real render-time win comes from removing unused rules and splitting critical CSS from deferred CSS.

Related design and frontend tools