How to Convert a List to an HTML Unordered List

You have a plain list of items and need it as HTML markup for a CMS field, an email template, or a static page you're editing directly. Wrapping every line in <li> tags by hand is slow and easy to mess up once you have more than a few items. Paste the list here and it converts instantly.

Convert your list now. Free, no account needed.

Open List Format Converter →

How to do it

  1. Paste your list into the converter. One item per line.
  2. Select HTML Unordered List or HTML Ordered List from the format dropdown.
  3. Copy the output and paste it into your page or template.

A list like this:

apple
banana
cherry

becomes, as an HTML unordered list:

<ul>
  <li>apple</li>
  <li>banana</li>
  <li>cherry</li>
</ul>

or, as an HTML ordered list:

<ol>
  <li>apple</li>
  <li>banana</li>
  <li>cherry</li>
</ol>

Special characters are escaped automatically

If a list item contains a character with special meaning in HTML - <, >, &, or " - it's converted to the matching HTML entity automatically. A line like Fish & Chips becomes Fish &amp; Chips in the output, so the browser displays the ampersand correctly instead of trying to parse whatever follows it as an entity reference.

Adding your own styling

The converter outputs plain, unstyled <ul>/<ol>/<li> markup - no classes, no inline styles. Add a class attribute to the <ul> or <ol> tag after pasting if your site's CSS targets a specific class name, or wrap the block in a container that already has list styling applied.

Going the other way: HTML list back to a plain list

Paste an existing <ul> or <ol> block into the input and the tool detects it automatically, extracting the text from each <li> and stripping any nested tags. Useful when you've been handed HTML content and need the plain values back - for a spreadsheet, a different format, or further editing in Text Fixer.

Need other formats from the same list?

JSON array, SQL IN clause, Markdown bullets, CSV row: 21 formats, same tool.

Open List Format Converter →

Frequently Asked Questions

How do I convert a list to an HTML unordered list?
Paste your list (one item per line) into the List to Format Converter, select HTML Unordered List, and copy. You get a complete <ul> block with each line wrapped in <li> tags.
How do I get a numbered HTML list instead?
Select HTML Ordered List instead of HTML Unordered List. You get an <ol> block with the same <li> items - browsers number them automatically, so you don't need to add numbers yourself.
What happens to special characters like < and & in my list items?
They're escaped automatically. A line containing <, >, &, or " is converted to its HTML entity (&lt;, &gt;, &amp;, &quot;) so the output renders correctly instead of being interpreted as markup.
Can I add CSS classes to the list or list items?
Not automatically from the converter - it outputs plain semantic <ul>/<ol>/<li> markup. Add a class attribute to the <ul> or <ol> tag after pasting if you need to style it with your site's CSS.
Can I convert an existing HTML list back to a plain list?
Yes. Paste HTML <ul> or <ol> markup into the input and the tool detects it automatically, extracting the text from each <li> and stripping any nested tags, leaving one item per line.
Does this work for nested lists?
No - the converter produces and reads flat, single-level lists only. If you paste a nested <ul>, only the top-level <li> text is extracted; nested sub-lists inside an <li> aren't preserved as a separate structure.
Why use HTML list markup instead of Markdown bullets?
Use HTML when you're pasting directly into a CMS field, an email template, or any context that renders raw HTML rather than Markdown. See How to Convert a List to Markdown Bullet Points if your destination (GitHub, Notion, a wiki) uses Markdown instead.
Can I get other formats from the same list?
Yes. The same input works for a JSON array, a SQL IN clause, CSV, and 17 other formats - switch the dropdown without re-pasting anything.

Share this tool

Featured on ToolDirs
© 2026 ListDiff

Free online list and text processing tools.