Toolvist

Minificador CSS

Minifica CSS online: elimina espacios, comentarios y saltos de línea para reducir la hoja de estilos. Compresor CSS gratuito que funciona en tu navegador.

Minificador CSS online y gratuito

El minificador CSS elimina comentarios y espacio en blanco innecesario de tus hojas de estilo, reduciendo el tamaño del archivo para cargar más rápido. Las cadenas (como nombres de fuentes o URL) se conservan exactamente.

Once the stylesheet is reduced, reviewing the properties it carries is easier with the CSS Formatter & Beautifier, and its composition can be reconsidered with the CSS to Tailwind Converter. For a single-filter effect instead of a full sheet, the CSS Filter Generator is the tool.

Cómo usar Minificador CSS

  1. 1 Paste your CSS or load a file.
  2. 2 Minify. Whitespace, comments, the final semicolon in each block and redundant units are removed.
  3. 3 Compare the size before and after.
  4. 4 Test the page afterwards, since a minifier can expose a syntax error that the browser tolerated.

Cómo usarlo

Pega tu CSS y pulsa Minimizar. El resultado compacto aparece a la derecha, listo para publicar.

  • Elimina comentarios /* */ y reduce el espacio en blanco
  • Mantiene los espacios dentro de las comillas
  • Quita el último punto y coma de cada regla

Preguntas frecuentes

How much does CSS minification save?

Typically 15 to 25 per cent before compression, and much less after it, since gzip already handles the repetitive structure of a stylesheet well. The saving is real but modest, and it comes with no downside provided the stylesheet was valid to begin with.

Can minification break my CSS?

It can reveal a problem rather than create one. Sloppy CSS that browsers forgive — a missing semicolon before a closing brace, an unclosed comment that swallowed a rule — may behave differently once the minifier normalises it. If a style disappears after minifying, the original had a syntax error that happened to be tolerated.

What about custom properties and calc?

A good minifier leaves `var(--x)` and `calc()` expressions intact, because the values inside them are significant whitespace-wise in the case of `calc`. Be cautious with tools that strip whitespace aggressively inside function arguments, since `calc(100% - 2rem)` requires spaces around the minus operator.

Herramientas para desarrolladores relacionadas

Ver todo en Herramientas para desarrolladores →

También te puede interesar

Herramientas de otras categorías que suelen combinarse con Minificador CSS:

Explorar el directorio completo →