Text to HTML

Convert plain text into simple, valid HTML: paragraphs, line breaks and optional links, with special characters safely escaped.

Options

Processed in your browser. Nothing you type is uploaded.

How it works

The text is first escaped so characters like < and & cannot be mistaken for markup. Blocks separated by blank lines are wrapped in <p> tags, and single line breaks inside a block become <br>. With linking on, addresses starting with http, https or www. become <a> links; www addresses get https:// added.

Rules this tool follows

  • All text is escaped, so the output is safe to paste into a page.
  • Trailing sentence punctuation is not included in links.
  • Turn off paragraphs to get only <br> line breaks, for example inside an existing element.

Example

Input

Hello team,

Prices < €10 & free shipping.
Thanks!

Output

<p>Hello team,</p>
<p>Prices &lt; €10 &amp; free shipping.<br>
Thanks!</p>

Common uses

  • Pasting plain text into a CMS or email template’s HTML view.
  • Converting notes or README text into web content.
  • Preparing text for HTML email bodies.

Limitations and notes

  • Formatting such as bold, lists and headings is not inferred. For that, write Markdown and use the Markdown Previewer.

All web text tools