Skip to content
TextArray
100% local

HTML list to lines

Extract text from HTML list items into plain lines.

Input
Output

HTML list to lines

Convert HTML lists to plain text lines. Paste any HTML with <ul>, <ol>, or standalone <li> elements, and this tool extracts the text content from every list item into a clean line. No formatting, no tags, just the plain text you need.

The tool finds every <li> element regardless of case, strips any inner HTML tags like <b>, <span>, <div>, and <em>, decodes HTML entities (&amp;, &lt;, &gt;, &quot;, &#39;), and trims surrounding whitespace. Each item becomes one line, joined with newlines. If your input has no list items, the output stays empty — no errors.

This is useful when grabbing text from a website's navigation menu, data lists in a CMS, or any HTML snippet containing list items. Rather than copying and pasting each line separately, extract everything at once. The live tally shows how many items were extracted and how many characters the result has.

Everything runs in your browser. Your HTML is never uploaded, so it is safe for working with private data or sensitive content. Copy the output, download it as a .txt file, or send it to another tool.

FAQ

What if my HTML has nested tags inside list items?
All inner tags are stripped. If your <li> contains <b>bold</b> or <span>text</span>, the tool extracts just the text "bold" and "text" and discards the tags.
Are HTML entities decoded?
Yes. Common entities like &amp;, &lt;, &gt;, &quot;, and &#39; are automatically converted to their corresponding characters (&, <, >, ", ').
What if the input is not valid HTML?
The tool looks for <li> patterns and extracts text from them. Malformed HTML may still work if it has recognizable <li> tags, but very broken markup might not extract anything.
Will empty list items create empty lines in the output?
Empty items like <li></li> or <li> </li> (whitespace only) are trimmed to nothing and appear as blank lines. You can remove them with the "Remove empty lines" tool if needed.
Is my HTML uploaded anywhere?
No. The tool runs entirely in your browser and your HTML never leaves your device.