# Embellecedor y minificador de CSS

> Formatea CSS con sangría uniforme.

[Open tool](https://www.toolcabana.com/es/css-formatter) · [Desarrollo y datos](https://www.toolcabana.com/es/category/developer-and-data)

Tool ID: css-formatter. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

CSS beautifier formats a stylesheet so each rule and declaration sits on its own line with consistent indentation from 1 to 8 spaces. It adds missing semicolons, puts a space after colons and lowercases hex colors. Comments and nested rules are kept. Unparseable CSS returns an error rather than partially formatted output.

## Supported tasks (es)

Formatea CSS con sangría uniforme.

## Steps (es)

1. Pega la fuente en el editor de entrada o carga el ejemplo integrado.
2. Configura los espacios de sangría.
3. Ejecuta el embellecedor y minificador de CSS, revisa la salida y usa los controles disponibles para copiar o descargar.

## Settings

- Espacios de sangría (es; key: indent; type: number); minimum: 1; maximum: 8

## Limitations (es)

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Example input

```text
.card{padding:20px;color:#17243a}
```

## Privacy and connections (es)

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

## Questions (es)

### How do I beautify minified CSS?

Paste the compressed stylesheet and run the tool. Each selector block is expanded so every declaration is on its own line, indented by the number of spaces you set, from 1 to 8.

### Does the CSS beautifier keep my comments?

Yes. Comments are kept in the formatted output, and nested rules stay nested. Hex color values are written in lowercase, so #17243A becomes #17243a.

### Can this tool minify CSS?

This tool formats CSS for readability; it does not produce minified output. Its only setting is the indent size, which accepts 1 to 8 spaces.

### ¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

### ¿Cuáles son los límites de entrada?

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Related tools

- [HTML beautifier](https://www.toolcabana.com/es/html-formatter)
- [JavaScript formatter](https://www.toolcabana.com/es/js-formatter)
- [SQL formatter](https://www.toolcabana.com/es/sql-formatter)
- [XML formatter](https://www.toolcabana.com/es/xml-formatter)
