ToolCabana

HTML в обычный текст

Извлекает читаемый текст из заданного HTML.

Favorites are saved in this browser. Find them in My favorites.

HTML в обычный текст

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Как использовать HTML в обычный текст

HTML to Plain Text extracts the readable text from HTML markup and drops the tags. Script, style and noscript content is removed, br tags become line breaks, and paragraphs, divs, list items, table rows and h1 to h3 headings end with a new line. HTML entities are decoded into their characters, and long runs of blank lines are reduced.

  1. Вставьте исходные данные в редактор ввода или загрузите встроенный пример.
  2. Проверьте формат исходных данных перед запуском операции.
  3. Запустите «HTML в обычный текст», просмотрите результат и используйте доступные элементы копирования или скачивания.

Что поддерживает этот инструмент

Извлекает читаемый текст из заданного HTML.

Ограничения и обработка

Текстовые операции обычно принимают до 2 000 000 символов. Отдельные парсеры, генераторы и формулы применяют дополнительные ограничения, отображаемые в их элементах управления.

Пример исходных данных
<h1>Hello world</h1><p>A helpful example.</p>

Частые вопросы

Are link URLs kept when converting HTML to text?

No. Only the visible link text is kept; href values and other attributes are dropped with the tags. Run Extract URLs from Text on the HTML source if you also need the addresses.

Does HTML to Plain Text keep line breaks and paragraphs?

Yes. br tags become line breaks, and p, div, li, tr and h1 to h3 elements end with a new line. More than two consecutive line breaks are collapsed into a single blank line, and the result is trimmed.

Will JavaScript or CSS code appear in the plain text output?

No. Script, style and noscript elements are removed before the text is extracted, so code and CSS rules do not end up in the result. The HTML is parsed as a document and nothing in it is executed.

Где обрабатываются мои данные?

Эта операция обрабатывает исходные данные в вашем браузере. Копирование и скачивание выполняются только по вашему действию; входные данные не сохраняются в учётной записи или истории.

Каковы ограничения входных данных?

Текстовые операции обычно принимают до 2 000 000 символов. Отдельные парсеры, генераторы и формулы применяют дополнительные ограничения, отображаемые в их элементах управления.