Developer Tools

Text to HTML Converter

Turn plain text into HTML paragraphs, line breaks, lists and links.

Preview

Why convert text to HTML?

If you paste plain text into a website builder's HTML block, an email template or a CMS code view, all your line breaks disappear and the text becomes one long paragraph. That is because HTML ignores line breaks unless they are written as tags. This tool wraps your paragraphs in <p> tags, adds <br> for single line breaks, builds lists and links, and escapes special characters so the result is safe to publish.

How to use it

  1. Paste your text. Leave an empty line between paragraphs.
  2. Choose the options you want: line breaks, lists from lines starting with a dash or asterisk, and clickable links.
  3. Copy the HTML code, and check the preview to see how it will look.

Conversion rules

In your textIn the HTML
Blank line between blocksNew <p> paragraph
Single line break<br> (or a space, if the option is off)
Lines starting with -, * or •<ul><li>…</li></ul> bulleted list
https://… address<a href="…"> link
<, >, &, quotes&lt;, &gt;, &amp;, &quot;

Paragraphs or line breaks?

Use paragraphs for separate ideas and <br> only where a line break is part of the content, such as an address or a poem. Paragraphs get proper spacing from the website's CSS and are read more naturally by screen readers. If your source text has a line break after every sentence, untick the line break option to join those lines into flowing paragraphs.

Frequently asked questions

Will my text be changed?

Only formatting is added. Words are untouched, and special characters are escaped so they display correctly.

Can I add headings and bold text?

For richer formatting, write your text in Markdown and use the Markdown to HTML converter.

Why do trailing full stops not become part of links?

A dot, comma or bracket at the end of a URL is usually punctuation in the sentence, so it is left outside the link.