# Eliminar espacios extra

> Recorta, contrae o elimina espacios.

[Open tool](https://www.toolcabana.com/es/remove-spaces) · [Texto y redacción](https://www.toolcabana.com/es/category/text-and-writing)

Tool ID: remove-spaces. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

Remove Extra Spaces cleans up whitespace in three ways: collapse repeated spaces and tabs into one, trim spaces from the start and end of each line, or remove every whitespace character. In the default collapse mode, Preserve paragraph breaks keeps your line structure; turning it off folds all whitespace, including line breaks, into single spaces.

## Supported tasks (es)

Recorta, contrae o elimina espacios.

## Steps (es)

1. Escribe o pega tu fuente, o carga un ejemplo.
2. Cambia los ajustes básicos o abre el modo avanzado para afinar el resultado.
3. Revisa y copia o descarga tu resultado. Pausa los resultados en vivo para ejecutar manualmente. Las fuentes o ajustes individuales de más de 20,000 caracteres requieren una ejecución explícita.

## Settings

- Conservar saltos de párrafo (es; key: preserve; type: checkbox)
- Espacios (es; key: mode; type: select): Contraer espacios repetidos [es], Recortar bordes de línea [es], Eliminar todos los espacios [es]

## 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
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.
```

## 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 replace double spaces with a single space?

Use the default Collapse repeated whitespace mode. Runs of spaces and tabs become one space and each line is trimmed at both ends, while line breaks stay in place as long as Preserve paragraph breaks is on.

### How do I remove all spaces from a string?

Choose Remove all whitespace. Every space, tab and line break is deleted, so the whole input becomes one continuous string, which helps when cleaning up codes or numbers that were copied with spacing.

### Can I trim leading and trailing spaces on every line?

Yes. Select Trim line edges. Spaces and tabs at the start and end of each line are removed, while the spacing between words and all line breaks are left unchanged.

### ¿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

- [Remove line breaks](https://www.toolcabana.com/es/remove-line-breaks)
- [Remove accents](https://www.toolcabana.com/es/remove-accents)
- [Remove punctuation](https://www.toolcabana.com/es/remove-punctuation)
- [Sort lines alphabetically](https://www.toolcabana.com/es/sort-lines)
