Boneyard Tools

Text to HTML List Converter

Paste a list, one item per line, and get an HTML unordered or ordered list. Each line becomes an escaped list item, blank lines are skipped, and indented lines nest one level.

How to convert text to an HTML list

  1. Paste your lines, one item per line.
  2. Pick an unordered or ordered list and any options.
  3. Copy the generated HTML into your page.

Examples

Lines to an unordered list

Apples
Oranges
Pears
<ul>
  <li>Apples</li>
  <li>Oranges</li>
  <li>Pears</li>
</ul>

Ordered list

First
Second
<ol>
  <li>First</li>
  <li>Second</li>
</ol>

Frequently asked questions

Can I make a numbered list?

Yes. Switch to ordered and the output uses an ol element with li items, so the browser numbers them automatically.

Are special characters escaped?

Yes. Characters like <, >, &, double quote and single quote are converted to HTML entities so your text displays correctly and safely inside the list.

How do I create a nested sub-list?

Indent a line with a tab or two spaces and it nests one level under the item above it, producing a sub-list inside that list item.

What happens to blank lines?

Blank lines are skipped by default so stray gaps do not create empty list items. You can turn that off if you want empty items preserved.

Is my text uploaded?

No. The HTML is generated entirely in your browser, so your text never leaves your device.

Related tools