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
- Paste your lines, one item per line.
- Pick an unordered or ordered list and any options.
- 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
Markdown to HTML
Convert Markdown to clean HTML in your browser. Headings, bold, italic, links, images, lists, blockquotes and fenced code blocks, with text safely escaped.
HTML Table Generator
Turn CSV, TSV or a pasted grid into clean, semantic HTML table markup. Header row, thead and tbody, escaped cells. Copy or download. Runs in your browser.
Remove Line Breaks
Remove line breaks and paragraph breaks from text online. Flatten copied text into one line, keep spaces tidy, then copy the result. Free and private.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
ASCII Table
Full ASCII table for all 128 codes with decimal, hex, octal and binary values, character names and descriptions. Search by code, hex or character.
Aspect Ratio Box Generator
Generate CSS for a responsive aspect-ratio container. Use the modern aspect-ratio property or the padding-top fallback, then copy the ready code.