Удаление пробелов

Приводит текст в порядок, убирая лишние пробелы и пустые строки.

// about

Об этом инструменте

Очищает текст или код от лишних пробелов, табуляций и пустых строк. Делает документ аккуратным и уменьшает объем файла.

Как использовать

  1. Вставьте ваш текст с лишними пробелами.
  2. Выберите параметры, например 'Удалить пустые строки'.
  3. Нажмите 'Запустить' и скопируйте чистый текст.

Зачем используют этот инструмент

  • Удаляет повторяющиеся пробелы и пустые строки за секунды.
  • Помогает быстро форматировать текст, скопированный с сайтов или PDF.
  • Избавляет от ручного удаления лишних отступов клавишей Backspace.

Часто задаваемые вопросы (FAQ)

Удалятся ли обычные пробелы между словами?

Нет, инструмент убирает только повторяющиеся двойные пробелы.

Подходит ли инструмент для очистки кода?

Да, он отлично удаляет лишние переносы и пробелы в конце строк.

Есть ли ограничение на объем текста?

Ограничений нет, можно обрабатывать даже большие статьи.

Руководства · Данные · 7 мин чтения

CSV или JSON: когда что использовать и на что смотреть при конвертации

Чтобы отправить выгрузку из таблицы в API или открыть ответ API в Excel, нужно конвертировать между CSV и JSON. Если знать различия форматов, данные не испортятся по дороге.

CSV (Comma-Separated Values) — это таблица. В первой строке названия столбцов, каждая следующая строка — запись, значения разделены запятыми. Это самый простой и лёгкий способ хранить плоские данные, где у каждой строки одинаковые столбцы.

name,city,score
Kim,Seoul,92
Lee,Busan,85

[
  {"name": "Kim", "city": "Seoul", "score": 92},
  {"name": "Lee", "city": "Busan", "score": 85}
]
Различия в структуре CSV и JSON, почему Excel искажает CSV в UTF-8, правила экранирования запятых и кавычек и как «расплющить» вложенные данные.
Читать →
Сделать с ИИ

Создайте этот инструмент сами с помощью ИИ

Нужна своя версия? Скопируйте промпт в чат с ИИ или сохраните файл навыка для ИИ-агента. В них описаны функции, особые случаи и тесты, которые мы использовали.

Промпт и навык даны на английском — ИИ-инструменты хорошо его понимают.

Промпт-задание для ИИ

Вставьте как есть в Claude, ChatGPT или Gemini.

You are an experienced full-stack web developer. Build a web tool called "Удаление пробелов" that meets the requirements below.

## Goal

Build a tool that cleans up extra spaces, blank lines and line breaks in text.

## Core features

- Trim leading and trailing spaces
- Collapse repeated spaces
- Remove blank lines
- Join lines with spaces
- Handle tabs, non-breaking spaces and full-width spaces

## Inputs

- Text to clean
- Checkboxes for each rule

## Outputs

- Cleaned text
- Number of characters removed

## Edge cases and handling rules

- Option to preserve indentation for code
- Mixed CRLF and LF line endings
- Option to remove zero-width spaces (U+200B)
- Performance on very long text

## Implementation requirements

- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- '  a   b  ' becomes 'a b'
- Removing blank lines leaves none
- Non-breaking spaces become normal spaces

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

Навык (SKILL.md)

Сохраните как .claude/skills/build-whitespace-remover/SKILL.md, чтобы агенты вроде Claude Code использовали его при каждой доработке инструмента.

---
name: build-whitespace-remover
description: Use when building or changing a Удаление пробелов tool. Build a tool that cleans up extra spaces, blank lines and line breaks in text.
---

# Build: Удаление пробелов

## Goal

Build a tool that cleans up extra spaces, blank lines and line breaks in text.

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Trim leading and trailing spaces
- Collapse repeated spaces
- Remove blank lines
- Join lines with spaces
- Handle tabs, non-breaking spaces and full-width spaces

## Inputs

- Text to clean
- Checkboxes for each rule

## Outputs

- Cleaned text
- Number of characters removed

## Rules

- Option to preserve indentation for code
- Mixed CRLF and LF line endings
- Option to remove zero-width spaces (U+200B)
- Performance on very long text
- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.

## Verification

- [ ] '  a   b  ' becomes 'a b'
- [ ] Removing blank lines leaves none
- [ ] Non-breaking spaces become normal spaces

Советы по работе с ИИ

  • Укажите стек (React, Vue или чистый HTML) в первой строке, чтобы код подошёл к проекту.
  • Попросите ИИ выполнить перечисленные тесты и показать результаты до принятия кода.
  • Не вставляйте настоящие пароли, данные клиентов и API-ключи; используйте примеры.